> From: dOE [mailto:doep...@gmail.com] > Subject: How to set Java Memory heap size on Linux? > > I know in Windows this is done through the Registry > adding -Xms256m -Xmx768m.
You should not be editing the registry in Windows; use the tomcat6w.exe program to manipulate the various JVM parameters when running Tomcat as a Windows service. > From what I have read on the internet to do the same > on a Linux system I need to add the following line to > my ../tomcat/bin/catalina.sh fle? > JAVA_OPTS=-Xms256m -Xmx768m Also incorrect, but that's a widely-held belief (as evidenced by the answer from zhaoxueqing). What you should actually do is create a setenv.sh script in Tomcat's bin directory that establishes any environment variables you need, including JAVA_OPTS (CATALINA_OPTS is actually preferable here). The Tomcat startup scripts automatically call setenv.sh if it exists; this avoids having to modify Tomcat-supplied scripts. - 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