Re: out of memory error while load testing
start tomcat with -Xrunprof and look at the profile to figureout if there are any objects consuming more memory(leaks). Thread.activeCount() gives you total number of active threads in the current JVM. Refer to javax.management to know more about the Mbeans to monitor the tomcat. You need to write the proxy valve by implementing the org.apache.catalina.Valve, interface. This proxy will gets the request and invokes the actual servlet. You can track the time taken to process each request here. Bhaskar Peddireddy Srikanth wrote: Hi, Its giving out of memory over a period of time (i.e after test ran for some time ) not immediately after starting the test Follwing settings are given in my server.xml For HTTP Connector port=80 maxThreads=500 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=150 connectionTimeout=2 disableUploadTimeout=true / For HTTPS Connector port=443 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 scheme=https secure=true clientAuth=false sslProtocol=TLS / By active threads do u mean the thread count shown in windows task manager or is there any way to find out active threads in Tomcat? what is this Performance-Valve? can u give some more details on it ? Thank you regards Srikanth.P On 7/14/05, Bhaskar [EMAIL PROTECTED] wrote: You need to check on whether it is giving Outofmemory error is immediately after starting loadtesting with 1500 users or over period of time. If it is over period of time then you need to check whether there are any memory leaks. Or your design for ex., it might happen if you query db and that ends up resulting in huge number of rows. BTW., what is the max number of threads you have configured? and what is the active number of threads? Pbly u can use Performance-Valve to get such details. Bhaskar srikanth peddireddy wrote: Hi All, Recently we started load testing our application using Jmeter. Following error is coming in tomcat while test is run at higher loads like 1500 virtual users etc == SEVERE: Caught exception (java.lang.OutOfMemoryError) executing org.apache.tomca [EMAIL PROTECTED], terminating thread Jun 30, 2005 3:13:53 PM org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run == I already configured the Tomcat using -Xmx option to use upto 2GB of RAM (Tomcat is running on a 3GB RAM machine) Any inputs or pointers to the related resources on this problem?? regards Srikanth Disclaimer This e-mail message may contain confidential, proprietary or legally privileged information. It should not be used by anyone who is not the original intended recipient. If you have erroneously received this message, please delete it immediately and notify the sender. The views, opinions, conclusions and other information expressed in this electronic mail are those of the individual sender and not endorsed by SDG Software Technologies Pvt. Ltd. unless otherwise indicated by an authorised representative independent of this message. Before opening any attachment please check them for viruses and defects. SDG Software Technologies Pvt. Ltd. shall not accept responsibility for any loss or damage arising from the use of this email or attachment(s). - - Free antispam, antivirus and 1GB to save all your messages Only in Yahoo! Mail: http://in.mail.yahoo.com - 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: out of memory error while load testing
You can change the JVM option, -Xmx to increase the heap size in catalina.sh and see if it can accomidate more requests Peddireddy Srikanth wrote: I forgot to give details about my Application and test. These details might give you people an idea about the problem area. In this app. users has to enter login ID and pwd in home page which will be sent to a resource which validates these details, say LoginValidation this resource will then forward control to the Main Page of the Application, say MainPage.jsp . From main page user can open/ request different pages(modules of application). But my test only involves a request to LoginValidation followed by request to main page. In this app. inorder to get data about certain activities happening on the server side into the client browser, we keep on refreshing a hidden frame in mainpage (simply using html meta refresh ) after every one minute, lets call this page as PollServerForData.jsp. To simulate this i added a request to PollServerForData.jsp also in my test plan after request to the main page (that means every virtual user will be requesting the PollServerForData.jsp page after every one minute) This test worked for 1200 virtual users and failed for when tried with more than 1200 users . Will there be any problem for tomcat for maintaining more than 1200 sessions in memory?? regards Srikanth.P On 7/14/05, Bhaskar [EMAIL PROTECTED] wrote: You need to check on whether it is giving Outofmemory error is immediately after starting loadtesting with 1500 users or over period of time. If it is over period of time then you need to check whether there are any memory leaks. Or your design for ex., it might happen if you query db and that ends up resulting in huge number of rows. BTW., what is the max number of threads you have configured? and what is the active number of threads? Pbly u can use Performance-Valve to get such details. Bhaskar srikanth peddireddy wrote: Hi All, Recently we started load testing our application using Jmeter. Following error is coming in tomcat while test is run at higher loads like 1500 virtual users etc == SEVERE: Caught exception (java.lang.OutOfMemoryError) executing org.apache.tomca [EMAIL PROTECTED], terminating thread Jun 30, 2005 3:13:53 PM org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run == I already configured the Tomcat using -Xmx option to use upto 2GB of RAM (Tomcat is running on a 3GB RAM machine) Any inputs or pointers to the related resources on this problem?? regards Srikanth Disclaimer This e-mail message may contain confidential, proprietary or legally privileged information. It should not be used by anyone who is not the original intended recipient. If you have erroneously received this message, please delete it immediately and notify the sender. The views, opinions, conclusions and other information expressed in this electronic mail are those of the individual sender and not endorsed by SDG Software Technologies Pvt. Ltd. unless otherwise indicated by an authorised representative independent of this message. Before opening any attachment please check them for viruses and defects. SDG Software Technologies Pvt. Ltd. shall not accept responsibility for any loss or damage arising from the use of this email or attachment(s). - - Free antispam, antivirus and 1GB to save all your messages Only in Yahoo! Mail: http://in.mail.yahoo.com - 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: out of memory error while load testing
You need to check on whether it is giving Outofmemory error is immediately after starting loadtesting with 1500 users or over period of time. If it is over period of time then you need to check whether there are any memory leaks. Or your design for ex., it might happen if you query db and that ends up resulting in huge number of rows. BTW., what is the max number of threads you have configured? and what is the active number of threads? Pbly u can use Performance-Valve to get such details. Bhaskar srikanth peddireddy wrote: Hi All, Recently we started load testing our application using Jmeter. Following error is coming in tomcat while test is run at higher loads like 1500 virtual users etc == SEVERE: Caught exception (java.lang.OutOfMemoryError) executing org.apache.tomca [EMAIL PROTECTED], terminating thread Jun 30, 2005 3:13:53 PM org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run == I already configured the Tomcat using -Xmx option to use upto 2GB of RAM (Tomcat is running on a 3GB RAM machine) Any inputs or pointers to the related resources on this problem?? regards Srikanth Disclaimer This e-mail message may contain confidential, proprietary or legally privileged information. It should not be used by anyone who is not the original intended recipient. If you have erroneously received this message, please delete it immediately and notify the sender. The views, opinions, conclusions and other information expressed in this electronic mail are those of the individual sender and not endorsed by SDG Software Technologies Pvt. Ltd. unless otherwise indicated by an authorised representative independent of this message. Before opening any attachment please check them for viruses and defects. SDG Software Technologies Pvt. Ltd. shall not accept responsibility for any loss or damage arising from the use of this email or attachment(s). - - Free antispam, antivirus and 1GB to save all your messages Only in Yahoo! Mail: http://in.mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: out of memory error while load testing
Hi, Its giving out of memory over a period of time (i.e after test ran for some time ) not immediately after starting the test Follwing settings are given in my server.xml For HTTP Connector port=80 maxThreads=500 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=150 connectionTimeout=2 disableUploadTimeout=true / For HTTPS Connector port=443 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 scheme=https secure=true clientAuth=false sslProtocol=TLS / By active threads do u mean the thread count shown in windows task manager or is there any way to find out active threads in Tomcat? what is this Performance-Valve? can u give some more details on it ? Thank you regards Srikanth.P On 7/14/05, Bhaskar [EMAIL PROTECTED] wrote: You need to check on whether it is giving Outofmemory error is immediately after starting loadtesting with 1500 users or over period of time. If it is over period of time then you need to check whether there are any memory leaks. Or your design for ex., it might happen if you query db and that ends up resulting in huge number of rows. BTW., what is the max number of threads you have configured? and what is the active number of threads? Pbly u can use Performance-Valve to get such details. Bhaskar srikanth peddireddy wrote: Hi All, Recently we started load testing our application using Jmeter. Following error is coming in tomcat while test is run at higher loads like 1500 virtual users etc == SEVERE: Caught exception (java.lang.OutOfMemoryError) executing org.apache.tomca [EMAIL PROTECTED], terminating thread Jun 30, 2005 3:13:53 PM org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run == I already configured the Tomcat using -Xmx option to use upto 2GB of RAM (Tomcat is running on a 3GB RAM machine) Any inputs or pointers to the related resources on this problem?? regards Srikanth Disclaimer This e-mail message may contain confidential, proprietary or legally privileged information. It should not be used by anyone who is not the original intended recipient. If you have erroneously received this message, please delete it immediately and notify the sender. The views, opinions, conclusions and other information expressed in this electronic mail are those of the individual sender and not endorsed by SDG Software Technologies Pvt. Ltd. unless otherwise indicated by an authorised representative independent of this message. Before opening any attachment please check them for viruses and defects. SDG Software Technologies Pvt. Ltd. shall not accept responsibility for any loss or damage arising from the use of this email or attachment(s). - - Free antispam, antivirus and 1GB to save all your messages Only in Yahoo! Mail: http://in.mail.yahoo.com - 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: out of memory error while load testing
I forgot to give details about my Application and test. These details might give you people an idea about the problem area. In this app. users has to enter login ID and pwd in home page which will be sent to a resource which validates these details, say LoginValidation this resource will then forward control to the Main Page of the Application, say MainPage.jsp . From main page user can open/ request different pages(modules of application). But my test only involves a request to LoginValidation followed by request to main page. In this app. inorder to get data about certain activities happening on the server side into the client browser, we keep on refreshing a hidden frame in mainpage (simply using html meta refresh ) after every one minute, lets call this page as PollServerForData.jsp. To simulate this i added a request to PollServerForData.jsp also in my test plan after request to the main page (that means every virtual user will be requesting the PollServerForData.jsp page after every one minute) This test worked for 1200 virtual users and failed for when tried with more than 1200 users . Will there be any problem for tomcat for maintaining more than 1200 sessions in memory?? regards Srikanth.P On 7/14/05, Bhaskar [EMAIL PROTECTED] wrote: You need to check on whether it is giving Outofmemory error is immediately after starting loadtesting with 1500 users or over period of time. If it is over period of time then you need to check whether there are any memory leaks. Or your design for ex., it might happen if you query db and that ends up resulting in huge number of rows. BTW., what is the max number of threads you have configured? and what is the active number of threads? Pbly u can use Performance-Valve to get such details. Bhaskar srikanth peddireddy wrote: Hi All, Recently we started load testing our application using Jmeter. Following error is coming in tomcat while test is run at higher loads like 1500 virtual users etc == SEVERE: Caught exception (java.lang.OutOfMemoryError) executing org.apache.tomca [EMAIL PROTECTED], terminating thread Jun 30, 2005 3:13:53 PM org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run == I already configured the Tomcat using -Xmx option to use upto 2GB of RAM (Tomcat is running on a 3GB RAM machine) Any inputs or pointers to the related resources on this problem?? regards Srikanth Disclaimer This e-mail message may contain confidential, proprietary or legally privileged information. It should not be used by anyone who is not the original intended recipient. If you have erroneously received this message, please delete it immediately and notify the sender. The views, opinions, conclusions and other information expressed in this electronic mail are those of the individual sender and not endorsed by SDG Software Technologies Pvt. Ltd. unless otherwise indicated by an authorised representative independent of this message. Before opening any attachment please check them for viruses and defects. SDG Software Technologies Pvt. Ltd. shall not accept responsibility for any loss or damage arising from the use of this email or attachment(s). - - Free antispam, antivirus and 1GB to save all your messages Only in Yahoo! Mail: http://in.mail.yahoo.com - 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: out of memory error
I hit this issue today, for a host of reasons. You are getting this error because the ammount of memory allocated to the JVM running Tomcat has been taken up. This ould be for the following reasons: You are doing some large database reads without using a methodology to read in batches. You are storing large objects in the request or session. You may have memory leaks (A term I hate because it implies that there is a problem in the underlying system but what it actually means is you are keeping references to objects you no longer require). Original Message Follows From: Sergey Livanov [EMAIL PROTECTED] Reply-To: Sergey Livanov [EMAIL PROTECTED] To: Tomcat users tomcat-user@jakarta.apache.org Subject: out of memory error Date: Tue, 26 Apr 2005 17:10:02 +0300 Pls help me to investigate type of error. Sometimes pages are not downloaded. We have looked into Log file and found out a message out of memory. When is this error appeared and what do we have to do to avoid this type of error? 2005-04-25 08:15:10 ApplicationDispatcher[] Servlet.service() for servlet jsp threw exception java.lang.OutOfMemoryError 2005-04-25 08:15:11 StandardWrapperValve[action]: Servlet.service() for servlet action threw exception java.lang.OutOfMemoryError -- regards, Sergey mailto:[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: out of memory error
Or you simply don't have enough memory allocated to the JVM and you need to increase it. -Original Message- From: Mark Benussi [mailto:[EMAIL PROTECTED] Sent: 26 April 2005 15:41 To: [EMAIL PROTECTED]; tomcat-user@jakarta.apache.org Subject: RE: out of memory error I hit this issue today, for a host of reasons. You are getting this error because the ammount of memory allocated to the JVM running Tomcat has been taken up. This ould be for the following reasons: You are doing some large database reads without using a methodology to read in batches. You are storing large objects in the request or session. You may have memory leaks (A term I hate because it implies that there is a problem in the underlying system but what it actually means is you are keeping references to objects you no longer require). Original Message Follows From: Sergey Livanov [EMAIL PROTECTED] Reply-To: Sergey Livanov [EMAIL PROTECTED] To: Tomcat users tomcat-user@jakarta.apache.org Subject: out of memory error Date: Tue, 26 Apr 2005 17:10:02 +0300 Pls help me to investigate type of error. Sometimes pages are not downloaded. We have looked into Log file and found out a message out of memory. When is this error appeared and what do we have to do to avoid this type of error? 2005-04-25 08:15:10 ApplicationDispatcher[] Servlet.service() for servlet jsp threw exception java.lang.OutOfMemoryError 2005-04-25 08:15:11 StandardWrapperValve[action]: Servlet.service() for servlet action threw exception java.lang.OutOfMemoryError -- regards, Sergey mailto:[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: out of memory error
: ) Yes Matt good point. For future reference if anyone is seeing any disk full issues then they do not have a big enough hard disk... Original Message Follows From: Dale, Matt [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: Tomcat Users List tomcat-user@jakarta.apache.org Subject: RE: out of memory error Date: Tue, 26 Apr 2005 15:42:51 +0100 Or you simply don't have enough memory allocated to the JVM and you need to increase it. -Original Message- From: Mark Benussi [mailto:[EMAIL PROTECTED] Sent: 26 April 2005 15:41 To: [EMAIL PROTECTED]; tomcat-user@jakarta.apache.org Subject: RE: out of memory error I hit this issue today, for a host of reasons. You are getting this error because the ammount of memory allocated to the JVM running Tomcat has been taken up. This ould be for the following reasons: You are doing some large database reads without using a methodology to read in batches. You are storing large objects in the request or session. You may have memory leaks (A term I hate because it implies that there is a problem in the underlying system but what it actually means is you are keeping references to objects you no longer require). Original Message Follows From: Sergey Livanov [EMAIL PROTECTED] Reply-To: Sergey Livanov [EMAIL PROTECTED] To: Tomcat users tomcat-user@jakarta.apache.org Subject: out of memory error Date: Tue, 26 Apr 2005 17:10:02 +0300 Pls help me to investigate type of error. Sometimes pages are not downloaded. We have looked into Log file and found out a message out of memory. When is this error appeared and what do we have to do to avoid this type of error? 2005-04-25 08:15:10 ApplicationDispatcher[] Servlet.service() for servlet jsp threw exception java.lang.OutOfMemoryError 2005-04-25 08:15:11 StandardWrapperValve[action]: Servlet.service() for servlet action threw exception java.lang.OutOfMemoryError -- regards, Sergey mailto:[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: out of memory error
Speaking of disk space, I ran out of it today because my cron job to delete my log files didn't work. Ooopppsss ;) Trond Mark Benussi wrote: : ) Yes Matt good point. For future reference if anyone is seeing any disk full issues then they do not have a big enough hard disk... Original Message Follows From: Dale, Matt [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: Tomcat Users List tomcat-user@jakarta.apache.org Subject: RE: out of memory error Date: Tue, 26 Apr 2005 15:42:51 +0100 Or you simply don't have enough memory allocated to the JVM and you need to increase it. -Original Message- From: Mark Benussi [mailto:[EMAIL PROTECTED] Sent: 26 April 2005 15:41 To: [EMAIL PROTECTED]; tomcat-user@jakarta.apache.org Subject: RE: out of memory error I hit this issue today, for a host of reasons. You are getting this error because the ammount of memory allocated to the JVM running Tomcat has been taken up. This ould be for the following reasons: You are doing some large database reads without using a methodology to read in batches. You are storing large objects in the request or session. You may have memory leaks (A term I hate because it implies that there is a problem in the underlying system but what it actually means is you are keeping references to objects you no longer require). Original Message Follows From: Sergey Livanov [EMAIL PROTECTED] Reply-To: Sergey Livanov [EMAIL PROTECTED] To: Tomcat users tomcat-user@jakarta.apache.org Subject: out of memory error Date: Tue, 26 Apr 2005 17:10:02 +0300 Pls help me to investigate type of error. Sometimes pages are not downloaded. We have looked into Log file and found out a message out of memory. When is this error appeared and what do we have to do to avoid this type of error? 2005-04-25 08:15:10 ApplicationDispatcher[] Servlet.service() for servlet jsp threw exception java.lang.OutOfMemoryError 2005-04-25 08:15:11 StandardWrapperValve[action]: Servlet.service() for servlet action threw exception java.lang.OutOfMemoryError -- regards, Sergey mailto:[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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: out of memory error with more than a few sites
Geachte relatie, Het door u gebruikte e-mailadres is niet meer actief. U kunt uw e-mailbericht sturen naar [EMAIL PROTECTED] of dit bericht beantwoorden. Bedankt voor uw medewerking, Met vriendelijke groet, ATP Hypotheken Het Spoor 40 3994 AK Houten Tel. 030 750 25 33 Fax. 030 750 25 88 [EMAIL PROTECTED] -- DIT IS EEN AUTOMATISCH GEGENEREERD E-MAILBERICHT -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: out of memory error with more than a few sites
Geachte relatie, Het door u gebruikte e-mailadres is niet meer actief. U kunt uw e-mailbericht sturen naar [EMAIL PROTECTED] of dit bericht beantwoorden. Bedankt voor uw medewerking, Met vriendelijke groet, ATP Hypotheken Het Spoor 40 3994 AK Houten Tel. 030 750 25 33 Fax. 030 750 25 88 [EMAIL PROTECTED] -- DIT IS EEN AUTOMATISCH GEGENEREERD E-MAILBERICHT -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: out of memory error with more than a few sites
http://jakarta.apache.org/tomcat/faq/memory.html I bet your machine has some kernel limits on number of open files that you are passing. -Tim Helmut Eggebert wrote: Hi, I am getting an out of memory error when I start Tomcat. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Out of memory error
Howdy, Do you have the reverse lookup enabled in your AccessLogValve (if you have the AccessLogValve enabled at all)? It may be that someone just left a System.out.println or a logger statement of a non-debug priority in that part of the code ;) ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Januski, Ken [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 6:22 PM To: Tomcat Users List Subject: RE: Out of memory error Thanks Nikolaos, The multiple (100 per minute) mapping server lines occur before the out of memory error. But I now see that I also get these on days when there is no memory problem. So I guess they're unrelated. It just seems odd to see so many of them. I'll try the -Xms and -Xmx solutions and see if that helps. As I said it doesn't happen often but it would be nice to track down the cause (or at least fix it so it doesn't recur). Ken -Original Message- From: Nikolaos Giannopoulos [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 6:07 PM To: Tomcat Users List Subject: RE: Out of memory error -Original Message- From: Januski, Ken [mailto:[EMAIL PROTECTED] But no one has answered my original question: Do the 100s of multiple mapping server nnn.nnn.nnn.nn lines reflect another symptom or the possible cause of the memory error? They just look odd to me and so I wondered if they might be the cause of the problem. Once you hit an java.lang.OutOfMemoryError everything is in an inconsistent state and I would not be surprised that you get lots of other error messages thereafter. The important question is are any of these messages appearing *before* the initial out of memory error or *after* - if the're any before then I would suggest investigating them otherwise I would guess that fixing your out of memory error may fix your other error messages. --Nikolaos -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 5:38 PM To: Tomcat Users List Subject: RE: Out of memory error could be because of this awful bug introduced in j2sdk1.4.1. It wasn't in j2sdk1.4.0 http://developer.java.sun.com/developer/bugParade/bugs/4724129.html Jake At 04:16 PM 4/1/2003 -0600, you wrote: I had the same problem on Redhat 7.1. I tried using the -Xmx and -Xms switches, but nothing seemed to help. I then switched to IBMJava2-14 and it solved the problem. Steve -Original Message- From: Darian Shimy [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 1:16 PM To: 'Tomcat Users List' Subject: RE: Out of memory error Set the memory using -Xmx and -Xms. This should take care of the memory problems. If you want to monitor the heap usage, add -verbose:gc -- Darian Shimy -Original Message- From: Januski, Ken [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 12:21 PM To: Tomcat Users List Subject: Out of memory error Hi, Very occasionally my Tomcat server runs into out of memory errors. I'ts not a heavily used server, less than 10 users a day I'd guess on an Intranet. But every month or so it runs into memory problems. The newest ones occurred yesterday and I didn't hear about them until today. When I investigated I found hundreds of these lines repeating themselves in the catalina log. 2003-03-30 22:38:07 StandardEngine[Standalone]: Mapping server name 'nnn.nnn.nn.nn' They were eventually followed by this: 2003-03-30 22:38:08 HttpProcessor[80][1] process java.lang.OutOfMemoryError Can anyone tell me whether the first lines indicate a cause of the out of memory error or whether they're just another symptom of running out of memory? Thanks for any ideas, Ken - 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] 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
RE: Out of memory error
Howdy, (2) I think its silly that SUN has slated fixing this bug for 1.5 and their workaround makes very little sense - Anyone know what the following stated work around translates to in actual code? Don't reuse StringBuffers. If you do reuse them, check their capacity and make sure that you aren't making tiny Strings from huge StringBuffers It means use a StringBuffer just once. To be safe, don't play with the StringBuffer.clear() and don't keep references to StringBuffers after you're done using them. Construct a new StringBuffer every time you need one. (3) Steve, last time I downloaded an IBM JRE (a real long time ago) it was a real pain as it was (a) buried within many nested web pages and (b) was part of a websphere download - Do you offhand have a direct link to (just) IBM's 1.4 JRE? See http://www-106.ibm.com/developerworks/java/jdk/index.html Note that this does not constitute an endorsement of the IBM JDK on my part ;) I don't particularly like their JDK. Yoav Shapira Millennium ChemInformatics 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: Out of memory error
If you are using jdk1.4.1 you could be a victim of: http://developer.java.sun.com/developer/bugParade/bugs/4724129.html -Original Message- From: Januski, Ken [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 3:22 PM To: Tomcat Users List Subject: RE: Out of memory error Thanks Nikolaos, The multiple (100 per minute) mapping server lines occur before the out of memory error. But I now see that I also get these on days when there is no memory problem. So I guess they're unrelated. It just seems odd to see so many of them. I'll try the -Xms and -Xmx solutions and see if that helps. As I said it doesn't happen often but it would be nice to track down the cause (or at least fix it so it doesn't recur). Ken -Original Message- From: Nikolaos Giannopoulos [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 6:07 PM To: Tomcat Users List Subject: RE: Out of memory error -Original Message- From: Januski, Ken [mailto:[EMAIL PROTECTED] But no one has answered my original question: Do the 100s of multiple mapping server nnn.nnn.nnn.nn lines reflect another symptom or the possible cause of the memory error? They just look odd to me and so I wondered if they might be the cause of the problem. Once you hit an java.lang.OutOfMemoryError everything is in an inconsistent state and I would not be surprised that you get lots of other error messages thereafter. The important question is are any of these messages appearing *before* the initial out of memory error or *after* - if the're any before then I would suggest investigating them otherwise I would guess that fixing your out of memory error may fix your other error messages. --Nikolaos -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 5:38 PM To: Tomcat Users List Subject: RE: Out of memory error could be because of this awful bug introduced in j2sdk1.4.1. It wasn't in j2sdk1.4.0 http://developer.java.sun.com/developer/bugParade/bugs/4724129.html Jake At 04:16 PM 4/1/2003 -0600, you wrote: I had the same problem on Redhat 7.1. I tried using the -Xmx and -Xms switches, but nothing seemed to help. I then switched to IBMJava2-14 and it solved the problem. Steve -Original Message- From: Darian Shimy [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 1:16 PM To: 'Tomcat Users List' Subject: RE: Out of memory error Set the memory using -Xmx and -Xms. This should take care of the memory problems. If you want to monitor the heap usage, add -verbose:gc -- Darian Shimy -Original Message- From: Januski, Ken [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 12:21 PM To: Tomcat Users List Subject: Out of memory error Hi, Very occasionally my Tomcat server runs into out of memory errors. I'ts not a heavily used server, less than 10 users a day I'd guess on an Intranet. But every month or so it runs into memory problems. The newest ones occurred yesterday and I didn't hear about them until today. When I investigated I found hundreds of these lines repeating themselves in the catalina log. 2003-03-30 22:38:07 StandardEngine[Standalone]: Mapping server name 'nnn.nnn.nn.nn' They were eventually followed by this: 2003-03-30 22:38:08 HttpProcessor[80][1] process java.lang.OutOfMemoryError Can anyone tell me whether the first lines indicate a cause of the out of memory error or whether they're just another symptom of running out of memory? Thanks for any ideas, Ken - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Out of memory error
Thanks for the suggestion Yoav, I do have AccessLogValve enabled but not reverse lookup. I've changed the Tomcat memory settings in registry for the two services so will see if that at helps the memory problem. But I'd still like to figure out why I'm getting such aggressive logging! As far as the 1.4.1 I'm glad I'm not using it. It's hard to believe that you can't reuse StringBuffers. Ken -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 02, 2003 9:14 AM To: Tomcat Users List Subject: RE: Out of memory error Howdy, Do you have the reverse lookup enabled in your AccessLogValve (if you have the AccessLogValve enabled at all)? It may be that someone just left a System.out.println or a logger statement of a non-debug priority in that part of the code ;) ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Januski, Ken [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 6:22 PM To: Tomcat Users List Subject: RE: Out of memory error Thanks Nikolaos, The multiple (100 per minute) mapping server lines occur before the out of memory error. But I now see that I also get these on days when there is no memory problem. So I guess they're unrelated. It just seems odd to see so many of them. I'll try the -Xms and -Xmx solutions and see if that helps. As I said it doesn't happen often but it would be nice to track down the cause (or at least fix it so it doesn't recur). Ken -Original Message- From: Nikolaos Giannopoulos [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 6:07 PM To: Tomcat Users List Subject: RE: Out of memory error -Original Message- From: Januski, Ken [mailto:[EMAIL PROTECTED] But no one has answered my original question: Do the 100s of multiple mapping server nnn.nnn.nnn.nn lines reflect another symptom or the possible cause of the memory error? They just look odd to me and so I wondered if they might be the cause of the problem. Once you hit an java.lang.OutOfMemoryError everything is in an inconsistent state and I would not be surprised that you get lots of other error messages thereafter. The important question is are any of these messages appearing *before* the initial out of memory error or *after* - if the're any before then I would suggest investigating them otherwise I would guess that fixing your out of memory error may fix your other error messages. --Nikolaos -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 5:38 PM To: Tomcat Users List Subject: RE: Out of memory error could be because of this awful bug introduced in j2sdk1.4.1. It wasn't in j2sdk1.4.0 http://developer.java.sun.com/developer/bugParade/bugs/4724129.html Jake At 04:16 PM 4/1/2003 -0600, you wrote: I had the same problem on Redhat 7.1. I tried using the -Xmx and -Xms switches, but nothing seemed to help. I then switched to IBMJava2-14 and it solved the problem. Steve -Original Message- From: Darian Shimy [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 1:16 PM To: 'Tomcat Users List' Subject: RE: Out of memory error Set the memory using -Xmx and -Xms. This should take care of the memory problems. If you want to monitor the heap usage, add -verbose:gc -- Darian Shimy -Original Message- From: Januski, Ken [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 12:21 PM To: Tomcat Users List Subject: Out of memory error Hi, Very occasionally my Tomcat server runs into out of memory errors. I'ts not a heavily used server, less than 10 users a day I'd guess on an Intranet. But every month or so it runs into memory problems. The newest ones occurred yesterday and I didn't hear about them until today. When I investigated I found hundreds of these lines repeating themselves in the catalina log. 2003-03-30 22:38:07 StandardEngine[Standalone]: Mapping server name 'nnn.nnn.nn.nn' They were eventually followed by this: 2003-03-30 22:38:08 HttpProcessor[80][1] process java.lang.OutOfMemoryError Can anyone tell me whether the first lines indicate a cause of the out of memory error or whether they're just another symptom of running out of memory? Thanks for any ideas, Ken - 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
RE: Out of memory error
Set the memory using -Xmx and -Xms. This should take care of the memory problems. If you want to monitor the heap usage, add -verbose:gc -- Darian Shimy -Original Message- From: Januski, Ken [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 12:21 PM To: Tomcat Users List Subject: Out of memory error Hi, Very occasionally my Tomcat server runs into out of memory errors. I'ts not a heavily used server, less than 10 users a day I'd guess on an Intranet. But every month or so it runs into memory problems. The newest ones occurred yesterday and I didn't hear about them until today. When I investigated I found hundreds of these lines repeating themselves in the catalina log. 2003-03-30 22:38:07 StandardEngine[Standalone]: Mapping server name 'nnn.nnn.nn.nn' They were eventually followed by this: 2003-03-30 22:38:08 HttpProcessor[80][1] process java.lang.OutOfMemoryError Can anyone tell me whether the first lines indicate a cause of the out of memory error or whether they're just another symptom of running out of memory? Thanks for any ideas, Ken - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Out of memory error
I had the same problem on Redhat 7.1. I tried using the -Xmx and -Xms switches, but nothing seemed to help. I then switched to IBMJava2-14 and it solved the problem. Steve -Original Message- From: Darian Shimy [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 1:16 PM To: 'Tomcat Users List' Subject: RE: Out of memory error Set the memory using -Xmx and -Xms. This should take care of the memory problems. If you want to monitor the heap usage, add -verbose:gc -- Darian Shimy -Original Message- From: Januski, Ken [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 12:21 PM To: Tomcat Users List Subject: Out of memory error Hi, Very occasionally my Tomcat server runs into out of memory errors. I'ts not a heavily used server, less than 10 users a day I'd guess on an Intranet. But every month or so it runs into memory problems. The newest ones occurred yesterday and I didn't hear about them until today. When I investigated I found hundreds of these lines repeating themselves in the catalina log. 2003-03-30 22:38:07 StandardEngine[Standalone]: Mapping server name 'nnn.nnn.nn.nn' They were eventually followed by this: 2003-03-30 22:38:08 HttpProcessor[80][1] process java.lang.OutOfMemoryError Can anyone tell me whether the first lines indicate a cause of the out of memory error or whether they're just another symptom of running out of memory? Thanks for any ideas, Ken - 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: Out of memory error
could be because of this awful bug introduced in j2sdk1.4.1. It wasn't in j2sdk1.4.0 http://developer.java.sun.com/developer/bugParade/bugs/4724129.html Jake At 04:16 PM 4/1/2003 -0600, you wrote: I had the same problem on Redhat 7.1. I tried using the -Xmx and -Xms switches, but nothing seemed to help. I then switched to IBMJava2-14 and it solved the problem. Steve -Original Message- From: Darian Shimy [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 1:16 PM To: 'Tomcat Users List' Subject: RE: Out of memory error Set the memory using -Xmx and -Xms. This should take care of the memory problems. If you want to monitor the heap usage, add -verbose:gc -- Darian Shimy -Original Message- From: Januski, Ken [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 12:21 PM To: Tomcat Users List Subject: Out of memory error Hi, Very occasionally my Tomcat server runs into out of memory errors. I'ts not a heavily used server, less than 10 users a day I'd guess on an Intranet. But every month or so it runs into memory problems. The newest ones occurred yesterday and I didn't hear about them until today. When I investigated I found hundreds of these lines repeating themselves in the catalina log. 2003-03-30 22:38:07 StandardEngine[Standalone]: Mapping server name 'nnn.nnn.nn.nn' They were eventually followed by this: 2003-03-30 22:38:08 HttpProcessor[80][1] process java.lang.OutOfMemoryError Can anyone tell me whether the first lines indicate a cause of the out of memory error or whether they're just another symptom of running out of memory? Thanks for any ideas, Ken - 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: Out of memory error
(1) We are seeing what seems to be this bug as well (we have no JSPs in our app btw) - Could it be that by using IBM's JRE for 1.4 that Steve essentially worked around this bug (2) I think its silly that SUN has slated fixing this bug for 1.5 and their workaround makes very little sense - Anyone know what the following stated work around translates to in actual code? Don't reuse StringBuffers. If you do reuse them, check their capacity and make sure that you aren't making tiny Strings from huge StringBuffers (3) Steve, last time I downloaded an IBM JRE (a real long time ago) it was a real pain as it was (a) buried within many nested web pages and (b) was part of a websphere download - Do you offhand have a direct link to (just) IBM's 1.4 JRE? Thanks, --Nikolaos -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] could be because of this awful bug introduced in j2sdk1.4.1. It wasn't in j2sdk1.4.0 http://developer.java.sun.com/developer/bugParade/bugs/4724129.html Jake At 04:16 PM 4/1/2003 -0600, you wrote: I had the same problem on Redhat 7.1. I tried using the -Xmx and -Xms switches, but nothing seemed to help. I then switched to IBMJava2-14 and it solved the problem. Steve -Original Message- From: Darian Shimy [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 1:16 PM To: 'Tomcat Users List' Subject: RE: Out of memory error Set the memory using -Xmx and -Xms. This should take care of the memory problems. If you want to monitor the heap usage, add -verbose:gc -- Darian Shimy -Original Message- From: Januski, Ken [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 12:21 PM To: Tomcat Users List Subject: Out of memory error Hi, Very occasionally my Tomcat server runs into out of memory errors. I'ts not a heavily used server, less than 10 users a day I'd guess on an Intranet. But every month or so it runs into memory problems. The newest ones occurred yesterday and I didn't hear about them until today. When I investigated I found hundreds of these lines repeating themselves in the catalina log. 2003-03-30 22:38:07 StandardEngine[Standalone]: Mapping server name 'nnn.nnn.nn.nn' They were eventually followed by this: 2003-03-30 22:38:08 HttpProcessor[80][1] process java.lang.OutOfMemoryError Can anyone tell me whether the first lines indicate a cause of the out of memory error or whether they're just another symptom of running out of memory? Thanks for any ideas, Ken - 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: Out of memory error
No, I'm using 1.4.0, so that shouldn't be it. But no one has answered my original question: Do the 100s of multiple mapping server nnn.nnn.nnn.nn lines reflect another symptom or the possible cause of the memory error? They just look odd to me and so I wondered if they might be the cause of the problem. I also have 2 instances of Tomcat running as services and need to add the memory settings there in registry. I'll try that but I'm still curious about my original question. Thanks again, Ken -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 5:38 PM To: Tomcat Users List Subject: RE: Out of memory error could be because of this awful bug introduced in j2sdk1.4.1. It wasn't in j2sdk1.4.0 http://developer.java.sun.com/developer/bugParade/bugs/4724129.html Jake At 04:16 PM 4/1/2003 -0600, you wrote: I had the same problem on Redhat 7.1. I tried using the -Xmx and -Xms switches, but nothing seemed to help. I then switched to IBMJava2-14 and it solved the problem. Steve -Original Message- From: Darian Shimy [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 1:16 PM To: 'Tomcat Users List' Subject: RE: Out of memory error Set the memory using -Xmx and -Xms. This should take care of the memory problems. If you want to monitor the heap usage, add -verbose:gc -- Darian Shimy -Original Message- From: Januski, Ken [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 12:21 PM To: Tomcat Users List Subject: Out of memory error Hi, Very occasionally my Tomcat server runs into out of memory errors. I'ts not a heavily used server, less than 10 users a day I'd guess on an Intranet. But every month or so it runs into memory problems. The newest ones occurred yesterday and I didn't hear about them until today. When I investigated I found hundreds of these lines repeating themselves in the catalina log. 2003-03-30 22:38:07 StandardEngine[Standalone]: Mapping server name 'nnn.nnn.nn.nn' They were eventually followed by this: 2003-03-30 22:38:08 HttpProcessor[80][1] process java.lang.OutOfMemoryError Can anyone tell me whether the first lines indicate a cause of the out of memory error or whether they're just another symptom of running out of memory? Thanks for any ideas, Ken - 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: Out of memory error
-Original Message- From: Januski, Ken [mailto:[EMAIL PROTECTED] But no one has answered my original question: Do the 100s of multiple mapping server nnn.nnn.nnn.nn lines reflect another symptom or the possible cause of the memory error? They just look odd to me and so I wondered if they might be the cause of the problem. Once you hit an java.lang.OutOfMemoryError everything is in an inconsistent state and I would not be surprised that you get lots of other error messages thereafter. The important question is are any of these messages appearing *before* the initial out of memory error or *after* - if the're any before then I would suggest investigating them otherwise I would guess that fixing your out of memory error may fix your other error messages. --Nikolaos -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 5:38 PM To: Tomcat Users List Subject: RE: Out of memory error could be because of this awful bug introduced in j2sdk1.4.1. It wasn't in j2sdk1.4.0 http://developer.java.sun.com/developer/bugParade/bugs/4724129.html Jake At 04:16 PM 4/1/2003 -0600, you wrote: I had the same problem on Redhat 7.1. I tried using the -Xmx and -Xms switches, but nothing seemed to help. I then switched to IBMJava2-14 and it solved the problem. Steve -Original Message- From: Darian Shimy [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 1:16 PM To: 'Tomcat Users List' Subject: RE: Out of memory error Set the memory using -Xmx and -Xms. This should take care of the memory problems. If you want to monitor the heap usage, add -verbose:gc -- Darian Shimy -Original Message- From: Januski, Ken [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 12:21 PM To: Tomcat Users List Subject: Out of memory error Hi, Very occasionally my Tomcat server runs into out of memory errors. I'ts not a heavily used server, less than 10 users a day I'd guess on an Intranet. But every month or so it runs into memory problems. The newest ones occurred yesterday and I didn't hear about them until today. When I investigated I found hundreds of these lines repeating themselves in the catalina log. 2003-03-30 22:38:07 StandardEngine[Standalone]: Mapping server name 'nnn.nnn.nn.nn' They were eventually followed by this: 2003-03-30 22:38:08 HttpProcessor[80][1] process java.lang.OutOfMemoryError Can anyone tell me whether the first lines indicate a cause of the out of memory error or whether they're just another symptom of running out of memory? Thanks for any ideas, Ken - 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: Out of memory error
Thanks Nikolaos, The multiple (100 per minute) mapping server lines occur before the out of memory error. But I now see that I also get these on days when there is no memory problem. So I guess they're unrelated. It just seems odd to see so many of them. I'll try the -Xms and -Xmx solutions and see if that helps. As I said it doesn't happen often but it would be nice to track down the cause (or at least fix it so it doesn't recur). Ken -Original Message- From: Nikolaos Giannopoulos [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 6:07 PM To: Tomcat Users List Subject: RE: Out of memory error -Original Message- From: Januski, Ken [mailto:[EMAIL PROTECTED] But no one has answered my original question: Do the 100s of multiple mapping server nnn.nnn.nnn.nn lines reflect another symptom or the possible cause of the memory error? They just look odd to me and so I wondered if they might be the cause of the problem. Once you hit an java.lang.OutOfMemoryError everything is in an inconsistent state and I would not be surprised that you get lots of other error messages thereafter. The important question is are any of these messages appearing *before* the initial out of memory error or *after* - if the're any before then I would suggest investigating them otherwise I would guess that fixing your out of memory error may fix your other error messages. --Nikolaos -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 5:38 PM To: Tomcat Users List Subject: RE: Out of memory error could be because of this awful bug introduced in j2sdk1.4.1. It wasn't in j2sdk1.4.0 http://developer.java.sun.com/developer/bugParade/bugs/4724129.html Jake At 04:16 PM 4/1/2003 -0600, you wrote: I had the same problem on Redhat 7.1. I tried using the -Xmx and -Xms switches, but nothing seemed to help. I then switched to IBMJava2-14 and it solved the problem. Steve -Original Message- From: Darian Shimy [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 1:16 PM To: 'Tomcat Users List' Subject: RE: Out of memory error Set the memory using -Xmx and -Xms. This should take care of the memory problems. If you want to monitor the heap usage, add -verbose:gc -- Darian Shimy -Original Message- From: Januski, Ken [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 12:21 PM To: Tomcat Users List Subject: Out of memory error Hi, Very occasionally my Tomcat server runs into out of memory errors. I'ts not a heavily used server, less than 10 users a day I'd guess on an Intranet. But every month or so it runs into memory problems. The newest ones occurred yesterday and I didn't hear about them until today. When I investigated I found hundreds of these lines repeating themselves in the catalina log. 2003-03-30 22:38:07 StandardEngine[Standalone]: Mapping server name 'nnn.nnn.nn.nn' They were eventually followed by this: 2003-03-30 22:38:08 HttpProcessor[80][1] process java.lang.OutOfMemoryError Can anyone tell me whether the first lines indicate a cause of the out of memory error or whether they're just another symptom of running out of memory? Thanks for any ideas, Ken - 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: Out of memory error
Oh, definitely, yes. If you haven't used the -Xmx option then you are limiting yourself to 64meg of memory maximum! You can hit that pretty quickly. Jake At 06:22 PM 4/1/2003 -0500, you wrote: Thanks Nikolaos, The multiple (100 per minute) mapping server lines occur before the out of memory error. But I now see that I also get these on days when there is no memory problem. So I guess they're unrelated. It just seems odd to see so many of them. I'll try the -Xms and -Xmx solutions and see if that helps. As I said it doesn't happen often but it would be nice to track down the cause (or at least fix it so it doesn't recur). Ken -Original Message- From: Nikolaos Giannopoulos [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 6:07 PM To: Tomcat Users List Subject: RE: Out of memory error -Original Message- From: Januski, Ken [mailto:[EMAIL PROTECTED] But no one has answered my original question: Do the 100s of multiple mapping server nnn.nnn.nnn.nn lines reflect another symptom or the possible cause of the memory error? They just look odd to me and so I wondered if they might be the cause of the problem. Once you hit an java.lang.OutOfMemoryError everything is in an inconsistent state and I would not be surprised that you get lots of other error messages thereafter. The important question is are any of these messages appearing *before* the initial out of memory error or *after* - if the're any before then I would suggest investigating them otherwise I would guess that fixing your out of memory error may fix your other error messages. --Nikolaos -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 5:38 PM To: Tomcat Users List Subject: RE: Out of memory error could be because of this awful bug introduced in j2sdk1.4.1. It wasn't in j2sdk1.4.0 http://developer.java.sun.com/developer/bugParade/bugs/4724129.html Jake At 04:16 PM 4/1/2003 -0600, you wrote: I had the same problem on Redhat 7.1. I tried using the -Xmx and -Xms switches, but nothing seemed to help. I then switched to IBMJava2-14 and it solved the problem. Steve -Original Message- From: Darian Shimy [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 1:16 PM To: 'Tomcat Users List' Subject: RE: Out of memory error Set the memory using -Xmx and -Xms. This should take care of the memory problems. If you want to monitor the heap usage, add -verbose:gc -- Darian Shimy -Original Message- From: Januski, Ken [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 12:21 PM To: Tomcat Users List Subject: Out of memory error Hi, Very occasionally my Tomcat server runs into out of memory errors. I'ts not a heavily used server, less than 10 users a day I'd guess on an Intranet. But every month or so it runs into memory problems. The newest ones occurred yesterday and I didn't hear about them until today. When I investigated I found hundreds of these lines repeating themselves in the catalina log. 2003-03-30 22:38:07 StandardEngine[Standalone]: Mapping server name 'nnn.nnn.nn.nn' They were eventually followed by this: 2003-03-30 22:38:08 HttpProcessor[80][1] process java.lang.OutOfMemoryError Can anyone tell me whether the first lines indicate a cause of the out of memory error or whether they're just another symptom of running out of memory? Thanks for any ideas, Ken - 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: Out of memory error
I just looked at this in Bug Parade. They put out a J2SE Version 1.4.1_02 but the release notes don't mention this bug. The bug (4724129) is still listed as In progress. I don't see a Known problem section of the release notes either. This probably explains a bunch of problems reported recently on this list. -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 2:38 PM To: Tomcat Users List Subject: RE: Out of memory error could be because of this awful bug introduced in j2sdk1.4.1. It wasn't in j2sdk1.4.0 http://developer.java.sun.com/developer/bugParade/bugs/4724129.html Jake At 04:16 PM 4/1/2003 -0600, you wrote: I had the same problem on Redhat 7.1. I tried using the -Xmx and -Xms switches, but nothing seemed to help. I then switched to IBMJava2-14 and it solved the problem. Steve -Original Message- From: Darian Shimy [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 1:16 PM To: 'Tomcat Users List' Subject: RE: Out of memory error Set the memory using -Xmx and -Xms. This should take care of the memory problems. If you want to monitor the heap usage, add -verbose:gc -- Darian Shimy -Original Message- From: Januski, Ken [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 12:21 PM To: Tomcat Users List Subject: Out of memory error Hi, Very occasionally my Tomcat server runs into out of memory errors. I'ts not a heavily used server, less than 10 users a day I'd guess on an Intranet. But every month or so it runs into memory problems. The newest ones occurred yesterday and I didn't hear about them until today. When I investigated I found hundreds of these lines repeating themselves in the catalina log. 2003-03-30 22:38:07 StandardEngine[Standalone]: Mapping server name 'nnn.nnn.nn.nn' They were eventually followed by this: 2003-03-30 22:38:08 HttpProcessor[80][1] process java.lang.OutOfMemoryError Can anyone tell me whether the first lines indicate a cause of the out of memory error or whether they're just another symptom of running out of memory? Thanks for any ideas, Ken - 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: OUT OF MEMORY ERROR
On Tuesday 27 August 2002 18:41, you wrote: Hi mike, Well, i tried changing the jvm through catalina.bat (tc 4.0.4) by adding the Catalina_opts = -Xms512m -Xmx512m but it seems it didn't change anything in the total memory cause I still see it being at 66m (www.motovan.com/MemoryTest.jsp) Anyways, I am reverting back to html for now and will try to incorporate servlet by servlet until i found where the error comes from. Thanks, Pat Try to write CATALINA_OPT=-Xms512m -Xmx512m it is because of the space between parameters, for me the same with JAVA_OPT worked well ilis -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: OUT OF MEMORY ERROR
Hi mike, Well, i tried changing the jvm through catalina.bat (tc 4.0.4) by adding the Catalina_opts = -Xms512m -Xmx512m but it seems it didn't change anything in the total memory cause I still see it being at 66m (www.motovan.com/MemoryTest.jsp) Anyways, I am reverting back to html for now and will try to incorporate servlet by servlet until i found where the error comes from. Thanks, Pat -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED]] Sent: August 26, 2002 6:31 PM To: Tomcat Users List Subject: RE: OUT OF MEMORY ERROR If you don't close the connection you'll eventually run the database out of connections. Also an open connection will use memory within the JVM and build up the memory in use. Another thing to do is to avoid using strings, use stringbuffers instead. Try to avoid doing things like this: String str = This + number + that + anotherString; If you do this you're creating a number of string objects, and the garbage collector may not reclaim the memory quickly. You can try adjusting the memory that the JVM grabs at startup as well, the arguement is something like -Xmx512M (that would grab 512 megs of ram). One thing to consider, and it works great for me, is to use your servlets and jsp's for access control through the application, but to use some XML/XSLT engine to actually retrieve and format the data coming from the database. I use Oracle's XSQL Servlet, seems to work great and also seems to be less filling (memory filling that is). --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Patrick Codere [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 3:15 PM To: 'Tomcat Users List' Subject: OUT OF MEMORY ERROR Hi everyone, I have been getting this error for the past few weeks without solving the issue. But I just found out that I had forgotten to close a database connection. Could that have been the problem? Time will tell, but what exactly happens when you don't close a db connection? Thanks for your help. Pat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: OUT OF MEMORY ERROR
If you don't close the connection you'll eventually run the database out of connections. Also an open connection will use memory within the JVM and build up the memory in use. Another thing to do is to avoid using strings, use stringbuffers instead. Try to avoid doing things like this: String str = This + number + that + anotherString; If you do this you're creating a number of string objects, and the garbage collector may not reclaim the memory quickly. You can try adjusting the memory that the JVM grabs at startup as well, the arguement is something like -Xmx512M (that would grab 512 megs of ram). One thing to consider, and it works great for me, is to use your servlets and jsp's for access control through the application, but to use some XML/XSLT engine to actually retrieve and format the data coming from the database. I use Oracle's XSQL Servlet, seems to work great and also seems to be less filling (memory filling that is). --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Patrick Codere [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 3:15 PM To: 'Tomcat Users List' Subject: OUT OF MEMORY ERROR Hi everyone, I have been getting this error for the past few weeks without solving the issue. But I just found out that I had forgotten to close a database connection. Could that have been the problem? Time will tell, but what exactly happens when you don't close a db connection? Thanks for your help. Pat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: OUT OF MEMORY ERROR
Hi Pat, Not closing a database connection should not run you out of memory, unless you have ALOT of traffic or no memory to begin with. Connections should time out after a period of time, if you have relinquished to reference to them. It is obviously best to close them explicitly when you are finished with them. How long does it take before you run out of memory? I seem to recall that older versions of SUN's jdk had memory leaks when compiling JSP pages. Do you only run out of memory after new JSP pages have been loaded or existing ones have been changed? Or is this a slow leak that has some sort of predictable behavior, like it runs out of memory three days after a restart, etc... Could you give more info? Without it, we are just guessing. --Jay Gardner -Original Message- From: Patrick Codere [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 4:15 PM To: 'Tomcat Users List' Subject: OUT OF MEMORY ERROR Hi everyone, I have been getting this error for the past few weeks without solving the issue. But I just found out that I had forgotten to close a database connection. Could that have been the problem? Time will tell, but what exactly happens when you don't close a db connection? Thanks for your help. Pat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: OUT OF MEMORY ERROR - PLEASE HELP
Howdy, You may wish to have Apache, not tomcat, serve static content such as images. But for your current setup, using only tomcat, you probably need to increase the amount of memory available to the JVM. You can do this via the -Xmx parameter to java. You set that parameter in your environment (CATALINA_OPTS variable) or in the $CATALINA_HOME/bin/catalina.bat script. See the script itself for information about CATALINA_OPTS and/or JAVA_OPTS. Run java -X to see the X options, including -Xmx. Fuller docs are at: http://java.sun.com/docs/hotspot/VMOptions.html Yoav Shapira Millennium ChemInformatics -Original Message- From: Patrick Codere [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 21, 2002 10:03 AM To: 'Tomcat Users List' Subject: OUT OF MEMORY ERROR - PLEASE HELP Hi everyone, Here is my situation. -NT, -Tomcat 4.0.3 - 2 webapps that have a link to each other - catalog with Thousand of jpegs (70kb each) After a while Tomcat crashed with java.lang.outofmemory problem. Before crash, get errors in my logs: java.net.SocketException: Software caused connection abort: socket write error 2002-08-19 21:58:43 action: Processing a GET for /home 2002-08-19 21:58:43 action: Looking for Action instance for class com.motovan.action.HomeAction 2002-08-19 21:58:44 PageContextImpl: creating out java.lang.OutOfMemoryError 2002-08-19 21:58:44 JspFactoryImpl: Exception initializing page context java.lang.IllegalStateException: failed initialize JspWriter at org.apache.jasper.runtime.PageContextImpl._initialize(PageContextImpl.j ava: 1 51) Please help. Pat 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: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: OUT OF MEMORY ERROR - PLEASE HELP
Thanks Yoav, I just changed the CATALINA.BAT file this way: I just added these two lines on the top of the batch file. Would that be ok? CATALINA_OPTS = -Xms512m -Xmx512m JAVA_OPTS = -Xms512m -Xmx512m -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: August 21, 2002 10:04 AM To: Tomcat Users List Subject: RE: OUT OF MEMORY ERROR - PLEASE HELP Howdy, You may wish to have Apache, not tomcat, serve static content such as images. But for your current setup, using only tomcat, you probably need to increase the amount of memory available to the JVM. You can do this via the -Xmx parameter to java. You set that parameter in your environment (CATALINA_OPTS variable) or in the $CATALINA_HOME/bin/catalina.bat script. See the script itself for information about CATALINA_OPTS and/or JAVA_OPTS. Run java -X to see the X options, including -Xmx. Fuller docs are at: http://java.sun.com/docs/hotspot/VMOptions.html Yoav Shapira Millennium ChemInformatics -Original Message- From: Patrick Codere [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 21, 2002 10:03 AM To: 'Tomcat Users List' Subject: OUT OF MEMORY ERROR - PLEASE HELP Hi everyone, Here is my situation. -NT, -Tomcat 4.0.3 - 2 webapps that have a link to each other - catalog with Thousand of jpegs (70kb each) After a while Tomcat crashed with java.lang.outofmemory problem. Before crash, get errors in my logs: java.net.SocketException: Software caused connection abort: socket write error 2002-08-19 21:58:43 action: Processing a GET for /home 2002-08-19 21:58:43 action: Looking for Action instance for class com.motovan.action.HomeAction 2002-08-19 21:58:44 PageContextImpl: creating out java.lang.OutOfMemoryError 2002-08-19 21:58:44 JspFactoryImpl: Exception initializing page context java.lang.IllegalStateException: failed initialize JspWriter at org.apache.jasper.runtime.PageContextImpl._initialize(PageContextImpl.j ava: 1 51) Please help. Pat
RE: OUT OF MEMORY ERROR - PLEASE HELP
Hi, Only one of CATALINA_OPTS or JAVA_OPTS is needed, not both. See if it works for you with 512MB. It should be fine. For the long term, especially if you're going to have many concurrent users, you will want to investigate pairing Apache as the front end for static content with tomcat as the back end for your servlets and JSPs. It's a much more scalable and robust architecture. Yoav Shapira Millennium ChemInformatics -Original Message- From: Patrick Codere [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 21, 2002 10:37 AM To: 'Tomcat Users List' Subject: RE: OUT OF MEMORY ERROR - PLEASE HELP Thanks Yoav, I just changed the CATALINA.BAT file this way: I just added these two lines on the top of the batch file. Would that be ok? CATALINA_OPTS = -Xms512m -Xmx512m JAVA_OPTS = -Xms512m -Xmx512m -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: August 21, 2002 10:04 AM To: Tomcat Users List Subject: RE: OUT OF MEMORY ERROR - PLEASE HELP Howdy, You may wish to have Apache, not tomcat, serve static content such as images. But for your current setup, using only tomcat, you probably need to increase the amount of memory available to the JVM. You can do this via the -Xmx parameter to java. You set that parameter in your environment (CATALINA_OPTS variable) or in the $CATALINA_HOME/bin/catalina.bat script. See the script itself for information about CATALINA_OPTS and/or JAVA_OPTS. Run java -X to see the X options, including -Xmx. Fuller docs are at: http://java.sun.com/docs/hotspot/VMOptions.html Yoav Shapira Millennium ChemInformatics -Original Message- From: Patrick Codere [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 21, 2002 10:03 AM To: 'Tomcat Users List' Subject: OUT OF MEMORY ERROR - PLEASE HELP Hi everyone, Here is my situation. -NT, -Tomcat 4.0.3 - 2 webapps that have a link to each other - catalog with Thousand of jpegs (70kb each) After a while Tomcat crashed with java.lang.outofmemory problem. Before crash, get errors in my logs: java.net.SocketException: Software caused connection abort: socket write error 2002-08-19 21:58:43 action: Processing a GET for /home 2002-08-19 21:58:43 action: Looking for Action instance for class com.motovan.action.HomeAction 2002-08-19 21:58:44 PageContextImpl: creating out java.lang.OutOfMemoryError 2002-08-19 21:58:44 JspFactoryImpl: Exception initializing page context java.lang.IllegalStateException: failed initialize JspWriter at org.apache.jasper.runtime.PageContextImpl._initialize(PageContextImpl. j ava: 1 51) Please help. Pat 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: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: OUT OF MEMORY ERROR - PLEASE HELP
Thanks a lot. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: August 21, 2002 10:29 AM To: Tomcat Users List Subject: RE: OUT OF MEMORY ERROR - PLEASE HELP Hi, Only one of CATALINA_OPTS or JAVA_OPTS is needed, not both. See if it works for you with 512MB. It should be fine. For the long term, especially if you're going to have many concurrent users, you will want to investigate pairing Apache as the front end for static content with tomcat as the back end for your servlets and JSPs. It's a much more scalable and robust architecture. Yoav Shapira Millennium ChemInformatics -Original Message- From: Patrick Codere [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 21, 2002 10:37 AM To: 'Tomcat Users List' Subject: RE: OUT OF MEMORY ERROR - PLEASE HELP Thanks Yoav, I just changed the CATALINA.BAT file this way: I just added these two lines on the top of the batch file. Would that be ok? CATALINA_OPTS = -Xms512m -Xmx512m JAVA_OPTS = -Xms512m -Xmx512m -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: August 21, 2002 10:04 AM To: Tomcat Users List Subject: RE: OUT OF MEMORY ERROR - PLEASE HELP Howdy, You may wish to have Apache, not tomcat, serve static content such as images. But for your current setup, using only tomcat, you probably need to increase the amount of memory available to the JVM. You can do this via the -Xmx parameter to java. You set that parameter in your environment (CATALINA_OPTS variable) or in the $CATALINA_HOME/bin/catalina.bat script. See the script itself for information about CATALINA_OPTS and/or JAVA_OPTS. Run java -X to see the X options, including -Xmx. Fuller docs are at: http://java.sun.com/docs/hotspot/VMOptions.html Yoav Shapira Millennium ChemInformatics -Original Message- From: Patrick Codere [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 21, 2002 10:03 AM To: 'Tomcat Users List' Subject: OUT OF MEMORY ERROR - PLEASE HELP Hi everyone, Here is my situation. -NT, -Tomcat 4.0.3 - 2 webapps that have a link to each other - catalog with Thousand of jpegs (70kb each) After a while Tomcat crashed with java.lang.outofmemory problem. Before crash, get errors in my logs: java.net.SocketException: Software caused connection abort: socket write error 2002-08-19 21:58:43 action: Processing a GET for /home 2002-08-19 21:58:43 action: Looking for Action instance for class com.motovan.action.HomeAction 2002-08-19 21:58:44 PageContextImpl: creating out java.lang.OutOfMemoryError 2002-08-19 21:58:44 JspFactoryImpl: Exception initializing page context java.lang.IllegalStateException: failed initialize JspWriter at org.apache.jasper.runtime.PageContextImpl._initialize(PageContextImpl. j ava: 1 51) Please help. Pat
RE: Out of Memory Error
Hi, What is the JSP page supposed to do? ;) Could it possibly do something that exceeds 64MB in memory requirements? That's the default JVM max heap allocation. If you need more memory, use the -Xmx java runtime option via the JAVA_OPTS variable in catalina.sh. By the way, you would probably get a lot more specific and helpful replies if you were to post more details, e.g. tomcat version, server hardware, code of the JSP you mention, etc. Yoav Shapira Millennium ChemInformatics -Original Message- From: # Lalit Nagpal # [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 14, 2002 4:03 AM To: [EMAIL PROTECTED] Subject: Out of Memory Error hello I simply try to access a jsp page which is in the folder $TOMCAT_HOME/webapps/ROOT and what i get on the browser is Out of Memory Error what could be a possible solution thanx in advance = # Lalit Nagpal # __ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [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: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Out of Memory Error - plz help
I'm not sure this answers your question, but hopefully: 1. I can't say what the cause for the out of memory error is, but if you are writing in Java (JSP or servlet), you can try and check the memory status on your computer. This is done by: Runtime rt = Runtime.getRuntime(); long mem = rt.totalMemory(); long freemem = rt.freeMemory(); The first line gives you a runtime environment, the second one gives you the amount of memory the JAVA Runtime Environment (JRE) currently possesses, and the third line gives you the amount of available memory. This should help you debug and find the mischievous code. 2. In order to launch the JRE with more memory, you can set the JAVA_OPTS environment variable, which Catalina uses, in the following manner: JAVA_OPTS=-ms10M -mx512M -ms sets the minimum amount of memory for the JRE, in this case it's set to 10MB. -mx sets the maximum amount of memory (I think the default is 64MB, which should be quite a lot, I don't know why your program runs out of memory). The place where you set the JAVA_OPTS depends on your platform and installation. All I can tell you is that if you installed Tomcat with RPM on linux, then you best add this line to the file /etc/init.d/tomcat/tomcat4.conf . As for other installations, check to see where the catalina.bat or catalina.sh file is, usually this is the place to update. 3. Finally (sorry for the lengthy answer), you can add a try catch around your code. Be aware, however that your catch should catch Error since OutOfMemoryError doesn't extend Exception, so you should do something like this: try { code... } catch (Exception e) { } cacth (Error e) { } Oz. # Lalit Nagpal #To: [EMAIL PROTECTED] lalit_tomcat@ cc: yahoo.com Subject: Out of Memory Error - plz help 06/04/2002 07:37 AM Please respond to Tomcat Users List hello friends, I get this wierd error Out of Memory --- No Stack Trace. Actually i have a form that a student fills up attaches his mark statement (scanned image) and photograph. The form is received properly on the server but then the server goes down any time - giving the output as Out of Memory Error - No Stack Trace in catalina.out file. Any ideas, plz help Regards = # Lalit Nagpal # __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- 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: Out of Memory Error - plz help
Small correction. In item 2, the path for the config file in linux rpm installation is /etc/tomcat/conf/tomcat4.conf [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] 06/04/2002 cc: 10:33 AM Subject: Re: Out of Memory Error - plz help Please respond to Tomcat Users List I'm not sure this answers your question, but hopefully: 1. I can't say what the cause for the out of memory error is, but if you are writing in Java (JSP or servlet), you can try and check the memory status on your computer. This is done by: Runtime rt = Runtime.getRuntime(); long mem = rt.totalMemory(); long freemem = rt.freeMemory(); The first line gives you a runtime environment, the second one gives you the amount of memory the JAVA Runtime Environment (JRE) currently possesses, and the third line gives you the amount of available memory. This should help you debug and find the mischievous code. 2. In order to launch the JRE with more memory, you can set the JAVA_OPTS environment variable, which Catalina uses, in the following manner: JAVA_OPTS=-ms10M -mx512M -ms sets the minimum amount of memory for the JRE, in this case it's set to 10MB. -mx sets the maximum amount of memory (I think the default is 64MB, which should be quite a lot, I don't know why your program runs out of memory). The place where you set the JAVA_OPTS depends on your platform and installation. All I can tell you is that if you installed Tomcat with RPM on linux, then you best add this line to the file /etc/init.d/tomcat/tomcat4.conf . As for other installations, check to see where the catalina.bat or catalina.sh file is, usually this is the place to update. 3. Finally (sorry for the lengthy answer), you can add a try catch around your code. Be aware, however that your catch should catch Error since OutOfMemoryError doesn't extend Exception, so you should do something like this: try { code... } catch (Exception e) { } cacth (Error e) { } Oz. # Lalit Nagpal #To: [EMAIL PROTECTED] lalit_tomcat@ cc: yahoo.com Subject: Out of Memory Error - plz help 06/04/2002 07:37 AM Please respond to Tomcat Users List hello friends, I get this wierd error Out of Memory --- No Stack Trace. Actually i have a form that a student fills up attaches his mark statement (scanned image) and photograph. The form is received properly on the server but then the server goes down any time - giving the output as Out of Memory Error - No Stack Trace in catalina.out file. Any ideas, plz help Regards = # Lalit Nagpal # __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Out of Memory Error - plz help
in setclasspath.bat file set JAVA_OPTS=-ms10M -mx512M Jack Li -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 4:34 AM To: Tomcat Users List Subject: Re: Out of Memory Error - plz help I'm not sure this answers your question, but hopefully: 1. I can't say what the cause for the out of memory error is, but if you are writing in Java (JSP or servlet), you can try and check the memory status on your computer. This is done by: Runtime rt = Runtime.getRuntime(); long mem = rt.totalMemory(); long freemem = rt.freeMemory(); The first line gives you a runtime environment, the second one gives you the amount of memory the JAVA Runtime Environment (JRE) currently possesses, and the third line gives you the amount of available memory. This should help you debug and find the mischievous code. 2. In order to launch the JRE with more memory, you can set the JAVA_OPTS environment variable, which Catalina uses, in the following manner: JAVA_OPTS=-ms10M -mx512M -ms sets the minimum amount of memory for the JRE, in this case it's set to 10MB. -mx sets the maximum amount of memory (I think the default is 64MB, which should be quite a lot, I don't know why your program runs out of memory). The place where you set the JAVA_OPTS depends on your platform and installation. All I can tell you is that if you installed Tomcat with RPM on linux, then you best add this line to the file /etc/init.d/tomcat/tomcat4.conf . As for other installations, check to see where the catalina.bat or catalina.sh file is, usually this is the place to update. 3. Finally (sorry for the lengthy answer), you can add a try catch around your code. Be aware, however that your catch should catch Error since OutOfMemoryError doesn't extend Exception, so you should do something like this: try { code... } catch (Exception e) { } cacth (Error e) { } Oz. # Lalit Nagpal #To: [EMAIL PROTECTED] lalit_tomcat@ cc: yahoo.com Subject: Out of Memory Error - plz help 06/04/2002 07:37 AM Please respond to Tomcat Users List hello friends, I get this wierd error Out of Memory --- No Stack Trace. Actually i have a form that a student fills up attaches his mark statement (scanned image) and photograph. The form is received properly on the server but then the server goes down any time - giving the output as Out of Memory Error - No Stack Trace in catalina.out file. Any ideas, plz help Regards = # Lalit Nagpal # __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Out Of Memory Error
put -Xmx512m on option (512 is max memory before it crash) - Original Message - From: Micael Padraig Og mac Grene [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, May 12, 2002 10:20 PM Subject: Re: Out Of Memory Error My guess, though, is that you are trying to do a database job with objects. Don't know what database you are using, but whichever one it is, it usually has some ways to do it better than you can using objects to order the data. I learned that the hard way. Micael At 05:54 AM 5/13/02 +0100, you wrote: Hi All, I am generating a report using servlets which has 7 records. While processing it gives an OutOfMemory Error. Can any one tell me how and where to add memory? My RAM is 512MB URGENT!!! Thanks Amit Lonkar Everything you always wanted to know about cars and bikes,now at: http://in.autos.yahoo.com/cricket/tracker.html -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Out Of Memory Error
If you are using SQL server there is a line you need to put into the connect string so that it doesn't hold onto the results. We ran into this as well for MSSql 7. I will try and dig up the correct option. Kevin -Original Message- From: Micael Padraig Og mac Grene [mailto:[EMAIL PROTECTED]] Sent: Monday, May 13, 2002 1:20 AM To: Tomcat Users List Subject: Re: Out Of Memory Error My guess, though, is that you are trying to do a database job with objects. Don't know what database you are using, but whichever one it is, it usually has some ways to do it better than you can using objects to order the data. I learned that the hard way. Micael At 05:54 AM 5/13/02 +0100, you wrote: Hi All, I am generating a report using servlets which has 7 records. While processing it gives an OutOfMemory Error. Can any one tell me how and where to add memory? My RAM is 512MB URGENT!!! Thanks Amit Lonkar Everything you always wanted to know about cars and bikes,now at: http://in.autos.yahoo.com/cricket/tracker.html -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Out Of Memory Error
Look at your options under the java command. At 05:54 AM 5/13/02 +0100, you wrote: Hi All, I am generating a report using servlets which has 7 records. While processing it gives an OutOfMemory Error. Can any one tell me how and where to add memory? My RAM is 512MB URGENT!!! Thanks Amit Lonkar Everything you always wanted to know about cars and bikes,now at: http://in.autos.yahoo.com/cricket/tracker.html -- 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: Out Of Memory Error
Try java on the command line with nothing else, and it will give you the information. Also, you can go to a bookstore and read Chapter 8 in Java in a Nutshell on java. Micael At 05:54 AM 5/13/02 +0100, you wrote: Hi All, I am generating a report using servlets which has 7 records. While processing it gives an OutOfMemory Error. Can any one tell me how and where to add memory? My RAM is 512MB URGENT!!! Thanks Amit Lonkar Everything you always wanted to know about cars and bikes,now at: http://in.autos.yahoo.com/cricket/tracker.html -- 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: Out Of Memory Error
My guess, though, is that you are trying to do a database job with objects. Don't know what database you are using, but whichever one it is, it usually has some ways to do it better than you can using objects to order the data. I learned that the hard way. Micael At 05:54 AM 5/13/02 +0100, you wrote: Hi All, I am generating a report using servlets which has 7 records. While processing it gives an OutOfMemory Error. Can any one tell me how and where to add memory? My RAM is 512MB URGENT!!! Thanks Amit Lonkar Everything you always wanted to know about cars and bikes,now at: http://in.autos.yahoo.com/cricket/tracker.html -- 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: Out of Memory error - Tomcat 3.2.1
Wondering if anyone has any idea about this issue. Would appreciate a reply.. Yours, Somik - Original Message - From: Somik Raha To: [EMAIL PROTECTED] Sent: Tuesday, July 31, 2001 11:17 AM Subject: Out of Memory error - Tomcat 3.2.1 Hi, I am using Tomcat 3.2.1 with Apache. I find a strange phenomenon - whenever an http request is made, a tomcat thread is created. But when the servlet finishes, the thread is not destroyed. This results in a big problem - after sometime, an OutOfMemory exception is thrown - with the message "Unable to create Native Thread". Doing "pstree -ap" shows more than a thousand threads under the tomcat process (there are only a few servlets). I have checked my servlets, none of them have threads that dont end. I checked the Tomcat page, and it says I ought to upgrade to 3.2.3, as there are a lot of performance fixes. Is this one of them ? I want to make sure this is the problem, or the problem lies elsewhere.. Will appreciate help on this issue. Thanks. Regards, Somik **Somik RahaRD TeamKizna CorporationHiroo ON Bldg. 2F, 5-19-9 Hiroo,Shibuya-ku, Tokyo, 150-0012, JAPANPhone : +81-3-5475-2646Fax : +81-3-5449-4870**
RE: Out of Memory error - Tomcat 3.2.1
1. You're posting a message in non-plain text format, which is in violation of this list's rules (you did read the list's FAQ, didn't you?). Your message is thus likely being ignored. Post in plain text as required and someone will probably respond. 2. Your original message was posted 4 hours ago. This is a voluntary public mailing list, not a paid tech support with fixed time response. Give it some time before posting a follow-up. Regards, Emir. DISCLAIMER: The content of the preceding message is exclusively the personal opinion of the author, i.e. myself. Under no circumstances should the content be attributed to my employer.
Re: Out of Memory error - Tomcat 3.2.1
1. You're posting a message in non-plain text format, which is in violation of this list's rules (you did read the list's FAQ, didn't you?). Your message is thus likely being ignored. Post in plain text as required and someone will probably respond. Oops! Very sorry about that. Regards, Somik - Original Message - From: Emir Alikadic (ADNOC IST) [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 31, 2001 3:57 PM Subject: RE: Out of Memory error - Tomcat 3.2.1 1. You're posting a message in non-plain text format, which is in violation of this list's rules (you did read the list's FAQ, didn't you?). Your message is thus likely being ignored. Post in plain text as required and someone will probably respond. 2. Your original message was posted 4 hours ago. This is a voluntary public mailing list, not a paid tech support with fixed time response. Give it some time before posting a follow-up. Regards, Emir. DISCLAIMER: The content of the preceding message is exclusively the personal opinion of the author, i.e. myself. Under no circumstances should the content be attributed to my employer. _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Re: Out of Memory error - Tomcat 3.2.1
Somik, Are there really more than 1000 threads? When I start tomcat I get about 35 threads... are you running a standardish configuration or have you changed things? When you say you've checked your servlets and none of them have threads that dont end - are you sure? maybe post one of your servlets so people can check it. cheesr dim On Tue, 31 Jul 2001, Somik Raha wrote: Hi, Sorry for posting earlier in Rich Text. I am using Tomcat 3.2.1 with Apache. I find a strange phenomenon - whenever an http request is made, a tomcat thread is created. But when the servlet finishes, the thread is not destroyed. This results in a big problem - after sometime, an OutOfMemory exception is thrown - with the message Unable to create Native Thread. Doing pstree -ap shows more than a thousand threads under the tomcat process (there are only a few servlets). I have checked my servlets, none of them have threads that dont end. I checked the Tomcat page, and it says I ought to upgrade to 3.2.3, as there are a lot of performance fixes. Is this one of them ? I want to make sure this is the problem, or the problem lies elsewhere.. Will appreciate help on this issue. Thanks. Regards, Somik
Re: Out of Memory error - Tomcat 3.2.1
Hi Dmitri, Thanks for writing. Are there really more than 1000 threads? When I start tomcat I get about 35 threads... are you running a standardish configuration or have you changed things? When I start tomcat, I get around the same threads as you. When the servlets get accessed, the thread count starts increasing. Are there really more than 1000 threads? When I start tomcat I get about 35 threads... are you running a standardish configuration or have you changed things? Hmm.. This could be a possibility.. The person who installed might have changed something.. When you say you've checked your servlets and none of them have threads that dont end - are you sure? My observation is this : On the server giving trouble, not all servlets show this problem. Our main servlet gives this trouble. Here's why I think the thread in the servlet is ending correctly. The last line of the thread has a print statement which executes and I see the display. Also, the last line of doPost has a print statement and that executes as well. Also, the same webapp runs on another machine with Tomcat 3.1, and there are no problems on that machine. So I think it could be as you suggest, a setup issue. It is probably not a bug in Tomcat, for this would be a very major bug - it brings down our server within a few hours. I am planning on replacing this with Tomcat 3.2.3 this weekend. But I wanted to investigate in the meantime to find out why its happening. The servlet in question talks to a server thru TCP-IP, and finally closes the connection before completing (which I have verified from the server). There dont seem to be any resources doing anything... I am thinking of doing a server-side profiling using JProbe to see whats going on. Any ideas (is there any way to get more info about the threads that Tomcat creates) ? Regards, Somik _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Re: Out of Memory error - Tomcat 3.2.1
Somik, On Tue, 31 Jul 2001, Somik Raha wrote: Any ideas (is there any way to get more info about the threads that Tomcat creates) ? From what you said it does indeed sound like a configuration problem. I had thought from your earlier email that you were creating threads yourself in the servlets, but that doesn't sound like the case. I cant suggest how to best get more info about threads in tomcat, perhaps Craig could answer that? cheesr dim
Re: Out Of Memory error
Dear Aleksey, I've just read the documents you suggested, but as I've never used that command, I'm afraid I didn't quite understand what and how to increase the memory heap, any example? thanks! Martin Dear Martin, Yes. Please see "Tomcat - A Minimalistic User's Guide" at http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/uguide/tomcat_ug.htm l, the "Modify the Default JVM Settings" section. Yours, Aleksey -Original Message- From: Martin Mauri [SMTP:[EMAIL PROTECTED]] Sent: Monday, March 19, 2001 9:47 AM To: [EMAIL PROTECTED] Subject: "Out Of Memory" error Hi users! I'm trying to retrieve a set of rows from a Postgres database v7.0.3 with its JDBC driver, but after some minutes I get the "Out Of Memory" error. First I thought it could be a database problem, but when I execute the query manually, it works fine. So I think that the problem is the JVM in which the JDBC driver is running, is there anyway to give it more memory? thanks! Lic. Martin O. Mauri Profesion + Auge A.F.J.P Parana 666 - Cap. Federal [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] www.profesi.com.ar http://www.profesi.com.ar
Re: Out Of Memory error
Martin: You need to modify the tomcat.sh script and enter values in the TOMCAT_OPTS field. Example of an entry... tomcat_opts="-Xmx128m -Xms16m" Solved all of my issues. When invoked correctly, you will see the new java params in the ps -ef output for tomcat. I.E. /usr/java/bin/../bin/sparc/native_threads/java -Xmx128m -Xms16m -Dtomcat.home=/ Martin Mauri wrote: Dear Aleksey, I've just read the documents you suggested, but as I've never used that command, I'm afraid I didn't quite understand what and how to increase the memory heap, any example? thanks! Martin Dear Martin, Yes. Please see "Tomcat - A Minimalistic User's Guide" at http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/uguide/tomcat_ug.htm l, the "Modify the Default JVM Settings" section. Yours, Aleksey -Original Message- From: Martin Mauri [SMTP:[EMAIL PROTECTED]] Sent: Monday, March 19, 2001 9:47 AM To: [EMAIL PROTECTED] Subject: "Out Of Memory" error Hi users! I'm trying to retrieve a set of rows from a Postgres database v7.0.3 with its JDBC driver, but after some minutes I get the "Out Of Memory" error. First I thought it could be a database problem, but when I execute the query manually, it works fine. So I think that the problem is the JVM in which the JDBC driver is running, is there anyway to give it more memory? thanks! Lic. Martin O. Mauri Profesion + Auge A.F.J.P Parana 666 - Cap. Federal [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] www.profesi.com.ar http://www.profesi.com.ar begin:vcard n:Keller;Scott tel;cell:678-296-3767 tel;fax:404-287-8549 tel;work:404-287-8400 x-mozilla-html:FALSE version:2.1 adr;quoted-printable:;;950 East Paces Ferry Road=0D=0ASuite 2125;Atlanta;Georgia;30326; fn:Scott Keller end:vcard
RE: Out Of Memory error
Dear Martin, For example, in my tomcat.sh, I set the JAVACMD variable to give Java arguments for a heap of 128 mb, with 256mb max. JAVACMD="$JAVA_HOME/bin/java -Xms128m -Xmx256m" This is for IBM JDK 1.3 (Linux). If the same syntax doesn't work with your version of Java, you can see it's documentation for the syntax it wants. Hope this helps, Aleksey -Original Message- From: Martin Mauri [SMTP:[EMAIL PROTECTED]] Sent: Monday, March 19, 2001 11:19 AM To: [EMAIL PROTECTED] Subject: Re: "Out Of Memory" error Dear Aleksey, I've just read the documents you suggested, but as I've never used that command, I'm afraid I didn't quite understand what and how to increase the memory heap, any example? thanks! Martin Dear Martin, Yes. Please see "Tomcat - A Minimalistic User's Guide" at http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/uguide/tomcat_ug.h tm l, the "Modify the Default JVM Settings" section. Yours, Aleksey -Original Message- From: Martin Mauri [SMTP:[EMAIL PROTECTED]] Sent: Monday, March 19, 2001 9:47 AM To: [EMAIL PROTECTED] Subject: "Out Of Memory" error Hi users! I'm trying to retrieve a set of rows from a Postgres database v7.0.3 with its JDBC driver, but after some minutes I get the "Out Of Memory" error. First I thought it could be a database problem, but when I execute the query manually, it works fine. So I think that the problem is the JVM in which the JDBC driver is running, is there anyway to give it more memory? thanks! Lic. Martin O. Mauri Profesion + Auge A.F.J.P Parana 666 - Cap. Federal [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] www.profesi.com.ar http://www.profesi.com.ar
Re: Out of memory error
We got a similar out of memory error. It turned out it was caused by a temp file used by Jbuilder, which was placed in ./tomcat/lib by mistake. - Original Message - From: Jurrius, Mark [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: 01 February 2001 22:04 Subject: Out of memory error - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Out of memory error
Passing -mx256m to your java command would certainly solve your pb, although it is not a solution ;-( --mike "Jurrius, Mark" wrote: Using Apache and Tomcat 3.2 I'm getting an out of memory error. Tomcat was installed on a HP Unix box, version 10.2 and using 128 MB memory. Below is the part of the error message. Is this a thread problem? Thanks in advance. at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Compi led Code) at org.apache.tomcat.service.TcpConnectionThread.run(Compiled Code) at java.lang.Thread.run(Compiled Code) java.lang.OutOfMemoryError at org.apache.tomcat.core.BufferedServletOutputStream.init(Compiled Code) Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]