FreeBSD9.2: Tomcat process with very high memory allocation

Uwe Heber uwe at d2ux.org
Mon Nov 25 21:59:28 UTC 2013


Hello FreeBSD team,

we are hosting a Java web application on our FreeBSD 9.2 server on which
Tomcat 7.0 is used as runtime environment.

During monitoring the Java process we have found out the Java process
allocates 9GB of memory:

39819 www          35  20    0  9051M   439M uwait   4   0:31  0.00% jsvc

www    39819  0.0  1.4 9268296 449704 ??  IJ    4:05PM 0:30.60
/usr/local/bin/jsvc -java-home /usr/local/openjdk6 -server -user www
-pidfile /var/run/tomcat7.pid -wait 30 -out

For this reason, we have reconfigured the Tomcat by setting up the
minimum and maximum heap size in file /usr/local/<TOMCAT>/bin/setenv.sh
with following values:


CATALINA_OPTS="$CATALINA_OPTS -Xms128m"
CATALINA_OPTS="$CATALINA_OPTS -Xmx512m"

After the Tomcat reboot the allocation remains at this very high
consumption.

Our question at this point:
[1] Is this problem already known?
[2] What are possible options regarding the setup which could solve the
problem?

If you need further information, please do not hesitate to contact us.

Thanks for your support.

-- 
Best regards,
Uwe


More information about the freebsd-questions mailing list