Do loaded jsp pages and/or class files ever get garbage collected when
tomcat is running?

We have a production server with several hundred virtual hosts per host,
each with a fair share of jsp pages and with moderate to low traffic per
host.  As time goes on, the amount of memory being used constantly grows.
It starts off around 60MB, then goes higher and higher, getting up to around
100MB after a couple days.

The regular GC seems to usually clean up around 2MB ([GC
99493K->97502K(204544K), 0.0243521 secs]) and the Full GC seems to clean up
less than that ([Full GC 97388K->97187K(204544K), 2.4269915 secs]).

Since I have the -Xmx and -Xms set to 200MB, the 204544K number never gets
resized, but the number before the -> seems to slowly and steadily rise.

Full GC seems to run quite often, every few seconds, GC runs once in a
while, but spits out about 50 lines at once every time it runs.  Is this
normal?  Shouldn't Full GC only run once in a while?

I am starting to think that as classes and jsp's are loaded, they stay in
memory and are never released until tomcat is restarted, which means that
there is eventually a point where all the classes will load and I just need
to have enough memory to support that without having to use swap space.

The problem occurs when the memory usage number before the -> gets up to
about 130.  The system is using swap space and eventually out of memory
errors start showing up.

Any ideas?  More Ram, more tuning, different site architecture?

Thanks in advance?

Brandon



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

Reply via email to