tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Endre Stølsvik <En...@Stolsvik.com>
Subject RE: Memory Settings On Tomcat
Date Tue, 15 Jun 2004 07:41:52 GMT
On Tue, 15 Jun 2004, Endre Stølsvik wrote:

| On Mon, 14 Jun 2004, Woodchuck wrote:
|
| | Runtime.getRuntime().maxMemory() will get you the
| | maximum amount of memory for your jvm.
|
| Yeah, check out maxMem, freeMem and totalMem.. Are those something along
| the line of what you're looking for?

You might also want to try .gc() (force Garbage Collection) - run
freeMemory() right before and right after .gc(), print out the diff too.

  Interesting numbers, these - I can stay up all night watching them
unfold over my screen.. growing, shrinking.. growing .. growing ..
GROWING?? ah..  shrinking.. shrinking..

  You get the point..

Endre.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message