If you had to programmatically have system create swap files for you, how would you do it?
I am not looking to actually create swap file, but am debugging an issue in own code trying to better understand what did i do wrong that would cause system to create the swap files.
My program (as no doubt you have guessed) is doing a lot of reading and writing of files (extract some data from file A and write it to file B)
What would cause something like this to happen?
UPDATE:
- Please note swap files created are 0 bytes in size.
- Program is written in Java and runs on Linux
As it turns out, the problem came about due to me improperly closing IO connections once files has been read/ written to.
Once i
Swap files stopped being created and issue was resolved.