Java: flushing memory out to disk -
Say I have a Java application that almost does the following:
- Start
- Do some things quickly
- Wait for long-term ideals (your favorite mechanism)
- Go to step 2
Is there any way to encourage or force the memory of your memory to flush during long period of laziness? (For example, at the end of step 2, call some functions that effectively say, "O JVM! I'm sleeping for a while.")
I have a large virtual memory Part, but physical memory is on premium on the machine that I am using because there are many background processes.
The operating system should handle it, I guess.
Otherwise, you can manually store your app in the initialization after the disk or database, and you can start that data quickly, perhaps?
Comments
Post a Comment