Re: OutOfMemory Error in Catalina
Hi, I tried to increase the heap size to 1200 MB in catalina.sh file (JAVA_OPTS=-Xms64m -Xmx1200m), It didn't work. I was suggested one more way is to increase the server's maximum file descriptor limit. But I don't know where to increase this limit. Apart from that, is there any other way / utility to find out the root cause of OOM in catalina.out log file. Abhijeet - Original Message - From: Tim Funk To: Tomcat Users List Sent: Wednesday, November 19, 2003 7:50 PM Subject: Re: OutOfMemory Error in Catalina It may not be a leak ... http://jakarta.apache.org/tomcat/faq/memory.html#why -Tim Abhijeet Selukar wrote: Hi All, Now a days i am stuck with a problem. I get exceptions in Catalina.out log file when my web application is running on that. Is there any utility to find out, from where or from which files the memory is leaking... For your information, putting the exception here... java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start(Native Method) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OutOfMemory Error in Catalina
I bet your going down the wrong path for debugging, from the FAQ: -- You have too many threads running. Some OS's have a limit to the number of threads which may be executed by a single process. (Which is what the JVM is.) Refer to your OS docs for more information on how to raise this threshold. -Tim Abhijeet Selukar wrote: Hi, I tried to increase the heap size to 1200 MB in catalina.sh file (JAVA_OPTS=-Xms64m -Xmx1200m), It didn't work. I was suggested one more way is to increase the server's maximum file descriptor limit. But I don't know where to increase this limit. Apart from that, is there any other way / utility to find out the root cause of OOM in catalina.out log file. Abhijeet - Original Message - From: Tim Funk To: Tomcat Users List Sent: Wednesday, November 19, 2003 7:50 PM Subject: Re: OutOfMemory Error in Catalina It may not be a leak ... http://jakarta.apache.org/tomcat/faq/memory.html#why -Tim Abhijeet Selukar wrote: Hi All, Now a days i am stuck with a problem. I get exceptions in Catalina.out log file when my web application is running on that. Is there any utility to find out, from where or from which files the memory is leaking... For your information, putting the exception here... java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start(Native Method) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: OutOfMemory Error in Catalina
Howdy, I tried to increase the heap size to 1200 MB in catalina.sh file (JAVA_OPTS=-Xms64m -Xmx1200m), It didn't work. I was suggested one more It didn't work in what way? Did the JVM actually allocate 1200MB and then die with an OutOfMemoryError, or did it never allocate that much (e.g. because they're not that much physical memory). way is to increase the server's maximum file descriptor limit. But I don't know where to increase this limit. Then find out how, e.g. by reading your server's docs. It's usually ulimit on unix systems. Apart from that, is there any other way / utility to find out the root cause of OOM in catalina.out log file. Yes, it's a called a Profiler, preferably one that will give you heap snapshot deltas like OptimizeIt. But if your problem is at the OS level such as by having too few file descriptors, a profiler won't help you. Also know that a profiler requires much more memory be allocated to the JVM to support JVMPI overhead. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: OutOfMemory Error in Catalina
I can recommend OptimizeIt from Borland, saved me a couple of times :) /Søren -Original Message- From: Abhijeet Selukar [mailto:[EMAIL PROTECTED] Sent: 19. november 2003 14:20 To: Tomcat Users List Subject: OutOfMemory Error in Catalina Hi All, Now a days i am stuck with a problem. I get exceptions in Catalina.out log file when my web application is running on that. Is there any utility to find out, from where or from which files the memory is leaking... For your information, putting the exception here... java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start(Native Method) at com.conducive.kiwi.modules.scheduledjobs.ThreadPoolWorker.init(ThreadP oolWorker.java:47) at com.conducive.kiwi.modules.scheduledjobs.ThreadPool.init(ThreadPool.ja va:20) at com.conducive.kiwi.modules.scheduledjobs.Booker.init(Booker.java:84) at sun.reflect.GeneratedConstructorAccessor85.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons tructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at java.lang.Class.newInstance0(Class.java:306) at java.lang.Class.newInstance(Class.java:259) at org.apache.turbine.services.assemblerbroker.util.java.JavaBaseFactory.ge tAssembler(JavaBaseFactory.java:94) at org.apache.turbine.services.assemblerbroker.util.java.JavaScheduledJobFa ctory.getAssembler(JavaScheduledJobFactory.java:69) at org.apache.turbine.services.assemblerbroker.TurbineAssemblerBrokerServic e.getAssembler(TurbineAssemblerBrokerService.java:189) at org.apache.turbine.modules.ScheduledJobLoader.getInstance(ScheduledJobLo ader.java:175) at org.apache.turbine.modules.ScheduledJobLoader.exec(ScheduledJobLoader.ja va:124) at org.apache.turbine.services.schedule.WorkerThread.run(WorkerThread.java: 108) at java.lang.Thread.run(Thread.java:536) Abhijeet Selukar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OutOfMemory Error in Catalina
It may not be a leak ... http://jakarta.apache.org/tomcat/faq/memory.html#why -Tim Abhijeet Selukar wrote: Hi All, Now a days i am stuck with a problem. I get exceptions in Catalina.out log file when my web application is running on that. Is there any utility to find out, from where or from which files the memory is leaking... For your information, putting the exception here... java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start(Native Method) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OutofMemory Error
set JAVA_OPTS environment variable to your preferred max and min heap sizes Example : JAVA_OPTS=-server -Xincgc -Xms128m -Xmx256m Looking for Help : java -X At 05:55 PM 8/25/2003 +0800, you wrote: Hi , I am running a simple servlet/jsp on Tomcat 4.1.18 (on Solaris machine with 4GB mem). The application suppose to extract some data from database but I encountered this error: java.lang.OutOfMemoryError . I don't have any traffic on the tomcat server. Is this a java or tomcat error ?. How can I solve this problem ?. Appreciate your advice. Thanks Regards, Thana - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Best Regards, Venkata Srinivasa Rao, Yerra, Jadason Technology Limited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: OutOfmemory Error!
When App1 reports an OutOfMemoryError, does it means that the error is due to App1 ? or that error may be due to another application running the same VM? or the same TomCat? It is the VM. Is there any good way to make those two apps run independantly? Run two different tomcat instances (two different VMs). If you still want them both on the same port, put apache in front of it. ciao Filip -Original Message- From: Arcadius A. [mailto:[EMAIL PROTECTED]] Sent: Friday, January 31, 2003 1:18 PM To: [EMAIL PROTECTED] Subject: OutOfmemory Error! Hello! I'm running Java applications on a LINUX RedHat server (with 256MB of RAM)... with Tomcat4.1.12 and SUN's JDK1.4_01 There are 2 applications installed on the server and all of them are using the same JVM (the JDK1.4_01) and the same Tomcat App1 uses Tomcat and PostgreSQL App2 uses Tomcat and a kind of Java RDBMS. I've noticed that App2 is having some problems running correctly ...( the kind of Java RDBMS is not correctly running or is having some troubles and is eating a lot of memory [96% of system memo is taken by java] ). By the other side, App1 that use to run quite fine now start throwing OutOfMemoryError. My question is: When App1 reports an OutOfMemoryError, does it means that the error is due to App1 ? or that error may be due to another application running the same VM? or the same TomCat? Is there any good way to make those two apps run independantly? Thanks. Arcadius. - 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]
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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] 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:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 9:36 AM To: [EMAIL PROTECTED] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] 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:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: OutOfMemory Error
Please, what is your configuration (hardware, os, software installed, web applications running...)? -Original Message- From: Patrick Codere [mailto:[EMAIL PROTECTED]] 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 9:36 AM To: [EMAIL PROTECTED] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] 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
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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 9:56 AM To: [EMAIL PROTECTED] Subject: RE: OutOfMemory Error Please, what is your configuration (hardware, os, software installed, web applications running...)? -Original Message- From: Patrick Codere [mailto:[EMAIL PROTECTED]] 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 9:36 AM To: [EMAIL PROTECTED] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] 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
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:[EMAIL PROTECTED]] 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 9:56 AM To: [EMAIL PROTECTED] Subject: RE: OutOfMemory Error Please, what is your configuration (hardware, os, software installed, web applications running...)? -Original Message- From: Patrick Codere [mailto:[EMAIL PROTECTED]] 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 9:36 AM To: [EMAIL PROTECTED] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] DISCLAIMER This e-mail and any
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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 10:05 AM To: [EMAIL PROTECTED] 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:[EMAIL PROTECTED]] 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 9:56 AM To: [EMAIL PROTECTED] Subject: RE: OutOfMemory Error Please, what is your configuration (hardware, os, software installed, web applications running...)? -Original Message- From: Patrick Codere [mailto:[EMAIL PROTECTED]] 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 9:36 AM To: [EMAIL PROTECTED] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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
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:[EMAIL PROTECTED]] 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 10:05 AM To: [EMAIL PROTECTED] 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:[EMAIL PROTECTED]] 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 9:56 AM To: [EMAIL PROTECTED] Subject: RE: OutOfMemory Error Please, what is your configuration (hardware, os, software installed, web applications running...)? -Original Message- From: Patrick Codere [mailto:[EMAIL PROTECTED]] 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 9:36 AM To: [EMAIL PROTECTED] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 1:10 PM To: 'Tomcat Users List' Subject: OutOfMemory Error
RE: OutOfMemory Error
Thanks for your help, I'll check the log files and try and find something. PAt -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 10:15 AM To: [EMAIL PROTECTED] 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:[EMAIL PROTECTED]] 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 10:05 AM To: [EMAIL PROTECTED] 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:[EMAIL PROTECTED]] 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 9:56 AM To: [EMAIL PROTECTED] Subject: RE: OutOfMemory Error Please, what is your configuration (hardware, os, software installed, web applications running...)? -Original Message- From: Patrick Codere [mailto:[EMAIL PROTECTED]] 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 9:36 AM To: [EMAIL PROTECTED] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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
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:[EMAIL PROTECTED]] 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 10:15 AM To: [EMAIL PROTECTED] 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:[EMAIL PROTECTED]] 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 10:05 AM To: [EMAIL PROTECTED] 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:[EMAIL PROTECTED]] 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 9:56 AM To: [EMAIL PROTECTED] Subject: RE: OutOfMemory Error Please, what is your configuration (hardware, os, software installed, web applications running...)? -Original Message- From: Patrick Codere [mailto:[EMAIL PROTECTED]] 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 9:36 AM To: [EMAIL PROTECTED] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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
RE: OutOfMemory Error
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 [EMAIL PROTECTED] -Original Message- From: Dinesh Khetarpal [mailto:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 10:15 AM To: [EMAIL PROTECTED] 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:[EMAIL PROTECTED]] 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 10:05 AM To: [EMAIL PROTECTED] 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:[EMAIL PROTECTED]] 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 9:56 AM To: [EMAIL PROTECTED] Subject: RE: OutOfMemory Error Please, what is your configuration (hardware, os, software installed, web applications running...)? -Original Message- From: Patrick Codere [mailto:[EMAIL PROTECTED]] 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 9:36 AM To: [EMAIL PROTECTED] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] Sent: Thursday
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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: OutOfMemory Error
you must also specify something to execute :) example: java -Xmx128m -Xmx256m com.mycompany.HelloWorld Shannon -Original Message- From: Patrick Codere [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 5: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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: OutOfMemory Error
Hi!! If you are using UNIX. Tune the memory settings in Tomcat as appropriate for your application. To do this, edit /usr/local/jakarta-tomcat/bin/tomcat.sh and locate the following line (approximately line 121): $JAVACMD OMCAT_OPTS -Dtomcat.home=${TOMCAT_HOME} -Xms100663296 -Xmx134217728 org.apache.tomcat.startup.Tomcat $@ Xms is the initial value, Xmx is the maximum value. Multiply 1048576 by the total memory in MB to determine the appropriate number. For example, the setting above has an initial value of 96 MB and a maximum value of 128 MB. -Mensaje original- De: Shailendra T Kontham [mailto:[EMAIL PROTECTED]] Enviado el: Martes, 19 de Junio de 2001 01:20 p.m. Para: [EMAIL PROTECTED] Asunto: OutOfMemory Error Hi Everybody ! I am geting this OutOfMemory Error for a couple of days now with no stack trace. Any idea what is wrong with TOMCAT ? Is that anythiing to do with Low memory available ?? thanks - Shailendra T. Kontham Advancework Inc.,
RE: OutOfMemory Error
Chances are you either: 1. Are using a very small stack (using -Xmx with a small number) 2. You are putting items into sessions that you aren't removing and your sessions aren't expiring fast enough to keep your system in memory 3. You have a servlet with a class or static variable that is some form of a list or map and you keep adding to it I have Tomcat installed on a server at a client location. Its been up for 30 days this time, 45 at the longest, and the memory has stayed pretty constant (creeping up and then back down with usage) Randy -Original Message- From: Shailendra T Kontham [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 19, 2001 4:20 PM To: [EMAIL PROTECTED] Subject: OutOfMemory Error Hi Everybody ! I am geting this OutOfMemory Error for a couple of days now with no stack trace. Any idea what is wrong with TOMCAT ? Is that anythiing to do with Low memory available ?? thanks - Shailendra T. Kontham Advancework Inc.,