You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by joon yoo <jy...@gmail.com> on 2005/01/04 22:19:26 UTC

JAVA_OPTS and Xmx Xms

On a Win2000 SP4 server running tomcat 5.0.24 with 1GB of RAM

JAVA_OPTS was set to -Xmx768m -Xms768m -server 

as an environment variable in Windows, (not set in a batch file to
start tomcat).

How can it be confirmed that the new JVM settings is configured and
running correctly?

Thanks,

Joon

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: JAVA_OPTS and Xmx Xms

Posted by Dwayne Ghant <dg...@temple.edu>.
http://localhost:<port>/manager/status
joon yoo wrote:

>On a Win2000 SP4 server running tomcat 5.0.24 with 1GB of RAM
>
>JAVA_OPTS was set to -Xmx768m -Xms768m -server 
>
>as an environment variable in Windows, (not set in a batch file to
>start tomcat).
>
>How can it be confirmed that the new JVM settings is configured and
>running correctly?
>
>Thanks,
>
>Joon
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>  
>


-- 

Dwayne A. Ghant
Application Developer
Temple University
215.204.5555
dghant@temple.edu

 


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: JAVA_OPTS and Xmx Xms

Posted by Mufaddal Khumri <mu...@wmotion.com>.
You can stick this code in somewhere:

		Runtime r = Runtime.getRuntime();
		
		System.out.println("Free Memory: " + r.freeMemory());
		System.out.println("Total Memory: " + r.totalMemory());

If your settings are taking effect you will see the results accordingly.

On Jan 4, 2005, at 2:42 PM, joon yoo wrote:

> Yes
>
>
> On Tue, 04 Jan 2005 16:40:33 -0500, Ben Souther <bs...@fwdco.com> 
> wrote:
>> Are you running Tomcat as a Windows Service?
>>
>> \
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
Mufaddal Khumri

Re: JAVA_OPTS and Xmx Xms

Posted by joon yoo <jy...@gmail.com>.
Yes


On Tue, 04 Jan 2005 16:40:33 -0500, Ben Souther <bs...@fwdco.com> wrote:
> Are you running Tomcat as a Windows Service?
> 
> \

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: JAVA_OPTS and Xmx Xms

Posted by Ben Souther <bs...@fwdco.com>.
Are you running Tomcat as a Windows Service?


On Tue, 2005-01-04 at 16:36, joon yoo wrote:
> it looks like it's still stuck on the 64MB default value:
> 
> JVM
> Free memory: 4.58 MB Total memory: 14.01 MB Max memory: 63.56 MB
> 
> `set` shows the system env. variables as:
> 
> JAVA_HOME=D:\Sun\AppServer\jdk
> JAVA_OPTS=-Xmx768m -Xms768m -server
> 
> Were quotes needed around the value for "JAVA_OPTS"?  If configuring
> it as a system env. variable was incorrect then can this registry edit
> for tomcat4 work:
> 
> http://www.pauaware.co.nz/tomcatntservice.htm
> 
> Do all those values there need to be added or can the only desired
> values be added?
> 
> Many thanks for any help,
> 
> Joon
> 
> 
> On Tue, 04 Jan 2005 16:25:52 -0500, Ben Souther <bs...@fwdco.com> wrote:
> > Click on "Server Status" from the Tomcat Manger App.
> > 
> > 
> > On Tue, 2005-01-04 at 16:19, joon yoo wrote:
> > > On a Win2000 SP4 server running tomcat 5.0.24 with 1GB of RAM
> > >
> > > JAVA_OPTS was set to -Xmx768m -Xms768m -server
> > >
> > > as an environment variable in Windows, (not set in a batch file to
> > > start tomcat).
> > >
> > > How can it be confirmed that the new JVM settings is configured and
> > > running correctly?
> > >
> > > Thanks,
> > >
> > > Joon
> > > 
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> > >
> > >
> > 
> >
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org