Actually that does not work, sorry for the too-soon post. If I modify startup.bat as follows: SET JAVA_OPTS=-Xms2560 -Xmx2560 call "%EXECUTABLE%" start %CMD_LINE_ARGS%
It does not start the webserver, it just prints some messages and does nothing else C:\apache-tomcat-7.0.39\bin>startup.bat Using CATALINA_BASE: "C:\apache-tomcat-7.0.39" Using CATALINA_HOME: "C:\apache-tomcat-7.0.39" Using CATALINA_TMPDIR: "C:\apache-tomcat-7.0.39\temp" Using JRE_HOME: "C:\Program Files\Java\jdk1.6.0_43" Using CLASSPATH: "C:\apache-tomcat-7.0.39\bin\bootstrap.jar;C:\apache-tomc at-7.0.39\bin\tomcat-juli.jar" On Sun, Mar 31, 2013 at 11:06 AM, Kevin Jenkins <rak...@jenkinssoftware.com>wrote: > I did this: > > SET JAVA_OPTS=-Xms2560 -Xmx2560 > call "%EXECUTABLE%" start %CMD_LINE_ARGS% > > > On Sun, Mar 31, 2013 at 10:34 AM, Harris, Jeffrey E. < > jeffrey.har...@mantech.com> wrote: > >> >> >> > -----Original Message----- >> > From: Harris, Jeffrey E. [mailto:jeffrey.har...@mantech.com] >> > Sent: Sunday, March 31, 2013 1:32 PM >> > To: Tomcat Users List >> > Subject: RE: Tomcat how to set -Xms and -Xmx >> > >> > > -----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 >> >> I just realized you do not want a "Call" in the startup.bat. Just add >> the setenv.bat >> line before the Tomcat startup line, or add the SET statements before the >> Tomcat startup >> line. >> >> 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 >> >> >