tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Turner, John" <JTur...@AAS.com>
Subject RE: OutOfMemory Error
Date Fri, 16 Aug 2002 14:33:17 GMT

You can't.

Tomcat 4 strictly enforces the web.xml DTD. There's no way around it.  Add
the missing elements (not all are required) to your web.xml, according to
the DTD.

John Turner
jturner@NOSPAM.aas.com

-----Original Message-----
From: Dinesh Khetarpal [mailto:dkhetarpal@karora.ca]
Sent: Friday, August 16, 2002 10:24 AM
To: Tomcat Users List
Subject: RE: OutOfMemory Error


I just need help on web.xml file could you tell me how to make web.xml
which does not have all the dtd elements run in tomcat4 +

-----Original Message-----
From: Patrick Codere [mailto:patrick.codere@motovan.com]
Sent: Friday, August 16, 2002 10:37 AM
To: 'Tomcat Users List'
Subject: RE: OutOfMemory Error


Thanks for your help,

	I'll check the log files and try and find something.

PAt

-----Original Message-----
From: andre.powroznik@belgacom.be [mailto:andre.powroznik@belgacom.be]
Sent: Friday, August 16, 2002 10:15 AM
To: tomcat-user@jakarta.apache.org
Subject: RE: OutOfMemory Error


Please, you may find logs in the tomcat directory\logs. Here could be
stack
traces, access logs... A lot of things very useful to investigate. A few
JSPs and some pictures shouldn't cause an outofmemoryexception (at least
in
my opinion). I'm sorry but I must leave my work now... Try investigating
in
the logs, changing the trace level...

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


Sorry,

	JVM sun j2sdk, Have some jsp pages that connect to mysql
database.
Search engine is Java Search Engine (freeware).  About a log, i don't
think
so.

-----Original Message-----
From: andre.powroznik@belgacom.be [mailto:andre.powroznik@belgacom.be]
Sent: Friday, August 16, 2002 10:05 AM
To: tomcat-user@jakarta.apache.org
Subject: RE: OutOfMemory Error


Please, what JVM? No SQL server? Is the search engine a commercial
product?
Do you have a log?

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


my configuration is - hardware/os : 1 processor P3 550 Mhz, 512m ram, NT
4,
Tomcat Standalone, 2 webapplications (web site and catalogs for
website).

Pat

-----Original Message-----
From: andre.powroznik@belgacom.be [mailto:andre.powroznik@belgacom.be]
Sent: Friday, August 16, 2002 9:56 AM
To: tomcat-user@jakarta.apache.org
Subject: RE: OutOfMemory Error


Please, what is your configuration (hardware, os, software installed,
web
applications running...)?

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


	Have two Tomcat Webapps for my site.  One is the site
(www.motovan.com) with a few servlets (mostly to set language locale)
and
jsp pages.  This webapp connects to another webapp containing a few
online
catalogs with thousands of pages.  Each page is a jpeg file of around
70kb.
People can browse from page to page.  Catalogs have a search engine.

I don't know how many clients or requests takes to crash?  Is important?
If
yes, how do i know how many?

Pat
  
-----Original Message-----
From: andre.powroznik@belgacom.be [mailto:andre.powroznik@belgacom.be]
Sent: Friday, August 16, 2002 9:36 AM
To: tomcat-user@jakarta.apache.org
Subject: RE: OutOfMemory Error


Please, how large are your pictures? Are they directly served by Tomcat?
Do
you have other JSP / servlets running? How many clients or requests does
it
take to crash?

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


	But i'm still lost here.  If my Standalone tomcat crashes
because of
outofmemory problem, does that mean i need to change the heap size by
changing the heap size with all the classes in my webapp like this :
java
-Xms128m -Xmx256m AllMyClasses

	Could that solve the problem?

  And how do i make the JVM reclaim memory?

Thanks everyone,
Pat


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


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>

**** DISCLAIMER **** 
"This e-mail and any attachments thereto may contain information 
which is confidential and/or protected by intellectual property 
rights and are intended for the sole use of the recipient(s) named
above. 
Any use of the information contained herein (including, but not limited
to, 
total or partial reproduction, communication or distribution in any
form) 
by persons other than the designated recipient(s) is prohibited. 
If you have received this e-mail in error, please notify the sender
either 
by telephone or by e-mail and delete the material from any computer. 
Thank you for your cooperation."


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

**** DISCLAIMER **** 
"This e-mail and any attachments thereto may contain information 
which is confidential and/or protected by intellectual property 
rights and are intended for the sole use of the recipient(s) named
above. 
Any use of the information contained herein (including, but not limited
to, 
total or partial reproduction, communication or distribution in any
form) 
by persons other than the designated recipient(s) is prohibited. 
If you have received this e-mail in error, please notify the sender
either 
by telephone or by e-mail and delete the material from any computer. 
Thank you for your cooperation."


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

**** DISCLAIMER **** 
"This e-mail and any attachments thereto may contain information 
which is confidential and/or protected by intellectual property 
rights and are intended for the sole use of the recipient(s) named
above. 
Any use of the information contained herein (including, but not limited
to, 
total or partial reproduction, communication or distribution in any
form) 
by persons other than the designated recipient(s) is prohibited. 
If you have received this e-mail in error, please notify the sender
either 
by telephone or by e-mail and delete the material from any computer. 
Thank you for your cooperation."


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

**** DISCLAIMER **** 
"This e-mail and any attachments thereto may contain information 
which is confidential and/or protected by intellectual property 
rights and are intended for the sole use of the recipient(s) named
above. 
Any use of the information contained herein (including, but not limited
to, 
total or partial reproduction, communication or distribution in any
form) 
by persons other than the designated recipient(s) is prohibited. 
If you have received this e-mail in error, please notify the sender
either 
by telephone or by e-mail and delete the material from any computer. 
Thank you for your cooperation."


--
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>

--
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