K
Kevin
Hi!
In my program, the user has an option (a menu item) to issue the memory
collect, which calls a function like:
Runtime rt = Runtime.getRuntime();
rt.gc();
However, I observed that this call actually results in more memory
usage as reported from WinXP's task manager (the Page File Usage
History in the Performance tab).
Before the call, its shows about 900M memory current usage (the PC has
physical memory 1G, with plenty of virtual memory).
After the call, it jumps to 1100M and stays there. (more calls to the
memory collect does not affect it).
How to explain it?
Thanks ya!~
In my program, the user has an option (a menu item) to issue the memory
collect, which calls a function like:
Runtime rt = Runtime.getRuntime();
rt.gc();
However, I observed that this call actually results in more memory
usage as reported from WinXP's task manager (the Page File Usage
History in the Performance tab).
Before the call, its shows about 900M memory current usage (the PC has
physical memory 1G, with plenty of virtual memory).
After the call, it jumps to 1100M and stays there. (more calls to the
memory collect does not affect it).
How to explain it?
Thanks ya!~