Once memory has been grabbed by the JVM it is only handed back to the OS once the JVM process quits. You can find out the total and free memory the JVM has by using the Runtime class:
Runtime.freeMemory()
Runtime.totalMemory()
Runtime.maxMemory()


Pountain, John (KAZ at Alcoa) wrote:

Hi,

I have a problem running applications under Tomcat 4.1.24 with jdk1.4.1_01
on Win2K. I have a couple of simple apps - some using struts, some not. I find that when I start my app and go through a number of pages the memory
(in the java process on the windows task manager) goes up - no surprise
there. After shutting down the browser it would appear that the memory is
not being reclaimed as even hours later the task manager shows the same
value.
I don't think there's any references being held as the apps are dead simple.


Any suggestions would be good as this is driving me crazy.

Thanks,
John

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to