tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marinko, Jeff" <Jeff_Mari...@intuit.com>
Subject RE: OutOfMemory Error
Date Thu, 15 Aug 2002 21:58:13 GMT
Because you are not indicating what .class file you want to run...

Try:  java -Xms128m -Xmx256 YourJavaClassHere

That should do it....

-----Original Message-----
From: Patrick Codere [mailto:patrick.codere@motovan.com]
Sent: Thursday, August 15, 2002 3:02 PM
To: 'Tomcat Users List'
Subject: RE: OutOfMemory Error


Can someone tell me why when i go on the command prompt and write 

java -Xms128m -Xmx256m


I get the Usage: java [-options] list

Thanks.


-----Original Message-----
From: Patrick Codere [mailto:patrick.codere@motovan.com]
Sent: Thursday, August 15, 2002 4:24 PM
To: 'Tomcat Users List'
Subject: RE: OutOfMemory Error


Thanks a lot,

	Still, I really feel stupid here, but I tried java -Xms128m -Xmx256m
on the command prompt and get the Usage: java [-options] list

Thanks


-----Original Message-----
From: Marinko, Jeff [mailto:Jeff_Marinko@intuit.com]
Sent: Thursday, August 15, 2002 4:07 PM
To: 'Tomcat Users List'
Subject: RE: OutOfMemory Error


To answer your first question, I'm assuming you only have so much memory, so
if you keep allocating memory, you'll eventually run out and then you'll
have problems.  As long as the JVM can reclaim memory, you should be
alright.

For your second question, it should look something like this:
JAVA -Xms128m -Xmx256m

Where -Xmx256m is your "maximum heap size".  It gave you that error because
the default is 80 megs (which I'm having trouble with), so setting the
minimum above 80 megs gives you the error message.
http://java.sun.com/j2se/1.4/docs/tooldocs/windows/java.html
For the windows standard and non-standard options (such as -Xms and -Xmx).

Hope that clears it up for you.

-----Original Message-----
From: Patrick Codere [mailto:patrick.codere@motovan.com]
Sent: Thursday, August 15, 2002 1:10 PM
To: 'Tomcat Users List'
Subject: OutOfMemory Error


Hi,

	outofmemory problem crashes my Standalone Tomcat Server(NT 4, Tomcat
4.03).  large images on the site.  From reading on subject, seems I have to
increase the JVM heap size.
Question?
	I created a jsp page that shows me the Total memory and Free memory
on the site.  The free memory balances between a number and another getting
smaller and smaller until it crashes.  If I add memory, does that only mean
its going to take longer before it crashes?

Question? writing 	JAVA -Xms128m get Incompatible initial and maximum
heap size 

Please help
Pat


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


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


Mime
View raw message