You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Mark Pease <mp...@chartermi.net> on 2003/03/12 23:13:48 UTC
How to set and verify -Xmx and -Xms settings in Windows
I am really having a hard time finding out how to set the -Xmx and -Xms CATALINA_OPTS in a Windows environment. Here is what I have tried:
1) Set an environment variable named CATALINA_OPTS = -Xms128m -Xmx384m
Neither service nor command line start seem to acknowledge...
2) Added CATALINA_OPTS = ... to startup.bat
Still nothing...
3) Went into registry, added JVM Options for -Xmx and -Xms... per the instructions at Alexandria Software
Service still doesn't seem to use the new values.
Anyone know what I am doing wrong? And, what is the best way to tell if my changes have taken effect? Right now, I am using Java code in my webapp to see what the used, free and max memory values are. I have done a lot of searching on the Internet, and this seems to be the appropriate thing to do, but I want to verify that it is working. I am getting out of memory errors, and am trying to bump up the heap limit to try and alleviate them.
Thanks so much for any advice!
Mark
Re: How to set and verify -Xmx and -Xms settings in Windows
Posted by Uddhav Shirname <ud...@persistent.co.in>.
There is another option JAVA_OPTS. Trying setting this and see if it works.
-- Uddhav
----- Original Message -----
From: "Mark Pease" <mp...@chartermi.net>
To: <to...@jakarta.apache.org>
Sent: Thursday, March 13, 2003 3:43 AM
Subject: How to set and verify -Xmx and -Xms settings in Windows
I am really having a hard time finding out how to set the -Xmx and -Xms
CATALINA_OPTS in a Windows environment. Here is what I have tried:
1) Set an environment variable named CATALINA_OPTS = -Xms128m -Xmx384m
Neither service nor command line start seem to acknowledge...
2) Added CATALINA_OPTS = ... to startup.bat
Still nothing...
3) Went into registry, added JVM Options for -Xmx and -Xms... per the
instructions at Alexandria Software
Service still doesn't seem to use the new values.
Anyone know what I am doing wrong? And, what is the best way to tell if my
changes have taken effect? Right now, I am using Java code in my webapp to
see what the used, free and max memory values are. I have done a lot of
searching on the Internet, and this seems to be the appropriate thing to do,
but I want to verify that it is working. I am getting out of memory errors,
and am trying to bump up the heap limit to try and alleviate them.
Thanks so much for any advice!
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org