Thanks for this tip. So, if I wanted to set both the initial and the max heap size in this Windows batch file, do I say it with quotes like this:
set JAVA_OPTS="-Xms128m -Xmx128m" Thanks so much, Stephen P.S. When I do that, it's only starting me at about 10MB, so I'm wondering if this isn't the way to pass both of them at once... ----- Original message ----- From: "Stephen Bacon" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Date: Mon, 19 Apr 2004 15:14:32 -0400 Subject: Re: emergency - need to get into admin app In general, you only use it to pass options that you might need. For example the X flag controls memory, so if your app requires it you can instruct tomcat to launch JVMs with a higher max (i.e. if it seems to be running out of memory). As an example I use: "-Xmx128m" to set the max at 128MB (i think the default is 64?) Note I'm using this under linux so it's in a shell script. In the Windows batch file, you'd just use: set JAVA_OPTS=-Xmx128m Which I would put after the line "rem ----- Execute The Requested Command" - but that's just me ;^) You could also use the control panel to set a system-wide env. variable, but you don't need everybody to have it defined, plus it may mess you up when running java apps other than tomcat. -Steve Stephen Charles Huey wrote: > I see something in catalina.bat about a JAVA_OPTS environment variable. > Do I need to set this in Windows? When I run java -X on the command > line, I see something about a -Xms option for setting the heap size. Do > I just type -Xms <some number> in the Windows environment variable or > what? > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
