When I add a new webapp occasionally the user will get a out of memory error when trying to access a page that has not been rendered and cached yet. If I restart
tomcat it is then able to render the page. The problem seems to be in tomcat trying to render several JSPs at the same time. The servers have 2 Gigs of physical memory but I have not made any changes to the parameters passed to JVM yet so I think it's only using 1 Gig of that.
Any advise on tuning the JVM or other places to look at making changes would appreciated. I have not been able to find much information on configuring tomcat beyond the basics.
Also on a side note. There seems to be a memory leak in tomcat. Every time I restart it does not seem to let go of all the memory it was using. After being up for several months the boxes would get down to less than 500M of memory free and vmstat would show a lot of free dirty memory. Rebooting the box every now and then takes care of it but it's a hassle.
I'm running Tomcat 4.1.18 on RedHat 7.2 using Apache 1.3.26 as a front end connecting to Tomcat with mod_jk. And they are running ~18 webapps