> From: Henry Loke [mailto:fsl...@yahoo.com] > Subject: Tomcat configuration.
> How to figure out that I running 32 bit or 64 bit JVM? Enter the command java -version. > When the system down, I ps aux | grep tomcat root 6393 9.3 33.0 3997772 2697592 ? Sl 09:28 8:23 /usr/java/jdk1.6.0_18/bin/java -Djava.util.logging.config.file=/var/lib/tomcat/conf/logging.properties -Djava.awt.headless=true -Dfile.encoding=UTF-8 -server -Xms2G -Xmx2G -XX:NewSize=512m -XX:MaxNewSize=512m -XX:PermSize=512m -XX:MaxPermSize=512m -XX:+DisableExplicitGC -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Xms512M -Xmx512M -XX:MaxPermSize=256M -Xms2G -Xmx2G -XX:MaxPermSize=1G -Djava .endorsed.dirs=/var/lib/tomcat/endorsed -classpath /var/lib/tomcat/bin/bootstrap.jar -Dcatalina.base=/var/lib/tomcat -Dcatalina.home=/var/lib/tomcat -Djava.io.tmpdir=/var/lib/tomcat/temp org.apache.catalina.startup.Bootstrap start > I a bit confuse in this statement: > -server -Xms2G -Xmx2G -XX:NewSize=512m -XX:MaxNewSize=512m > -XX:PermSize=512m -XX:MaxPermSize=512m As you should be. > Is it the machine will run in 2G or 512m? Very good question. > Is it configure wrongly? Definitely. You have the -Xms, -Xmx, and MaxPermSize parameters each set three times; I don't know which the JVM will choose. You need to find the location that sets these, and remove all but one pair. If you are running a 64-bit JVM you can use the 2G value; if you have a 32-bit JVM, you'll be limited to something less than that (usually around 1200M - 1500M). You should also get rid of the -XX:NewSize=512m and -XX:MaxNewSize=512m settings, since that will prevent the JVM heap management from responding appropriately to changes in the workload. Also, you need to remove the -XX:PermSize parameter, and choose one setting for -XX:MaxPermSize (1G is huge and highly unlikely to be necessary). - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org