RE: java.lang.OutOfMemoryError Tomcat4.1.30
Increase the size of the heap. The default is only 64M. Ta Matt -Original Message- From: kjiang [mailto:[EMAIL PROTECTED] Sent: 06 January 2005 21:19 To: tomcat-user@jakarta.apache.org Subject: java.lang.OutOfMemoryError Tomcat4.1.30 Hi When tomcat (version 4.1.30) read in a large file, java.lang.OutOfMemoryError occurred, what can I do for this issue. Thanks Kelvin jiang Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java.lang.OutOfMemoryError Tomcat4.1.30
Either don't read so large a file into memory (ie read chunks and process them rather than the entire file) or increase the memory that Tomcat can use. You can increase the memory allowed to the VM using the -X arguements (java -X for help). The one you'll want is going to be -Xmx###M where the ### should be the amount of memory you want to allocate. Generally for production servers I typically allow tomcat at least 256 megs of ram using the option -Xmx256M. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: kjiang [mailto:[EMAIL PROTECTED] Sent: Thursday, January 06, 2005 1:19 PM To: tomcat-user@jakarta.apache.org Subject: java.lang.OutOfMemoryError Tomcat4.1.30 Hi When tomcat (version 4.1.30) read in a large file, java.lang.OutOfMemoryError occurred, what can I do for this issue. Thanks Kelvin jiang - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java.lang.OutOfMemoryError: Java heap space
On Thu, 2004-11-25 at 00:23, Lee Chin Khiong wrote: I'm using Tomcat 5, jdk1.5, running XP. This happen after a while and I didn't configure the memory, it's default. Tomcat 5.5, I assume. It could just be that your app needs more than the 64m than the JVM initially allots for itself. This is fairly common. Follow Quinton Delpeche's instructions for configuring the memory and watch your app over time with the manager tool. Just remember, the manager tool has limited value. Because Java's garbage collection (GC) doesn't run until the JVM see itself getting close to running out of memory, the memory setting shown in the manager will always climb, even if there isn't a problem. If you have a memory leak in your code, this will only postpone the problem and it, eventually, will happen again, no matter how high you set the memory settings. If the problem continues with more memory alloted, you may want to invest in a profiler to see where it's going. - Ben - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.lang.OutOfMemoryError: Java heap space
It's an error message telling you that your JVM has run out of memory. On Wed, 2004-11-24 at 22:34, Lee Chin Khiong wrote: ERROR : java.lang.OutOfMemoryError: Java heap space. What is this ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java.lang.OutOfMemoryError: Java heap space
How to solve this ? -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Thursday, November 25, 2004 11:39 AM To: Tomcat Users List Subject: Re: java.lang.OutOfMemoryError: Java heap space It's an error message telling you that your JVM has run out of memory. On Wed, 2004-11-24 at 22:34, Lee Chin Khiong wrote: ERROR : java.lang.OutOfMemoryError: Java heap space. What is this ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java.lang.OutOfMemoryError: Java heap space
You're not giving us much to work with. What version of Tomcat are you running? What JVM are you using? What OS are you running on? Does this happen at startup, after an hour, after a month? Have you configured the memory settings for tomcat? If so, what are they? Is there more to this stack trace than you're sharing with us? Here's a page in the Tomcat documentation that deals with memory: http://jakarta.apache.org/tomcat/faq/memory.html Hope it helps. -Ben On Wed, 2004-11-24 at 23:01, Lee Chin Khiong wrote: How to solve this ? -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Thursday, November 25, 2004 11:39 AM To: Tomcat Users List Subject: Re: java.lang.OutOfMemoryError: Java heap space It's an error message telling you that your JVM has run out of memory. On Wed, 2004-11-24 at 22:34, Lee Chin Khiong wrote: ERROR : java.lang.OutOfMemoryError: Java heap space. What is this ? - 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: java.lang.OutOfMemoryError: Java heap space
On Thursday 25 November 2004 06:01, Lee Chin Khiong wrote: How to solve this ? Add this line to your catalina.sh for unix: JAVA_OPTS=-Xms128m -Xmx256m Add this line to you catalina.bat for Windows: set JAVA_OPTS=-Xms128m -Xmx256m I normally add this line under the one that start JAVADIR. This will set your minimum heap size -Xms to 128 MB and your memory -Xmx to 256m. You will have to tweak this setting to get the best results, sometimes if you set it too high, Tomcat will not start up (check you catalina.out file). On our live server we have set this option to -Xms1024m and -Xmx2048m. The machine has 8GB of RAM so that is why we set it so high. :) Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ Hindsight is an exact science. pgpI5uzi9N6EE.pgp Description: PGP signature
RE: java.lang.OutOfMemoryError: Java heap space
I'm using Tomcat 5, jdk1.5, running XP. This happen after a while and I didn't configure the memory, it's default. -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Thursday, November 25, 2004 12:09 PM To: Tomcat Users List Subject: RE: java.lang.OutOfMemoryError: Java heap space You're not giving us much to work with. What version of Tomcat are you running? What JVM are you using? What OS are you running on? Does this happen at startup, after an hour, after a month? Have you configured the memory settings for tomcat? If so, what are they? Is there more to this stack trace than you're sharing with us? Here's a page in the Tomcat documentation that deals with memory: http://jakarta.apache.org/tomcat/faq/memory.html Hope it helps. -Ben On Wed, 2004-11-24 at 23:01, Lee Chin Khiong wrote: How to solve this ? -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Thursday, November 25, 2004 11:39 AM To: Tomcat Users List Subject: Re: java.lang.OutOfMemoryError: Java heap space It's an error message telling you that your JVM has run out of memory. On Wed, 2004-11-24 at 22:34, Lee Chin Khiong wrote: ERROR : java.lang.OutOfMemoryError: Java heap space. What is this ? - 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: java.lang.OutOfMemoryError: Java heap space
On Thursday 25 November 2004 07:23, Lee Chin Khiong wrote: I'm using Tomcat 5, jdk1.5, running XP. By default Tomcat only allocates 64MB of memory to the compiler. You also make sure that you don't have a memory leak in your code. Power up the manager/html application and go to server status. Keep refreshing the page and watch if your memory usage just keeps climbing without releasing any memory. This happen after a while and I didn't configure the memory, it's default. Regards Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ The reason it's called Grape Nuts is that it contains dextrose, which is also sometimes called grape sugar, and also because Grape Nuts is catchier, in terms of marketing, than A Cross Between Gerbil Food and Gravel, which is what it tastes like. -- Dave Barry, Tips for Writer's pgprkkoXRjji7.pgp Description: PGP signature
RE: java.lang.OutOfMemoryError
Hi, Give the server more memory maybe? Or code your webapps to use less memory (or rather, use memory better)? With the information you gave, more specific advice is impossible. Yoav Shapira Millennium Research Informatics -Original Message- From: Matt He [mailto:[EMAIL PROTECTED] Sent: Thursday, August 05, 2004 10:43 AM To: Tomcat Users List Subject: java.lang.OutOfMemoryError Hi, We upgraded our Tomcat server from 3.0 to 5.1.19 about two months ago (linux machine). Since then it frequently crashed (twice a week). It seems like the crash was caused a web crawler. This web crawler generate many threads and quickly drained server memory. The log file showed java.lang.OutOfMemoryError. When we use Tomcat 3, this crawler didn't cause this problem. Does anyone have any suggestion on how to solve this problem (we don't want to block this crawler)? Thanks. Matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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: java.lang.OutOfMemoryError
In addition to Yoav's comment, you may also want to check on the number of sessions that get created. I know that JRun3 didn't create a session when it wasn't necessary to do so, Tomcat 5 (as per servlet spec.) always creates a session. Typically webcrawlers don't 'do' cookies, so a new session gets created for each request. This can of course have a significant effect on memory. Regards, Michiel Matt He wrote: Hi, We upgraded our Tomcat server from 3.0 to 5.1.19 about two months ago (linux machine). Since then it frequently crashed (twice a week). It seems like the crash was caused a web crawler. This web crawler generate many threads and quickly drained server memory. The log file showed java.lang.OutOfMemoryError. When we use Tomcat 3, this crawler didn't cause this problem. Does anyone have any suggestion on how to solve this problem (we don't want to block this crawler)? Thanks. Matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Michiel Toneman Software Engineer Bibit Global Payment Services Regulierenring 10 3981 LB Bunnik [EMAIL PROTECTED] Tel. +31-30-6595168 Fax +31-30-6564464 http://www.bibit.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java.lang.OutOfMemoryError
We had memory loss with 5.0.19. We profiled a 5.0.19 web app and found that memory was not being garbage collected too well. As soon as we upgraded this went away and was proven by th profiling. Start by trying out 5.0.27 and see how it goes. If it still happens then take Yoav's advice and profile you app using the (now freeware and excellent) JProbe (www.quest.com) and go from there. ADC -Original Message- From: Matt He [mailto:[EMAIL PROTECTED] Sent: 05 August 2004 15:43 To: Tomcat Users List Subject: java.lang.OutOfMemoryError Hi, We upgraded our Tomcat server from 3.0 to 5.1.19 about two months ago (linux machine). Since then it frequently crashed (twice a week). It seems like the crash was caused a web crawler. This web crawler generate many threads and quickly drained server memory. The log file showed java.lang.OutOfMemoryError. When we use Tomcat 3, this crawler didn't cause this problem. Does anyone have any suggestion on how to solve this problem (we don't want to block this crawler)? Thanks. Matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.lang.OutOfMemoryError
True, there is a definite memory leak when using a connector and a front-end webserver (e.g. mod_jk, mod_jk2) You can try fixing this by putting: # Fix memory leak bug in tomcat 5.0.19: request.registerRequests=false in $TOMCAT_HOME/conf/jk2.properties Cheers, Michiel Allistair Crossley wrote: We had memory loss with 5.0.19. We profiled a 5.0.19 web app and found that memory was not being garbage collected too well. As soon as we upgraded this went away and was proven by th profiling. Start by trying out 5.0.27 and see how it goes. If it still happens then take Yoav's advice and profile you app using the (now freeware and excellent) JProbe (www.quest.com) and go from there. ADC -Original Message- From: Matt He [mailto:[EMAIL PROTECTED] Sent: 05 August 2004 15:43 To: Tomcat Users List Subject: java.lang.OutOfMemoryError Hi, We upgraded our Tomcat server from 3.0 to 5.1.19 about two months ago (linux machine). Since then it frequently crashed (twice a week). It seems like the crash was caused a web crawler. This web crawler generate many threads and quickly drained server memory. The log file showed java.lang.OutOfMemoryError. When we use Tomcat 3, this crawler didn't cause this problem. Does anyone have any suggestion on how to solve this problem (we don't want to block this crawler)? Thanks. Matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Michiel Toneman Software Engineer Bibit Global Payment Services Regulierenring 10 3981 LB Bunnik [EMAIL PROTECTED] Tel. +31-30-6595168 Fax +31-30-6564464 http://www.bibit.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java.lang.OutOfMemoryError
Hi, It wouldn't hurt to search the FAQ or archives before posting: http://jakarta.apache.org/tomcat/faq/memory.html http://marc.theaimsgroup.com/?l=tomcat-userw=2r=1s=OutOfMemoryErrorq =b Yoav Shapira Millennium Research Informatics -Original Message- From: Matthew Chen [mailto:[EMAIL PROTECTED] Sent: Thursday, June 03, 2004 10:25 AM To: Tomcat Users List Subject: java.lang.OutOfMemoryError Has anyone ever experienced this error? The machine I am running has enough memory, I think it is around 2GB. The java instance just used for less than 150MB memory from prstat. Does anyone know how to increase initial tomcat memory size just like Java does? Thanks! Matt chen java.lang.OutOfMemoryError java.lang.OutOfMemoryError java.lang.OutOfMemoryError Jun 2, 2004 3:21:14 PM unknown unknown SEVERE: Error processing request java.lang.OutOfMemoryError Jun 2, 2004 3:21:14 PM unknown unknown SEVERE: Error unregistering mbean java.lang.OutOfMemoryError java.lang.OutOfMemoryError Jun 2, 2004 3:21:14 PM unknown unknown SEVERE: Unexpected error java.lang.OutOfMemoryError Jun 2, 2004 3:21:14 PM unknown unknown SEVERE: Unexpected error java.lang.OutOfMemoryError Jun 2, 2004 3:21:14 PM unknown unknown SEVERE: Unexpected error java.lang.OutOfMemoryError Jun 2, 2004 3:21:14 PM org.apache.coyote.http11.Http11Processor process SEVERE: Error processing request java.lang.OutOfMemoryError - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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: java.lang.OutOfMemoryError
On Thu, Jun 03, 2004 at 10:24:47AM -0400, Matthew Chen wrote: : Has anyone ever experienced this error? The machine I am running has enough : memory, I think it is around 2GB. The java instance just used for less than : 150MB memory from prstat. Does anyone know how to increase initial tomcat : memory size just like Java does? Yes -- search the archives for the $JAVA_OPTS env var and set it to your preffered -Xmx -Xms values. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.lang.OutOfMemoryError
more information please, version of tomcat and windows or linux? - Original Message - From: Matthew Chen [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, June 03, 2004 11:24 AM Subject: java.lang.OutOfMemoryError Has anyone ever experienced this error? The machine I am running has enough memory, I think it is around 2GB. The java instance just used for less than 150MB memory from prstat. Does anyone know how to increase initial tomcat memory size just like Java does? Thanks! Matt chen java.lang.OutOfMemoryError java.lang.OutOfMemoryError java.lang.OutOfMemoryError Jun 2, 2004 3:21:14 PM unknown unknown SEVERE: Error processing request java.lang.OutOfMemoryError Jun 2, 2004 3:21:14 PM unknown unknown SEVERE: Error unregistering mbean java.lang.OutOfMemoryError java.lang.OutOfMemoryError Jun 2, 2004 3:21:14 PM unknown unknown SEVERE: Unexpected error java.lang.OutOfMemoryError Jun 2, 2004 3:21:14 PM unknown unknown SEVERE: Unexpected error java.lang.OutOfMemoryError Jun 2, 2004 3:21:14 PM unknown unknown SEVERE: Unexpected error java.lang.OutOfMemoryError Jun 2, 2004 3:21:14 PM org.apache.coyote.http11.Http11Processor process SEVERE: Error processing request java.lang.OutOfMemoryError - 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: java.lang.OutOfMemoryError
catalina.bat or catalina.sh, set JAVA_OPTS=-mx512m - Original Message - From: James Sherwood [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, June 03, 2004 9:39 AM Subject: Re: java.lang.OutOfMemoryError more information please, version of tomcat and windows or linux? - Original Message - From: Matthew Chen [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, June 03, 2004 11:24 AM Subject: java.lang.OutOfMemoryError Has anyone ever experienced this error? The machine I am running has enough memory, I think it is around 2GB. The java instance just used for less than 150MB memory from prstat. Does anyone know how to increase initial tomcat memory size just like Java does? Thanks! Matt chen java.lang.OutOfMemoryError java.lang.OutOfMemoryError java.lang.OutOfMemoryError Jun 2, 2004 3:21:14 PM unknown unknown SEVERE: Error processing request java.lang.OutOfMemoryError Jun 2, 2004 3:21:14 PM unknown unknown SEVERE: Error unregistering mbean java.lang.OutOfMemoryError java.lang.OutOfMemoryError Jun 2, 2004 3:21:14 PM unknown unknown SEVERE: Unexpected error java.lang.OutOfMemoryError Jun 2, 2004 3:21:14 PM unknown unknown SEVERE: Unexpected error java.lang.OutOfMemoryError Jun 2, 2004 3:21:14 PM unknown unknown SEVERE: Unexpected error java.lang.OutOfMemoryError Jun 2, 2004 3:21:14 PM org.apache.coyote.http11.Http11Processor process SEVERE: Error processing request java.lang.OutOfMemoryError - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java.lang.OutOfMemoryError
Thanks for all replies and recommendations. Pretty helpful, FYI, I am running Tomcat 5.0.12 on solaris 8. Matt -Original Message- From: James Sherwood [mailto:[EMAIL PROTECTED] Sent: Thursday, June 03, 2004 10:40 AM To: Tomcat Users List Subject: Re: java.lang.OutOfMemoryError more information please, version of tomcat and windows or linux? - Original Message - From: Matthew Chen [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, June 03, 2004 11:24 AM Subject: java.lang.OutOfMemoryError Has anyone ever experienced this error? The machine I am running has enough memory, I think it is around 2GB. The java instance just used for less than 150MB memory from prstat. Does anyone know how to increase initial tomcat memory size just like Java does? Thanks! Matt chen java.lang.OutOfMemoryError java.lang.OutOfMemoryError java.lang.OutOfMemoryError Jun 2, 2004 3:21:14 PM unknown unknown SEVERE: Error processing request java.lang.OutOfMemoryError Jun 2, 2004 3:21:14 PM unknown unknown SEVERE: Error unregistering mbean java.lang.OutOfMemoryError java.lang.OutOfMemoryError Jun 2, 2004 3:21:14 PM unknown unknown SEVERE: Unexpected error java.lang.OutOfMemoryError Jun 2, 2004 3:21:14 PM unknown unknown SEVERE: Unexpected error java.lang.OutOfMemoryError Jun 2, 2004 3:21:14 PM unknown unknown SEVERE: Unexpected error java.lang.OutOfMemoryError Jun 2, 2004 3:21:14 PM org.apache.coyote.http11.Http11Processor process SEVERE: Error processing request java.lang.OutOfMemoryError - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java.lang.OutOfMemoryError
Search for '$JAVA_OPTS' env var in catalina.sh placed in $tomcat_home/bin And set it to -Xms512m -Xmx2048m Note: Now this 512m is least memory that should be free for tomcat before you start tomcat. Regards, Jagsir Singh Dhillon IFlex Solutions Associate Consultant i-flex Center, 399 Subash Road PrimeSourcing Vile Parle(East) Mumbai - 57 Tel: +91-22-5668 5361 web: www.iflexsolutions.com Thanks for all replies and recommendations. Pretty helpful, FYI, I am running Tomcat 5.0.12 on solaris 8. Matt Subject: java.lang.OutOfMemoryError Has anyone ever experienced this error? The machine I am running has enough memory, I think it is around 2GB. The java instance just used for less than 150MB memory from prstat. Does anyone know how to increase initial tomcat memory size just like Java does? Thanks! Matt chen java.lang.OutOfMemoryError java.lang.OutOfMemoryError java.lang.OutOfMemoryError Jun 2, 2004 3:21:14 PM unknown unknown SEVERE: Error processing request java.lang.OutOfMemoryError Jun 2, 2004 3:21:14 PM unknown unknown SEVERE: Error unregistering mbean java.lang.OutOfMemoryError java.lang.OutOfMemoryError Jun 2, 2004 3:21:14 PM unknown unknown SEVERE: Unexpected error java.lang.OutOfMemoryError Jun 2, 2004 3:21:14 PM unknown unknown SEVERE: Unexpected error java.lang.OutOfMemoryError Jun 2, 2004 3:21:14 PM unknown unknown SEVERE: Unexpected error java.lang.OutOfMemoryError Jun 2, 2004 3:21:14 PM org.apache.coyote.http11.Http11Processor process SEVERE: Error processing request java.lang.OutOfMemoryError - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java.lang.OutOfMemoryError
Hi, You know, I remember the good old days on this list when people backed up claims and assertions with a bit of proof ;) Show us a profiler snapshot (or sequence thereof), provide a test program to reproduce the problem, anything really more than an empty claim... As to the original poster, use a profiler to see where your memory is allocated when you get the OutOfMemoryError. Yoav Shapira Millennium Research Informatics -Original Message- From: Joseph Shraibman [mailto:[EMAIL PROTECTED] Sent: Sunday, March 21, 2004 7:28 PM To: Tomcat Users List Subject: Re: java.lang.OutOfMemoryError Sounds like the same memory leak problem I've been having. The problem is when new threads are created to handle concurrent connections. Marco Pöhler wrote: Hi, I'm running tomcat 5.0.19 J2SDK1.4.2_03 on a suse linux 8.1. I wrote a really simple application, just one servlet and a few jsp pages, using dbcp/jndi. Nevertheless I got an OutOfMemoryError every 2 days and I have to restart the tomcat to fix the problem. Here is the log entry: 2004-03-21 10:41:04 StandardWrapperValve[mapperServlet]: Servlet.service() for servlet mapperServlet threw exception java.lang.OutOfMemoryError Okay, I've investigated my source code for some kind of memory leak, but without any success. How can I found what the problem is ? Are there tools which can help me ? thanks in advance Marco Poehler --- http://www.poehlerpoehler.de - 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] 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: java.lang.OutOfMemoryError
How much information do you put in servlet sessions? How long do sessions last? How many active user sessions do you have at any given time? Do you start the VM up without providing -Xmx512m or something like that? If so, you are starting a VM with a maximum of 64meg of memory available to everything running within it. That includes the appserver itself plus any apps. It is easy to use more than this, especially if your load is high and/or you store lots of info in the sessions. Keep in mind that a little bit of data in the session can go a long way if you have lots of users. Less than 1meg per/user plus, let's say, 64 users with active sessions (not necessarily making concurrent requests) would easily use up the default memory maximum of the VM. Jake At 01:53 PM 3/21/2004 +0100, you wrote: Hi, I'm running tomcat 5.0.19 J2SDK1.4.2_03 on a suse linux 8.1. I wrote a really simple application, just one servlet and a few jsp pages, using dbcp/jndi. Nevertheless I got an OutOfMemoryError every 2 days and I have to restart the tomcat to fix the problem. Here is the log entry: 2004-03-21 10:41:04 StandardWrapperValve[mapperServlet]: Servlet.service() for servlet mapperServlet threw exception java.lang.OutOfMemoryError Okay, I've investigated my source code for some kind of memory leak, but without any success. How can I found what the problem is ? Are there tools which can help me ? thanks in advance Marco Poehler --- http://www.poehlerpoehler.de - 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: java.lang.OutOfMemoryError
Hi Marco Give 'The Reference Scanner' a try and make heap snapshots and check the diff between snapshots. I just published the tomcat-howto. You find the Software here http://jb2works.com/ If you need more help, you reach me via mail. Best regards, Joerg Marco Pöhler wrote: Hi, I'm running tomcat 5.0.19 J2SDK1.4.2_03 on a suse linux 8.1. I wrote a really simple application, just one servlet and a few jsp pages, using dbcp/jndi. Nevertheless I got an OutOfMemoryError every 2 days and I have to restart the tomcat to fix the problem. Here is the log entry: 2004-03-21 10:41:04 StandardWrapperValve[mapperServlet]: Servlet.service() for servlet mapperServlet threw exception java.lang.OutOfMemoryError Okay, I've investigated my source code for some kind of memory leak, but without any success. How can I found what the problem is ? Are there tools which can help me ? thanks in advance Marco Poehler --- http://www.poehlerpoehler.de - 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: java.lang.OutOfMemoryError
Forgot to mention that I have a lot of stuff about Memory Leaks generally online: FAQ http://jb2works.com/memoryleak/index.html and Why do we have a Data Cancer The Top Five to avoid it http://jb2works.com/memoryleak/topfive.html Best regards, Joerg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java.lang.OutOfMemoryError
I was having a similar problem with a similar configuration but was having to restart every day. For some reason the exact same JDK/tomcat install on my windows dev box performed just fine under stress testing and reclaimed memory just fine whereas my Linux production box had serious issues. I increased the memory from the default 64mb to 128mb on my linux server and now it is behaving just as the prod server does - its reclaiming memory in a similar healthy pattern. So, just try increasing the heap size to 128mb first and see if you're still having the same issue. It seems to work some magic. Cheers. Neal -Original Message- From: Marco Pöhler [mailto:[EMAIL PROTECTED] Sent: Sunday, March 21, 2004 4:54 AM To: tomcat-user Subject: java.lang.OutOfMemoryError Hi, I'm running tomcat 5.0.19 J2SDK1.4.2_03 on a suse linux 8.1. I wrote a really simple application, just one servlet and a few jsp pages, using dbcp/jndi. Nevertheless I got an OutOfMemoryError every 2 days and I have to restart the tomcat to fix the problem. Here is the log entry: 2004-03-21 10:41:04 StandardWrapperValve[mapperServlet]: Servlet.service() for servlet mapperServlet threw exception java.lang.OutOfMemoryError Okay, I've investigated my source code for some kind of memory leak, but without any success. How can I found what the problem is ? Are there tools which can help me ? thanks in advance Marco Poehler --- http://www.poehlerpoehler.de - 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: java.lang.OutOfMemoryError
Sounds like the same memory leak problem I've been having. The problem is when new threads are created to handle concurrent connections. Marco Pöhler wrote: Hi, I'm running tomcat 5.0.19 J2SDK1.4.2_03 on a suse linux 8.1. I wrote a really simple application, just one servlet and a few jsp pages, using dbcp/jndi. Nevertheless I got an OutOfMemoryError every 2 days and I have to restart the tomcat to fix the problem. Here is the log entry: 2004-03-21 10:41:04 StandardWrapperValve[mapperServlet]: Servlet.service() for servlet mapperServlet threw exception java.lang.OutOfMemoryError Okay, I've investigated my source code for some kind of memory leak, but without any success. How can I found what the problem is ? Are there tools which can help me ? thanks in advance Marco Poehler --- http://www.poehlerpoehler.de - 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: java.lang.OutOfMemoryError
Howdy, hm..i see...but I am working on a server with 4GB of RAM,I think it should Your server has 4GB of physical RAM, but by default Java will allocate up to 64MB to the heap. You can modify this by using various -X parameters to the java runtime (read up on the Java VM Options if you're not familiar with tuning memory). Many things can cause OutOfMemoryErrors. You can search this list's archives to start with. The person who spoke about connections is likely talking about database connectiosn -- you have to make sure you close all your database objects (result sets, statements, connections) or release them back to a pool if that's where you get them. 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: To LAM JEE RE: java.lang.OutOfMemoryError
i am working on window 2000 server and MS SQL 2000..u mean i need to shutdwon the sql server when i wish to reload my application?? -Original Message- From: akki [mailto:[EMAIL PROTECTED] Sent: 27 December 2003 10:41 AM To: Tomcat Users List Subject: To LAM JEE RE: java.lang.OutOfMemoryError connection i mean any database connection or smtp etc. On 26 Dec 2003 20:09 IST you wrote: hm..i see...but I am working on a server with 4GB of RAM,I think it should have more than enough??anyway u did mention about closing connection, what connection u mean? -Original Message- From: akki [mailto:[EMAIL PROTECTED] Sent: 26 December 2003 10:51 AM To: Tomcat Users List Subject: RE: java.lang.OutOfMemoryError yeah i also encountered this problem actaully it is bcoz u r not closing any connection and eventually it is eating up ram u can check for it or increase ur RAM size -Original Message- From: Lam Chee Choong [mailto:[EMAIL PROTECTED] Sent: Thursday, December 25, 2003 8:22 PM To: [EMAIL PROTECTED] Subject: java.lang.OutOfMemoryError i am using tomcal 4.1.18 with JDK 1.4.1_01. i encounter the java.lang.OutOfMemoryError error when i trying to reload my application.this does not happen frequenly. it was like every 10 times i reload and 3 times the error came out. i can restart the tomcat and it work fine. does everybody encounter this b4? - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Contact me at: Akhilesh Maurya ITX BHEL HWR - 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: java.lang.OutOfMemoryError
Window Server 2000 with service pack 2 and my application is connecting with MS sql 2000 with no service pack install -Original Message- From: Antony Paul [mailto:[EMAIL PROTECTED] Sent: 26 December 2003 11:07 PM To: Tomcat Users List Subject: Re: java.lang.OutOfMemoryError Please specify the OS version. A similar thread is there . Antony Paul - Original Message - From: Lam Chee Choong [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, December 26, 2003 8:11 PM Subject: RE: java.lang.OutOfMemoryError hm..i see...but I am working on a server with 4GB of RAM,I think it should have more than enough??anyway u did mention about closing connection, what connection u mean? -Original Message- From: akki [mailto:[EMAIL PROTECTED] Sent: 26 December 2003 10:51 AM To: Tomcat Users List Subject: RE: java.lang.OutOfMemoryError yeah i also encountered this problem actaully it is bcoz u r not closing any connection and eventually it is eating up ram u can check for it or increase ur RAM size -Original Message- From: Lam Chee Choong [mailto:[EMAIL PROTECTED] Sent: Thursday, December 25, 2003 8:22 PM To: [EMAIL PROTECTED] Subject: java.lang.OutOfMemoryError i am using tomcal 4.1.18 with JDK 1.4.1_01. i encounter the java.lang.OutOfMemoryError error when i trying to reload my application.this does not happen frequenly. it was like every 10 times i reload and 3 times the error came out. i can restart the tomcat and it work fine. does everybody encounter this b4? - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java.lang.OutOfMemoryError
You may need to go modify Catalina.bat (I guess that is what it would be on Win2k), add a JAVA_OPT variable, such as JAVA_OPT=-mx512M. I don't remember if it is -mx or -mX though. This will set the highest heap size that the java application can use. You may want to set it to 2 or 3GB though instead. You may also want to use a profiler and see if you have a memory leak in your application. Work like you don't need the money, love like you've never been hurt, and dance like no one is watching. --- Satchel Paige - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java.lang.OutOfMemoryError
hm..i see...but I am working on a server with 4GB of RAM,I think it should have more than enough??anyway u did mention about closing connection, what connection u mean? -Original Message- From: akki [mailto:[EMAIL PROTECTED] Sent: 26 December 2003 10:51 AM To: Tomcat Users List Subject: RE: java.lang.OutOfMemoryError yeah i also encountered this problem actaully it is bcoz u r not closing any connection and eventually it is eating up ram u can check for it or increase ur RAM size -Original Message- From: Lam Chee Choong [mailto:[EMAIL PROTECTED] Sent: Thursday, December 25, 2003 8:22 PM To: [EMAIL PROTECTED] Subject: java.lang.OutOfMemoryError i am using tomcal 4.1.18 with JDK 1.4.1_01. i encounter the java.lang.OutOfMemoryError error when i trying to reload my application.this does not happen frequenly. it was like every 10 times i reload and 3 times the error came out. i can restart the tomcat and it work fine. does everybody encounter this b4? - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.lang.OutOfMemoryError
Please specify the OS version. A similar thread is there . Antony Paul - Original Message - From: Lam Chee Choong [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, December 26, 2003 8:11 PM Subject: RE: java.lang.OutOfMemoryError hm..i see...but I am working on a server with 4GB of RAM,I think it should have more than enough??anyway u did mention about closing connection, what connection u mean? -Original Message- From: akki [mailto:[EMAIL PROTECTED] Sent: 26 December 2003 10:51 AM To: Tomcat Users List Subject: RE: java.lang.OutOfMemoryError yeah i also encountered this problem actaully it is bcoz u r not closing any connection and eventually it is eating up ram u can check for it or increase ur RAM size -Original Message- From: Lam Chee Choong [mailto:[EMAIL PROTECTED] Sent: Thursday, December 25, 2003 8:22 PM To: [EMAIL PROTECTED] Subject: java.lang.OutOfMemoryError i am using tomcal 4.1.18 with JDK 1.4.1_01. i encounter the java.lang.OutOfMemoryError error when i trying to reload my application.this does not happen frequenly. it was like every 10 times i reload and 3 times the error came out. i can restart the tomcat and it work fine. does everybody encounter this b4? - 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] - 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]
To LAM JEE RE: java.lang.OutOfMemoryError
connection i mean any database connection or smtp etc. On 26 Dec 2003 20:09 IST you wrote: hm..i see...but I am working on a server with 4GB of RAM,I think it should have more than enough??anyway u did mention about closing connection, what connection u mean? -Original Message- From: akki [mailto:[EMAIL PROTECTED] Sent: 26 December 2003 10:51 AM To: Tomcat Users List Subject: RE: java.lang.OutOfMemoryError yeah i also encountered this problem actaully it is bcoz u r not closing any connection and eventually it is eating up ram u can check for it or increase ur RAM size -Original Message- From: Lam Chee Choong [mailto:[EMAIL PROTECTED] Sent: Thursday, December 25, 2003 8:22 PM To: [EMAIL PROTECTED] Subject: java.lang.OutOfMemoryError i am using tomcal 4.1.18 with JDK 1.4.1_01. i encounter the java.lang.OutOfMemoryError error when i trying to reload my application.this does not happen frequenly. it was like every 10 times i reload and 3 times the error came out. i can restart the tomcat and it work fine. does everybody encounter this b4? - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Contact me at: Akhilesh Maurya ITX BHEL HWR - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java.lang.OutOfMemoryError
yeah i also encountered this problem actaully it is bcoz u r not closing any connection and eventually it is eating up ram u can check for it or increase ur RAM size -Original Message- From: Lam Chee Choong [mailto:[EMAIL PROTECTED] Sent: Thursday, December 25, 2003 8:22 PM To: [EMAIL PROTECTED] Subject: java.lang.OutOfMemoryError i am using tomcal 4.1.18 with JDK 1.4.1_01. i encounter the java.lang.OutOfMemoryError error when i trying to reload my application.this does not happen frequenly. it was like every 10 times i reload and 3 times the error came out. i can restart the tomcat and it work fine. does everybody encounter this b4? - 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: java.lang.OutOfMemoryError
i add this problen out off memory on my old server i dindint have enoufg ram to execute tomcat proprely [EMAIL PROTECTED] crazy-wilys webmaster From: akki Reply-To: Tomcat Users List To: Tomcat Users List Subject: RE: java.lang.OutOfMemoryError Date: Fri, 26 Dec 2003 08:21:02 +0530 yeah i also encountered this problem actaully it is bcoz u r not closing any connection and eventually it is eating up ram u can check for it or increase ur RAM size -Original Message- From: Lam Chee Choong [mailto:[EMAIL PROTECTED] Sent: Thursday, December 25, 2003 8:22 PM To: [EMAIL PROTECTED] Subject: java.lang.OutOfMemoryError i am using tomcal 4.1.18 with JDK 1.4.1_01. i encounter the java.lang.OutOfMemoryError error when i trying to reload my application.this does not happen frequenly. it was like every 10 times i reload and 3 times the error came out. i can restart the tomcat and it work fine. does everybody encounter this b4? - 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] _ MSN Messenger : discutez en direct avec vos amis ! http://messenger.fr.msn.ca/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.lang.OutOfMemoryError
Cheang Khai Leng (Central) wrote: Hi, i am getting this error in my server log: *** 2003-12-02 10:22:23 - Ctx( ): Get real path \standardpages\footer.jsp C:\server -3.2.3\webapps\itsclient\standardpages\footer.jsp C:\server\apps\jakarta-tomcat- ent java.lang.OutOfMemoryError no stack trace available 12652:58608 13424:59275 Exhausted Resultset 13534:59758 11661:57054 12983:58635 * what does the last few lines mean? i have to restart my tomcat everytime i hit this error. how to increase the JVM heap size? I've forgotten where to do this on a windows machine, but set the following environment variable... CATALINA_OPTS=-Xmx1024m -Xms512m mx is maximum memory usage and ms is minimum memory usage. thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ This communication is intended for the use of the recipient to whom it is addressed, and may contain confidential, personal, and or privileged information. Please contact us immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communications received in error, or subsequent reply, should be deleted or destroyed. --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java.lang.OutOfMemoryError during deploy
in whatever batch file or shell script set more memory java -ms64M -mx512M ...bla bla bla sets the initial memory size to 64MB and the maximum to 512MB Filip -Original Message- From: ajTreece [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 5:21 PM To: [EMAIL PROTECTED] Subject: java.lang.OutOfMemoryError during deploy Folks... My webapp has grown in size and now I get the java.lang.OutOfMemoryError when I try and deploy via ant. Is this a Tomcat issue... and can I tweak a config value to fix it? Thanks, ajTreece - 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: java.lang.OutOfMemoryError during deploy
Sorry Filip... You've lost me, but then again I may not know what I'm talking about. My problem is during a deploy with ant to the tomcat server. I'm not seeing where I would set the sizes for java to deal with this. Later, ajTreece Filip Hanik wrote: in whatever batch file or shell script set more memory java -ms64M -mx512M ...bla bla bla sets the initial memory size to 64MB and the maximum to 512MB Filip -Original Message- From: ajTreece [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 5:21 PM To: [EMAIL PROTECTED] Subject: java.lang.OutOfMemoryError during deploy Folks... My webapp has grown in size and now I get the java.lang.OutOfMemoryError when I try and deploy via ant. Is this a Tomcat issue... and can I tweak a config value to fix it? Thanks, ajTreece - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java.lang.OutOfMemoryError during deploy
which process goes out of memory? Answer: 1. ant - in that case you modify ant.bat or ant.sh 2. tomcat - in that case you modify catalina.bat or catalina.sh Filip -Original Message- From: ajTreece [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 5:40 PM To: Tomcat Users List Subject: Re: java.lang.OutOfMemoryError during deploy Sorry Filip... You've lost me, but then again I may not know what I'm talking about. My problem is during a deploy with ant to the tomcat server. I'm not seeing where I would set the sizes for java to deal with this. Later, ajTreece Filip Hanik wrote: in whatever batch file or shell script set more memory java -ms64M -mx512M ...bla bla bla sets the initial memory size to 64MB and the maximum to 512MB Filip -Original Message- From: ajTreece [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 5:21 PM To: [EMAIL PROTECTED] Subject: java.lang.OutOfMemoryError during deploy Folks... My webapp has grown in size and now I get the java.lang.OutOfMemoryError when I try and deploy via ant. Is this a Tomcat issue... and can I tweak a config value to fix it? Thanks, ajTreece - 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] - 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: java.lang.OutOfMemoryError during deploy
Thanks Filip... It was ant. Later aj Filip Hanik wrote: which process goes out of memory? Answer: 1. ant - in that case you modify ant.bat or ant.sh 2. tomcat - in that case you modify catalina.bat or catalina.sh Filip -Original Message- From: ajTreece [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 5:40 PM To: Tomcat Users List Subject: Re: java.lang.OutOfMemoryError during deploy Sorry Filip... You've lost me, but then again I may not know what I'm talking about. My problem is during a deploy with ant to the tomcat server. I'm not seeing where I would set the sizes for java to deal with this. Later, ajTreece Filip Hanik wrote: in whatever batch file or shell script set more memory java -ms64M -mx512M ...bla bla bla sets the initial memory size to 64MB and the maximum to 512MB Filip -Original Message- From: ajTreece [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 5:21 PM To: [EMAIL PROTECTED] Subject: java.lang.OutOfMemoryError during deploy Folks... My webapp has grown in size and now I get the java.lang.OutOfMemoryError when I try and deploy via ant. Is this a Tomcat issue... and can I tweak a config value to fix it? Thanks, ajTreece - 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] - 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: java.lang.OutOfMemoryError
Howdy, You likely don't have enough memory to do the job the JSP needs to do. Try setting -Xmx (max heap size) to something big. You should also profile your code to see where memory is being used. Search the list archives for much much more information on this topic. Yoav Shapira Millennium ChemInformatics -Original Message- From: Laxmikanth M.S. [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 04, 2003 7:21 AM To: Tomcat Users List Subject: java.lang.OutOfMemoryError Hi all, sometimes I get java.lang.OutOfMemoryError Error in my JSP page ..what is the reason for this... can anyone help.. thanks in advance Regards Laxmikanth M S Off : 91-80-6610330 extn 1256 http://www.sonata-software.com * Disclaimer: The information in this e-mail and any attachments is confidential / privileged. It is intended solely for the addressee or addressees. If you are not the addressee indicated in this message, you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer does not consent to Internet email for messages of this kind. * -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: java.lang.OutOfMemoryError
There is a memory leak in the Sun javac compiler which could be the cause of this problem. You could use the jikes compiler to get around this problem. Andy -Original Message- From: Laxmikanth M.S. [mailto:[EMAIL PROTECTED]] Sent: 04 January 2003 12:21 To: Tomcat Users List Subject: java.lang.OutOfMemoryError Hi all, sometimes I get java.lang.OutOfMemoryError Error in my JSP page ..what is the reason for this... can anyone help.. thanks in advance Regards Laxmikanth M S Off : 91-80-6610330 extn 1256 http://www.sonata-software.com * Disclaimer: The information in this e-mail and any attachments is confidential / privileged. It is intended solely for the addressee or addressees. If you are not the addressee indicated in this message, you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer does not consent to Internet email for messages of this kind. * -- 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: java.lang.OutOfMemoryError
The latest Sun javac compiler has, supposedly, fixed the memory leak. Grab j2sdk1.4.1_01. Unfortunately, for those on Windows, jikes cannot be used to compile jsp's because it doesn't support some encoding options on Windows, only Unix/Linux. Jake At 02:58 PM 1/6/2003 +, you wrote: There is a memory leak in the Sun javac compiler which could be the cause of this problem. You could use the jikes compiler to get around this problem. Andy -Original Message- From: Laxmikanth M.S. [mailto:[EMAIL PROTECTED]] Sent: 04 January 2003 12:21 To: Tomcat Users List Subject: java.lang.OutOfMemoryError Hi all, sometimes I get java.lang.OutOfMemoryError Error in my JSP page ..what is the reason for this... can anyone help.. thanks in advance Regards Laxmikanth M S Off : 91-80-6610330 extn 1256 http://www.sonata-software.com * Disclaimer: The information in this e-mail and any attachments is confidential / privileged. It is intended solely for the addressee or addressees. If you are not the addressee indicated in this message, you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer does not consent to Internet email for messages of this kind. * -- 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: java.lang.OutOfMemoryError
Hi, I was using the tomcat 4.0.3 with JDK 1.4. Tomcat was integrated with apache using warp connector. I used to have the same problem you have now. I recently upgraded to Tomcat 4.1.12 and warp to mod_jk with load balancing with two instances of tomcat on the same server. Memory usages which used to shoot upto 200 MB in a single day is now restricted to 3-4 MBs a day. I cant not say surely my problem was due to warp or tomcat 4.0.3. Your can try upgrading to tomcat 4.1.12. Raj earlier is now Hi all, I have apache(2.0.39) and tomcat(4.0.4) configured on different solaris 8 machines using mod_jk. I have two instances of tomcat running, each serving different jsp/servlet/bean application. I see lot of OutOfMemory errors in tomcat logs after few hours, some times tomcat totally crashes, if I do not restart. I am pretty much monitor java process using prstat and if the memory reaches maximum value, I am restarting tomcat. here is my jdk version... java version 1.3.1 Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24) Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode) I have increased the heap size from 128M to 256M, it didn't help much other than running for few more hours. and currently I have set up 256M min and 256M max values for heap size. I am wondering, is there any known issues with running tomcat4.0.4 under jdk1.3.1(build 1.3.1-b24, mixed mode). ? Is there any preferred jdk version(less memory leaks) for tomcat 4.0.4 ? thanks in advance Raj -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: java.lang.OutOfMemoryError
modify the catalina.sh because tomcat run with default memory u have to increase it manually in the catalina.sh as below [ $1 = start ] ; then shift touch $CATALINA_BASE/logs/catalina.out if [ $1 = -security ] ; then echo Using Security Manager shift $_RUNJAVA $JAVA_OPTS $CATALINA_OPTS \ -Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS -classpath $CLASSPATH \ -Djava.security.manager \ -Djava.security.policy==$CATALINA_BASE/conf/catalina.policy \ -Dcatalina.base=$CATALINA_BASE \ -Dcatalina.home=$CATALINA_HOME \ -Djava.io.tmpdir=$CATALINA_TMPDIR \ org.apache.catalina.startup.Bootstrap $@ start \ $CATALINA_BASE/logs/catalina.out 21 else $_RUNJAVA $JAVA_OPTS $CATALINA_OPTS \ -Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS -classpath $CLASSPATH \ -Dcatalina.base=$CATALINA_BASE \ -Dcatalina.home=$CATALINA_HOME \ -Djava.io.tmpdir=$CATALINA_TMPDIR \ org.apache.catalina.startup.Bootstrap $@ start \ $CATALINA_BASE/logs/catalina.out 21 fi change TO ... [ $1 = start ] ; then shift touch $CATALINA_BASE/logs/catalina.out if [ $1 = -security ] ; then echo Using Security Manager shift $_RUNJAVA $JAVA_OPTS $CATALINA_OPTS \ -Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS -classpath $CLASSPATH \ -Djava.security.manager \ -Djava.security.policy==$CATALINA_BASE/conf/catalina.policy \ -Dcatalina.base=$CATALINA_BASE \ -Dcatalina.home=$CATALINA_HOME \ -Djava.io.tmpdir=$CATALINA_TMPDIR \ org.apache.catalina.startup.Bootstrap $@ start \ $CATALINA_BASE/logs/catalina.out 21 else $_RUNJAVA -Xmx400m... $JAVA_OPTS $CATALINA_OPTS \ -Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS -classpath $CLASSPATH \ -Dcatalina.base=$CATALINA_BASE \ -Dcatalina.home=$CATALINA_HOME \ -Djava.io.tmpdir=$CATALINA_TMPDIR \ org.apache.catalina.startup.Bootstrap $@ start \ $CATALINA_BASE/logs/catalina.out 21 fi then it will not give u Error in then run the tomcat sh catalina.sh start regards Sonam Singh --- Raj Saini [EMAIL PROTECTED] wrote: Hi, I was using the tomcat 4.0.3 with JDK 1.4. Tomcat was integrated with apache using warp connector. I used to have the same problem you have now. I recently upgraded to Tomcat 4.1.12 and warp to mod_jk with load balancing with two instances of tomcat on the same server. Memory usages which used to shoot upto 200 MB in a single day is now restricted to 3-4 MBs a day. I cant not say surely my problem was due to warp or tomcat 4.0.3. Your can try upgrading to tomcat 4.1.12. Raj earlier is now Hi all, I have apache(2.0.39) and tomcat(4.0.4) configured on different solaris 8 machines using mod_jk. I have two instances of tomcat running, each serving different jsp/servlet/bean application. I see lot of OutOfMemory errors in tomcat logs after few hours, some times tomcat totally crashes, if I do not restart. I am pretty much monitor java process using prstat and if the memory reaches maximum value, I am restarting tomcat. here is my jdk version... java version 1.3.1 Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24) Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode) I have increased the heap size from 128M to 256M, it didn't help much other than running for few more hours. and currently I have set up 256M min and 256M max values for heap size. I am wondering, is there any known issues with running tomcat4.0.4 under jdk1.3.1(build 1.3.1-b24, mixed mode). ? Is there any preferred jdk version(less memory leaks) for tomcat 4.0.4 ? thanks in advance Raj -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: java.lang.OutOfMemoryError
Hi Sonam Singh, currently, I am passing the max and min values for the memory thru CATALINA_OPTS in catalina.sh (CATALINA_OPTS=-Xms256M -Xmx256M; export CATALINA_OPTS) I think this will increase the default memory right ? thanks Raj [EMAIL PROTECTED] 10/09/02 08:39AM modify the catalina.sh because tomcat run with default memory u have to increase it manually in the catalina.sh as below [ $1 = start ] ; then shift touch $CATALINA_BASE/logs/catalina.out if [ $1 = -security ] ; then echo Using Security Manager shift $_RUNJAVA $JAVA_OPTS $CATALINA_OPTS \ -Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS -classpath $CLASSPATH \ -Djava.security.manager \ -Djava.security.policy==$CATALINA_BASE/conf/catalina.policy \ -Dcatalina.base=$CATALINA_BASE \ -Dcatalina.home=$CATALINA_HOME \ -Djava.io.tmpdir=$CATALINA_TMPDIR \ org.apache.catalina.startup.Bootstrap $@ start \ $CATALINA_BASE/logs/catalina.out 21 else $_RUNJAVA $JAVA_OPTS $CATALINA_OPTS \ -Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS -classpath $CLASSPATH \ -Dcatalina.base=$CATALINA_BASE \ -Dcatalina.home=$CATALINA_HOME \ -Djava.io.tmpdir=$CATALINA_TMPDIR \ org.apache.catalina.startup.Bootstrap $@ start \ $CATALINA_BASE/logs/catalina.out 21 fi change TO ... [ $1 = start ] ; then shift touch $CATALINA_BASE/logs/catalina.out if [ $1 = -security ] ; then echo Using Security Manager shift $_RUNJAVA $JAVA_OPTS $CATALINA_OPTS \ -Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS -classpath $CLASSPATH \ -Djava.security.manager \ -Djava.security.policy==$CATALINA_BASE/conf/catalina.policy \ -Dcatalina.base=$CATALINA_BASE \ -Dcatalina.home=$CATALINA_HOME \ -Djava.io.tmpdir=$CATALINA_TMPDIR \ org.apache.catalina.startup.Bootstrap $@ start \ $CATALINA_BASE/logs/catalina.out 21 else $_RUNJAVA -Xmx400m... $JAVA_OPTS $CATALINA_OPTS \ -Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS -classpath $CLASSPATH \ -Dcatalina.base=$CATALINA_BASE \ -Dcatalina.home=$CATALINA_HOME \ -Djava.io.tmpdir=$CATALINA_TMPDIR \ org.apache.catalina.startup.Bootstrap $@ start \ $CATALINA_BASE/logs/catalina.out 21 fi then it will not give u Error in then run the tomcat sh catalina.sh start regards Sonam Singh --- Raj Saini [EMAIL PROTECTED] wrote: Hi, I was using the tomcat 4.0.3 with JDK 1.4. Tomcat was integrated with apache using warp connector. I used to have the same problem you have now. I recently upgraded to Tomcat 4.1.12 and warp to mod_jk with load balancing with two instances of tomcat on the same server. Memory usages which used to shoot upto 200 MB in a single day is now restricted to 3-4 MBs a day. I cant not say surely my problem was due to warp or tomcat 4.0.3. Your can try upgrading to tomcat 4.1.12. Raj earlier is now Hi all, I have apache(2.0.39) and tomcat(4.0.4) configured on different solaris 8 machines using mod_jk. I have two instances of tomcat running, each serving different jsp/servlet/bean application. I see lot of OutOfMemory errors in tomcat logs after few hours, some times tomcat totally crashes, if I do not restart. I am pretty much monitor java process using prstat and if the memory reaches maximum value, I am restarting tomcat. here is my jdk version... java version 1.3.1 Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24) Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode) I have increased the heap size from 128M to 256M, it didn't help much other than running for few more hours. and currently I have set up 256M min and 256M max values for heap size. I am wondering, is there any known issues with running tomcat4.0.4 under jdk1.3.1(build 1.3.1-b24, mixed mode). ? Is there any preferred jdk version(less memory leaks) for tomcat 4.0.4 ? thanks in advance Raj -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: java.lang.OutOfMemoryError - JDK1.3.1
Hi, what version of mod_jk you are using with tomcat 4.1.12 ? thanks Raj [EMAIL PROTECTED] 10/09/02 04:07AM Hi, I was using the tomcat 4.0.3 with JDK 1.4. Tomcat was integrated with apache using warp connector. I used to have the same problem you have now. I recently upgraded to Tomcat 4.1.12 and warp to mod_jk with load balancing with two instances of tomcat on the same server. Memory usages which used to shoot upto 200 MB in a single day is now restricted to 3-4 MBs a day. I cant not say surely my problem was due to warp or tomcat 4.0.3. Your can try upgrading to tomcat 4.1.12. Raj earlier is now Hi all, I have apache(2.0.39) and tomcat(4.0.4) configured on different solaris 8 machines using mod_jk. I have two instances of tomcat running, each serving different jsp/servlet/bean application. I see lot of OutOfMemory errors in tomcat logs after few hours, some times tomcat totally crashes, if I do not restart. I am pretty much monitor java process using prstat and if the memory reaches maximum value, I am restarting tomcat. here is my jdk version... java version 1.3.1 Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24) Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode) I have increased the heap size from 128M to 256M, it didn't help much other than running for few more hours. and currently I have set up 256M min and 256M max values for heap size. I am wondering, is there any known issues with running tomcat4.0.4 under jdk1.3.1(build 1.3.1-b24, mixed mode). ? Is there any preferred jdk version(less memory leaks) for tomcat 4.0.4 ? thanks in advance Raj -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: java.lang.OutOfMemoryError - JDK1.3.1
Raj Mettai wrote: Hi, what version of mod_jk you are using with tomcat 4.1.12 ? thanks Raj I am using JK 1.2.0. (not jk2). This is the latest JK release. Raj [EMAIL PROTECTED] 10/09/02 04:07AM Hi, I was using the tomcat 4.0.3 with JDK 1.4. Tomcat was integrated with apache using warp connector. I used to have the same problem you have now. I recently upgraded to Tomcat 4.1.12 and warp to mod_jk with load balancing with two instances of tomcat on the same server. Memory usages which used to shoot upto 200 MB in a single day is now restricted to 3-4 MBs a day. I cant not say surely my problem was due to warp or tomcat 4.0.3. Your can try upgrading to tomcat 4.1.12. Raj earlier is now Hi all, I have apache(2.0.39) and tomcat(4.0.4) configured on different solaris 8 machines using mod_jk. I have two instances of tomcat running, each serving different jsp/servlet/bean application. I see lot of OutOfMemory errors in tomcat logs after few hours, some times tomcat totally crashes, if I do not restart. I am pretty much monitor java process using prstat and if the memory reaches maximum value, I am restarting tomcat. here is my jdk version... java version 1.3.1 Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24) Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode) I have increased the heap size from 128M to 256M, it didn't help much other than running for few more hours. and currently I have set up 256M min and 256M max values for heap size. I am wondering, is there any known issues with running tomcat4.0.4 under jdk1.3.1(build 1.3.1-b24, mixed mode). ? Is there any preferred jdk version(less memory leaks) for tomcat 4.0.4 ? thanks in advance Raj -- 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: java.lang.OutOfMemoryError
Hi, Why don't you guys use a Profiler tool like the 'OptimizeIT' which can give you a very clear picture on where the actuall memory toll is!!. We had similar problems when our application was run on 'Apache 1.3.22+Tomcat3.2.2', but finally after a thorough analysis we found that the problem really was on the 'Connection objects'. Please make sure that the connection objects used in the application is properly returned to the pool after use and is killed when the load on the server goes less. This will give an optimum performance and reduce the memory being eaten up by the server. Hope this will fix your problems.. Regards H.Rajesh (Webteam - SSPL) [EMAIL PROTECTED] India. [EMAIL PROTECTED] wrote: Hello Did you found an answer to this? its happening in my server too. I have the same configuration than you but with Tomcat 4.0.3. -- Best regards, NG Hi, NG My website is using the following versions of software: NG Struts 1.0.2 NG Apache 1.3.22 NG Tomcat 4.0.2 NG Java Runtime Env 1.4 NG MySQL 3.23.41 NG RedHat Linux 7.2 using Linux 2.4 kernel NG Over a period of time, while running top I see memory being eaten up on my box (box has 1GB of RAM). Free memory goes down to about 5-15MB which is way too low. NG Occasionally (i.e. once a week or once every two weeks), the site goes down/can't send responses. I see the following error in my /var/tomcat4/logs/catalina.out file: NG java.lang.OutOfMemoryError: unable to create new native thread NG at java.lang.Thread.start(Native Method) NG at org.apache.catalina.connector.warp.WarpConnection.start(WarpConnection.java:159) NG at org.apache.catalina.connector.warp.WarpConnector.run(WarpConnector.java:601) NG at java.lang.Thread.run(Thread.java:536) NG java.lang.OutOfMemoryError: unable to create new native thread NG at java.lang.Thread.start(Native Method) NG at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) NG at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) NG at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275) NG at java.io.OutputStream.write(OutputStream.java:58) NG at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA6275) NG at sun.net.www.protocol.https.HttpsClient.afterConnect(DashoA6275) NG at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(DashoA6275) NG at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:556) NG at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:1144) NG at sun.net.www.protocol.http.HttpURLConnection.getResponseCode(HttpURLConnection.java:1158) NG at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl.getResponseCode(DashoA6275) NG at com.mandalaybay.actions.ResNetStatus.run(ResNetStatus.java:52) NG Once I restart Tomcat, memory is freed up and the site goes along until this error occurs again a week or two later. NG Looks like a memory leak, but not sure the real cause. I saw a similar problem which occurred much more frequently with Tomcat 4.0.2 with JVM 1.3 so I've upgraded to JVM 1.4 and now receive an NG out of memory problem only sporadically. NG Has anyone else encountered this problem? NG If not, does anyone have some really good tools/commands which can help determine the cause of the problem? NG My JVM settings have default heap size 128MB and max size 256MB by using the following command: NG JAVACMD=$JAVA_HOME/bin/java -Xms128m -Xmx256m NG -- NG To unsubscribe: mailto:[EMAIL PROTECTED] NG For additional commands: mailto:[EMAIL PROTECTED] NG Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: java.lang.OutOfMemoryError
Hello Did you found an answer to this? its happening in my server too. I have the same configuration than you but with Tomcat 4.0.3. -- Best regards, NG Hi, NG My website is using the following versions of software: NG Struts 1.0.2 NG Apache 1.3.22 NG Tomcat 4.0.2 NG Java Runtime Env 1.4 NG MySQL 3.23.41 NG RedHat Linux 7.2 using Linux 2.4 kernel NG Over a period of time, while running top I see memory being eaten up on my box (box has 1GB of RAM). Free memory goes down to about 5-15MB which is way too low. NG Occasionally (i.e. once a week or once every two weeks), the site goes down/can't send responses. I see the following error in my /var/tomcat4/logs/catalina.out file: NG java.lang.OutOfMemoryError: unable to create new native thread NG at java.lang.Thread.start(Native Method) NG at org.apache.catalina.connector.warp.WarpConnection.start(WarpConnection.java:159) NG at org.apache.catalina.connector.warp.WarpConnector.run(WarpConnector.java:601) NG at java.lang.Thread.run(Thread.java:536) NG java.lang.OutOfMemoryError: unable to create new native thread NG at java.lang.Thread.start(Native Method) NG at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) NG at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) NG at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275) NG at java.io.OutputStream.write(OutputStream.java:58) NG at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA6275) NG at sun.net.www.protocol.https.HttpsClient.afterConnect(DashoA6275) NG at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(DashoA6275) NG at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:556) NG at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:1144) NG at sun.net.www.protocol.http.HttpURLConnection.getResponseCode(HttpURLConnection.java:1158) NG at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl.getResponseCode(DashoA6275) NG at com.mandalaybay.actions.ResNetStatus.run(ResNetStatus.java:52) NG Once I restart Tomcat, memory is freed up and the site goes along until this error occurs again a week or two later. NG Looks like a memory leak, but not sure the real cause. I saw a similar problem which occurred much more frequently with Tomcat 4.0.2 with JVM 1.3 so I've upgraded to JVM 1.4 and now receive an NG out of memory problem only sporadically. NG Has anyone else encountered this problem? NG If not, does anyone have some really good tools/commands which can help determine the cause of the problem? NG My JVM settings have default heap size 128MB and max size 256MB by using the following command: NG JAVACMD=$JAVA_HOME/bin/java -Xms128m -Xmx256m NG -- NG To unsubscribe: mailto:[EMAIL PROTECTED] NG For additional commands: mailto:[EMAIL PROTECTED] NG Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: java.lang.OutOfMemoryError
-Ursprüngliche Nachricht- Von: Neil Gidley [mailto:[EMAIL PROTECTED]] Gesendet: Samstag, 6. April 2002 02:58 An: [EMAIL PROTECTED] Betreff: java.lang.OutOfMemoryError Hi, My website is using the following versions of software: Struts 1.0.2 Apache 1.3.22 Tomcat 4.0.2 Java Runtime Env 1.4 MySQL 3.23.41 RedHat Linux 7.2 using Linux 2.4 kernel Over a period of time, while running top I see memory being eaten up on my box (box has 1GB of RAM). Free memory goes down to about 5-15MB which is way too low. thats very interesting. ive got nearly the same system-enviroment (apache 1.3.23) and got the same problem since im using tomcat 4. when ive opened a top then i can how the memory usage will grows on every refesh ... seem like a bug. Has anyone else encountered this problem? If not, does anyone have some really good tools/commands which can help determine the cause of the problem? ive switched back to tomcat 3 before one week sven --- sven (e)wert !!! ___ ()_() ` _ _ ' _*_ (o o) - (OXO) - (o o) ooO--`o'--Ooo-ooO--(_)--Ooo--8---(_)--Ooo- (¯`·.¸(¯`·.¸ I`ll greetz you ¸.·´¯)¸.·´¯) In a time of insanity, let a madman lead the way -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: java.lang.OutOfMemoryError
i think your problems can be solved be setting a higher maximum heap size. for example start tomcat by using java -Xmx256 ... to set heap size to 256 mb. michael -Original Message- From: Shailesh R Sah [mailto:[EMAIL PROTECTED]] Sent: Friday, May 25, 2001 1:01 PM To: [EMAIL PROTECTED] Subject: java.lang.OutOfMemoryError hi, i am giving details as follows of my site and problem Server configuration : HardWare: Pentium 800 MHz. 512 MB RAM 18 GB Hard Disk Global line server. Software Loaded: Red Had linux 6.2 Jdk1.2.2 for linux Jakarta-tomcat-3.2.1 A Seperate Server is there for Oracle. Total No. of JSPs on the server: 500Jsps Services Running: Apache, jakarta-tomcat Swap space: 2GB From the Last 2-3 weeks 1) The Tomcat is getting killed automatically. This is happening more frequently sometimes 4 times a day .The tomcat has to be started manually. The tomcat server is showing an error of out of memory(java.lang.OutOfMemoryError).Reports are attached in this document. 2) The top service is not running. . 3)Swap memory is 2GB What might be the possible possible reason??? Is it that the tomcat cannot handle 500-600 Jsps?? Kindly help out as the website is business critical. (See below for error details) As the problem is occuring daily.I am drawing a lot of flak at office as being a staunch supporter of open source and collabarative s/w movement i went for linux/tomcat combination. And now my decision is being questioned.Can u tell me of any source on the basis of which i can present the case of linux/tomcat combination or sites using lots of jsps(500-600) I am giving below the error coming in the tomcat console. java.lang.OutOfMemoryError: at java.io.InputStreamReader.init(InputStreamReader.java:86) at java.io.InputStreamReader.init(InputStreamReader.java:55) at java.io.FileReader.init(FileReader.java:35) at _0002findex_0002ejspindex_jsp_3._jspService(_0002findex_0002ejspindex _jsp_3.java:634) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspSer vlet.java:174) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:2 61) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.ja va:503) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559 ) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processCon nection(Ajp12ConnectionHandler.java:156) at org.apache.tomcat.service.TcpWorkerThread.run(PoolTcpEndpoint.java:36 6) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java :411) at java.lang.Thread.run(Thread.java:475) java.lang.OutOfMemoryError: at org.apache.tomcat.util.MimeHeaders.init(MimeHeaders.java:133) at org.apache.tomcat.util.MimeHeaders.init(MimeHeaders.java:141) at org.apache.tomcat.core.ResponseImpl.init(ResponseImpl.java:96) at org.apache.tomcat.service.http.HttpResponseAdapter.init(HttpRespons eAdapter.java:91) at org.apache.tomcat.service.connector.AJP12ResponseAdapter.init(Ajp12 ConnectionHandler.java:433) Thankx shailesh
RE: java.lang.OutOfMemoryError
If you are wondering where that magic number came from. Try 'java' at the command line. Then try 'java -X' for the help on non-standard options. You will probably find another flag or two useful. Sri At 02:22 PM 05/25/2001 +0200, you wrote: i think your problems can be solved be setting a higher maximum heap size. for example start tomcat by using java -Xmx256 ... to set heap size to 256 mb. michael -Original Message- From: Shailesh R Sah [mailto:[EMAIL PROTECTED]] Sent: Friday, May 25, 2001 1:01 PM To: [EMAIL PROTECTED] Subject: java.lang.OutOfMemoryError hi, i am giving details as follows of my site and problem Server configuration : HardWare: Pentium 800 MHz. 512 MB RAM 18 GB Hard Disk Global line server. Software Loaded: Red Had linux 6.2 Jdk1.2.2 for linux Jakarta-tomcat-3.2.1 A Seperate Server is there for Oracle. Total No. of JSPs on the server: 500Jsps Services Running: Apache, jakarta-tomcat Swap space: 2GB From the Last 2-3 weeks 1) The Tomcat is getting killed automatically. This is happening more frequently sometimes 4 times a day .The tomcat has to be started manually. The tomcat server is showing an error of out of memory(java.lang.OutOfMemoryError).Reports are attached in this document. 2) The top service is not running. . 3)Swap memory is 2GB What might be the possible possible reason??? Is it that the tomcat cannot handle 500-600 Jsps?? Kindly help out as the website is business critical. (See below for error details) As the problem is occuring daily.I am drawing a lot of flak at office as being a staunch supporter of open source and collabarative s/w movement i went for linux/tomcat combination. And now my decision is being questioned.Can u tell me of any source on the basis of which i can present the case of linux/tomcat combination or sites using lots of jsps(500-600) I am giving below the error coming in the tomcat console. java.lang.OutOfMemoryError: at java.io.InputStreamReader.init(InputStreamReader.java:86) at java.io.InputStreamReader.init(InputStreamReader.java:55) at java.io.FileReader.init(FileReader.java:35) at _0002findex_0002ejspindex_jsp_3._jspService(_0002findex_0002ejspindex _jsp_3.java:634) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspSer vlet.java:174) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:2 61) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.ja va:503) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559 ) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processCon nection(Ajp12ConnectionHandler.java:156) at org.apache.tomcat.service.TcpWorkerThread.run(PoolTcpEndpoint.java:36 6) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java :411) at java.lang.Thread.run(Thread.java:475) java.lang.OutOfMemoryError: at org.apache.tomcat.util.MimeHeaders.init(MimeHeaders.java:133) at org.apache.tomcat.util.MimeHeaders.init(MimeHeaders.java:141) at org.apache.tomcat.core.ResponseImpl.init(ResponseImpl.java:96) at org.apache.tomcat.service.http.HttpResponseAdapter.init(HttpRespons eAdapter.java:91) at org.apache.tomcat.service.connector.AJP12ResponseAdapter.init(Ajp12 ConnectionHandler.java:433) Thankx shailesh Srinadh Karumuri Senior Programmer/Analyst Business Apps. BBN Technologies (Verizon) Ph:(617)873-2841
Re: java.lang.OutOfMemoryError
This is javaVM heap problem. You should increase heapsize. (e.g. JAVACMD=java -mx200M) Regards, Egidijus - Original Message - From: Srinadh Karumuri [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 25, 2001 2:35 PM Subject: RE: java.lang.OutOfMemoryError If you are wondering where that magic number came from. Try 'java' at the command line. Then try 'java -X' for the help on non-standard options. You will probably find another flag or two useful. Sri At 02:22 PM 05/25/2001 +0200, you wrote: i think your problems can be solved be setting a higher maximum heap size. for example start tomcat by using java -Xmx256 ... to set heap size to 256 mb. michael -Original Message- From: Shailesh R Sah [mailto:[EMAIL PROTECTED]] Sent: Friday, May 25, 2001 1:01 PM To: [EMAIL PROTECTED] Subject: java.lang.OutOfMemoryError hi, i am giving details as follows of my site and problem Server configuration : HardWare: Pentium 800 MHz. 512 MB RAM 18 GB Hard Disk Global line server. Software Loaded: Red Had linux 6.2 Jdk1.2.2 for linux Jakarta-tomcat-3.2.1 A Seperate Server is there for Oracle. Total No. of JSPs on the server: 500Jsps Services Running: Apache, jakarta-tomcat Swap space: 2GB From the Last 2-3 weeks 1) The Tomcat is getting killed automatically. This is happening more frequently sometimes 4 times a day .The tomcat has to be started manually. The tomcat server is showing an error of out of memory(java.lang.OutOfMemoryError).Reports are attached in this document. 2) The top service is not running. . 3)Swap memory is 2GB What might be the possible possible reason??? Is it that the tomcat cannot handle 500-600 Jsps?? Kindly help out as the website is business critical. (See below for error details) As the problem is occuring daily.I am drawing a lot of flak at office as being a staunch supporter of open source and collabarative s/w movement i went for linux/tomcat combination. And now my decision is being questioned.Can u tell me of any source on the basis of which i can present the case of linux/tomcat combination or sites using lots of jsps(500-600) I am giving below the error coming in the tomcat console. java.lang.OutOfMemoryError: at java.io.InputStreamReader.init(InputStreamReader.java:86) at java.io.InputStreamReader.init(InputStreamReader.java:55) at java.io.FileReader.init(FileReader.java:35) at _0002findex_0002ejspindex_jsp_3._jspService(_0002findex_0002ejspindex _jsp_3.java:634) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspSer vlet.java:174) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:2 61) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.ja va:503) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559 ) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processCon nection(Ajp12ConnectionHandler.java:156) at org.apache.tomcat.service.TcpWorkerThread.run(PoolTcpEndpoint.java:36 6) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java :411) at java.lang.Thread.run(Thread.java:475) java.lang.OutOfMemoryError: at org.apache.tomcat.util.MimeHeaders.init(MimeHeaders.java:133) at org.apache.tomcat.util.MimeHeaders.init(MimeHeaders.java:141) at org.apache.tomcat.core.ResponseImpl.init(ResponseImpl.java:96) at org.apache.tomcat.service.http.HttpResponseAdapter.init(HttpRespons eAdapter.java:91) at org.apache.tomcat.service.connector.AJP12ResponseAdapter.init(Ajp12 ConnectionHandler.java:433) Thankx shailesh Srinadh Karumuri Senior Programmer/Analyst Business Apps. BBN Technologies (Verizon) Ph:(617)873-2841
RE: java.lang.OutOfMemoryError... O happy day.
Tomcat itself doesn't leak any memory as far as our systems indicate. One thing to look at might be session usage - has the orginial developer made the session never timeout (which means that the memory used in it will never be recollected) or jave exceptionally long timeouts? Also, since you can't connect to the database, I would look at that portion of the code, possibly keeping connections open until you use all the database server/license supports? As you probably know, you need to look at objects that grow without being garbage collected (static variables are often times problems, especially Collections (maps, lists, etc)) as well as keeping open IO streams with very large buffers and not flushing them at points of inactivity. Randy -Original Message- From: Daniel Wintschel [mailto:[EMAIL PROTECTED]] Sent: Monday, April 16, 2001 2:14 PM To: [EMAIL PROTECTED] Subject: java.lang.OutOfMemoryError... O happy day. Hey there. I just took over a project that is running on Solaris 2.6 and an Apache 1.3.12/Tomcat 3.2.1 install. After about three days of the server being up, it slows to a crawl and dies a wonderful death spewing forth Internal Server Errors and a wonderful inability to connect to any databases. (Namely repeated java.lang.OutOfMemoryError's) I am wondering if there are any known issues of memory leaks in this distribution of Tomcat, or if my most probable solution to the problem would be to read through all of the previous developers code to find out where it sucks and needs to get fixed. The Frustrated Code Maintainer. -daniel ___ ...what is of value is never the habits and skills acquired from practice, but the understanding that results from consciously undertaken struggles... ___ Daniel Wintschel Java/Web Developer Tantalus Communications Inc. 500-1122 Mainland Street Vancouver BC V6B 5L1 eMaiL: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] diReCt: 604.782.2713 MaiN:604.609.0700 faX: 604.609.0705 http://www.tantalus.com http://www.tantalus.com "When eBusiness Experience Counts."
RE: java.lang.OutOfMemoryError... O happy day.
I've just overcome this situation too, and would say my code now has 75% more explicit flush(), close(), and x=null statements, plus make sure you're using hotspot, as gc on hotspot seems to be 1,000,000,000 times more effective I *know* what you are going through, don't give up youwill win in the end. in my case I ran out of memory after about 2-300,000 hits. now it sits happily on a test set-up at 19-24% memory use, 84% cpu load serving 12 clients 2 hits per second each, day in day out no complaints. d. ;-) -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Monday, April 16, 2001 6:50 PM To: [EMAIL PROTECTED] Subject: RE: java.lang.OutOfMemoryError... O happy day. Tomcat itself doesn't leak any memory as far as our systems indicate. One thing to look at might be session usage - has the orginial developer made the session never timeout (which means that the memory used in it will never be recollected) or jave exceptionally long timeouts? Also, since you can't connect to the database, I would look at that portion of the code, possibly keeping connections open until you use all the database server/license supports? As you probably know, you need to look at objects that grow without being garbage collected (static variables are often times problems, especially Collections (maps, lists, etc)) as well as keeping open IO streams with very large buffers and not flushing them at points of inactivity. Randy -Original Message- From: Daniel Wintschel [mailto:[EMAIL PROTECTED]] Sent: Monday, April 16, 2001 2:14 PM To: [EMAIL PROTECTED] Subject: java.lang.OutOfMemoryError... O happy day. Hey there. I just took over a project that is running on Solaris 2.6 and an Apache 1.3.12/Tomcat 3.2.1 install. After about three days of the server being up, it slows to a crawl and dies a wonderful death spewing forth Internal Server Errors and a wonderful inability to connect to any databases. (Namely repeated java.lang.OutOfMemoryError's) I am wondering if there are any known issues of memory leaks in this distribution of Tomcat, or if my most probable solution to the problem would be to read through all of the previous developers code to find out where it sucks and needs to get fixed. The Frustrated Code Maintainer. -daniel ___ ...what is of value is never the habits and skills acquired from practice, but the understanding that results from consciously undertaken struggles... ___ Daniel Wintschel Java/Web Developer Tantalus Communications Inc. 500-1122 Mainland Street Vancouver BC V6B 5L1 eMaiL: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] diReCt: 604.782.2713 MaiN:604.609.0700 faX: 604.609.0705 http://www.tantalus.com http://www.tantalus.com "When eBusiness Experience Counts."