> -----Original Message----- > From: Kevin Jenkins [mailto:rak...@jenkinssoftware.com] > Sent: Sunday, March 31, 2013 1:21 PM > To: Tomcat Users List > Subject: Tomcat how to set -Xms and -Xmx > > If I run tomcat7w.exe (windows) there is a tab where I can set the > initial and maximum memory pool to 2560. However, I don't want to use > tomcat7w.exe, I just want to run the batch file manually > (startup.bat). However, I can't figure out how to set these memory pool > values for startup.bat to use. > > I read somewhere to create C:\apache-tomcat-7.0.37\bin\setenv.bat which > contains SET JAVA_OPTS=-Xms2560 -Xmx2560 > > However, it doesn't work. If I run startup.bat, instead of launching > the webserver it just prints some messages and that's it. No webserver > is started. > > C:\apache-tomcat-7.0.37\bin>startup.bat > Using CATALINA_BASE: "C:\apache-tomcat-7.0.37" > Using CATALINA_HOME: "C:\apache-tomcat-7.0.37" > Using CATALINA_TMPDIR: "C:\apache-tomcat-7.0.37\temp" > Using JRE_HOME: "C:\Program Files\Java\jdk1.6.0_43" > Using CLASSPATH: > "C:\apache-tomcat-7.0.37\bin\bootstrap.jar;C:\apache-tomc > at-7.0.37\bin\tomcat-juli.jar" > C:\apache-tomcat-7.0.37\bin>
Add a "call setenv.bat" (with path as necessary) to startup.bat, or just add the relevant SET statements directly to startup.bat. Jeffrey Harris This e-mail and any attachments are intended only for the use of the addressee(s) named herein and may contain proprietary information. If you are not the intended recipient of this e-mail or believe that you received this email in error, please take immediate action to notify the sender of the apparent error by reply e-mail; permanently delete the e-mail and any attachments from your computer; and do not disseminate, distribute, use, or copy this message and any attachments. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org