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]
out of memory error while load testing
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
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]
out of memory error
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]
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]
out of memory error
This one of the remedies proposed. There is also a bug reported, and a patch for it. Finally you can try swallowOutput=false in your context.xml. Pedro Nevado De: sysdba [EMAIL PROTECTED] Enviado: viernes, 15 de abril de 2005 15:49 Para: Tomcat Users List Asunto: Memory Leak Solved We have struggled with a memory leak in 5.0.28/5.0.30 for months. There have been many complaints about the necessity to restart Tomcat every couple days due to Out of Memory errors, but no solutions that cured it. Well, the suggestion to put the single line: Introspector.flushCaches(); in the destroy method of a servlet in a redeployable app finally solves it. Our Tomcat web server has now run for seven days without an OOM error. The amount of time spent with the Optimizeit profiler trying to locate a nonexistent memory leak in the application code cannot be overestimated. This discovery should be bold red lettered in the docs. Gary Harris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
out of memory error with more than a few sites
Hi, I am getting an out of memory error when I start Tomcat. I read posts on this in the past and followed some instructions to increase by min and max memory settings in catalina.sh. I have 1028 MB on this server and so I increased the min to 128 and the max to 768. The server was working fine when I had a few test sites on it. I am currently using Apache httpd 2.0.52, Tomcat 5.0.28 and mod_jk2 configured with workers2.properties and so that tomcat can listen to apache requests. Apache httpd serves static files and Tomcat is set to work on jsp's with the directive: LocationMatch /*.jspJkUriSet worker ajp13:localhost:8009/LocationMatch The problem showed up when I started migrating some sites over and increased the number of hosts significantly. I created 80 VirtualHosts in httpd.conf and 80 hosts in server.xml. Then I created 80 corresponding directories in webapp, each with META-INF and WEB-INF subdirectories. Even though all these directories and subdirectories are empty, when I start up Tomcat, it tries to deploy them all and throws the out of memory error. If I remove most of the hosts in server.xml, everything runs fine again. My goal is to have these sites each with a large number of static pages and only a few jps's which are Lucene's search.jsp and results.jsp. After this I want to have these sites each has a portal component using Jetspeed 2. I know that if Tomcat was not in the picture this server would be able to handle many more sites, but is 80 hosts with only a few jsps in each too much for Tomcat on an average modern Web server? How can I optimize this? Below I have included code snippets of my httpd.conf and server.xml and workers2.properties. Thanks. #-- #httpd.conf snippet #-- VirtualHost *:80 DocumentRoot /opt/jakarta-tomcat-5.0.28/webapps/sitename ServerName sitename.com ServerAlias www.sitename.com DirectoryIndex index.html index.jsp index.cgi index.php CustomLog logs/sitename_access_log combined ErrorLog logs/sitename_error_log LocationMatch /*.jsp JkUriSet worker ajp13:localhost:8009 /LocationMatch ScriptAlias /WEB-INF/ /opt/jakarta-tomcat-5.0.28/webapps/sitename/WEB-INF/ Directory /opt/jakarta-tomcat-5.0.28/webapps/sitename/WEB-INF AllowOverride None Options None Order allow,deny Allow from all /Directory ScriptAlias /META-INF/ /opt/jakarta-tomcat-5.0.28/webapps/sitename/META-INF/ Directory /opt/jakarta-tomcat-5.0.28/webapps/sitename/META-INF AllowOverride None Options None Order allow,deny Allow from all /Directory Directory /opt/jakarta-tomcat-5.0.28/webapps/sitename/logs AllowOverride AuthConfig /Directory ErrorDocument 404 http://www.sitename.com/errorpages/404.html /VirtualHost #-- #server.xml snippet #-- Host name=sitename.com debug=0 appBase=webapps unpackWARs=true Aliaswww.sitename.com/Alias Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=sitename. suffix=.log timestamp=true/ Context path= docBase=sitename debug=0 reloadable=true/ /Host #--- #workers2.properties snippet #--- [shm] info=Scoreboard. Requried for reconfiguration and status with multiprocess servers. file=anon # Defines a load balancer named lb. Use even if you only have one =machine. [lb:lb] # Example socket channel, override port and host. [channel.socket:localhost:8009] port=8009 #host=localhost host=127.0.0.1 # define the worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 group=lb # Uri mapping # Map the Tomcat examples webapp to the Web server uri space [uri:/examples/*] group=lb [status:] info=Status worker, displays runtime information [uri:/jkstatus/*] info=The Tomcat /jkstatus handler group=status: _ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ - 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]
help with out of memory error
Is this just a really ambiguous error message, or are there some specific places I can be hunting for an issue: Nov 22, 2004 3:53:42 PM org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run SEVERE: Caught exception executing [EMAIL PROTECTED], terminating thread java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start(Native Method) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.init(ThreadPool.java:582) at org.apache.tomcat.util.threads.ThreadPool.openThreads(ThreadPool.java:460) at org.apache.tomcat.util.threads.ThreadPool.runIt(ThreadPool.java:293) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:536) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619) at java.lang.Thread.run(Thread.java:534) Less than half of the 3GB of RAM on our Win2000 box was in use, and only about 300MB was in use by Tomcat, and the site was just giving us a The page cannot be displayed error when we would try to log into it, and yet, the database was being updated by the web application (apparently, one or more users had had a long operation started). In other words, it seemed like Tomcat/the web app was partially running, but not letting anyone else in, or something like that. How do we troubleshoot this? We allocate about 1.5GB to the JVM (for initial and max heap size). Thanks, Stephen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: help with out of memory error
Have you looked at this page? http://jakarta.apache.org/tomcat/faq/memory.html -Original Message- From: Stephen Charles Huey [mailto:[EMAIL PROTECTED] Sent: November 22, 2004 4:50 PM To: Tomcat User Subject: help with out of memory error Is this just a really ambiguous error message, or are there some specific places I can be hunting for an issue: Nov 22, 2004 3:53:42 PM org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run SEVERE: Caught exception executing [EMAIL PROTECTED], terminating thread java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start(Native Method) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.init(ThreadPool. java:582) at org.apache.tomcat.util.threads.ThreadPool.openThreads(ThreadPool.java:460) at org.apache.tomcat.util.threads.ThreadPool.runIt(ThreadPool.java:293) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:536) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:619) at java.lang.Thread.run(Thread.java:534) Less than half of the 3GB of RAM on our Win2000 box was in use, and only about 300MB was in use by Tomcat, and the site was just giving us a The page cannot be displayed error when we would try to log into it, and yet, the database was being updated by the web application (apparently, one or more users had had a long operation started). In other words, it seemed like Tomcat/the web app was partially running, but not letting anyone else in, or something like that. How do we troubleshoot this? We allocate about 1.5GB to the JVM (for initial and max heap size). Thanks, Stephen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:41a25ef9128851503898241!
RE: help with out of memory error
I've seen most of that info before, but thanks for pointing it out. I'm really kind of clueless about what the problem could be. When I look at the Virtual Memory for Tomcat in the Task Manager, I see about 1.6 GB right now (whereas regular memory for Tomcat is about 300 MB). For Java, regular memory is currently 11 MB and Virtual Memory is 16 MB in the production environment, but I guess none of that info is very significant. And as I said, I've never seen the memory usage very high when we've run into this problem. Can you see anything wrong with our installation of Tomcat as a service down below? Thanks... D:\tomcat\bin\tomcat.exe -install Apache_Tomcat C:\j2sdk1.4.2_04\jre\bin\client\jvm.dll -server -Xmx1536m -Xms1536m -Djava.class.path=D:\Tomcat\bin\bootstrap.jar -Dcatalina.home=D:\Tomcat -Djava.endorsed.dirs=D:\Tomcat\common\endorsed -start org.apache.catalina.startup.BootstrapService -params start -stop org.apache.catalina.startup.BootstrapService -params stop -out D:\Tomcat\logs\stdout.log -err D:\Tomcat\logs\stderr.log - Original message - From: Phillip Qin [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Date: Mon, 22 Nov 2004 16:56:25 -0500 Subject: RE: help with out of memory error Have you looked at this page? http://jakarta.apache.org/tomcat/faq/memory.html -Original Message- From: Stephen Charles Huey [mailto:[EMAIL PROTECTED] Sent: November 22, 2004 4:50 PM To: Tomcat User Subject: help with out of memory error Is this just a really ambiguous error message, or are there some specific places I can be hunting for an issue: Nov 22, 2004 3:53:42 PM org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run SEVERE: Caught exception executing [EMAIL PROTECTED], terminating thread java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start(Native Method) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.init(ThreadPool. java:582) at org.apache.tomcat.util.threads.ThreadPool.openThreads(ThreadPool.java:460) at org.apache.tomcat.util.threads.ThreadPool.runIt(ThreadPool.java:293) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:536) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:619) at java.lang.Thread.run(Thread.java:534) Less than half of the 3GB of RAM on our Win2000 box was in use, and only about 300MB was in use by Tomcat, and the site was just giving us a The page cannot be displayed error when we would try to log into it, and yet, the database was being updated by the web application (apparently, one or more users had had a long operation started). In other words, it seemed like Tomcat/the web app was partially running, but not letting anyone else in, or something like that. How do we troubleshoot this? We allocate about 1.5GB to the JVM (for initial and max heap size). Thanks, Stephen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:41a25ef9128851503898241! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: help with out of memory error
Greetings. I would suggest using the following switch in your startup - you can research and tweak as required: -Xss512k I have had the same problem you are having on a number of occassions - where the JVM mem usage is NOT high, and the machine apparently has enough RAM allocated. After extensive and mostly fruitless investigation I found that on Windows, each thread created in Java has a native thread created. Now apparently, the default thread stack size on the native side on Windows is 1MB per thread. Thus, I tried setting the thread stack size down (using the -Xss512k switch) to 512 kb per thread (thus in theory doubling my total native thread count maximum?). I must admit that this has helped a great deal! I have not seen that error for about two weeks now and the servers are as busy as they were before. I do not believe that this is a definitive answer to the question/problem - as I believe that this kind of memory problem is related to so many variable problems that there are a number of tweaks you need to work out and apply to solve it in your environment. I would suggest you try that switch - also look at other potential helpfuls in the VM option flags as well as potentially compiling with fork set to true... Hope that helps. Regards, Carl -Original Message- From: Stephen Charles Huey [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 23, 2004 12:56 AM To: Tomcat Users List Subject: RE: help with out of memory error I've seen most of that info before, but thanks for pointing it out. I'm really kind of clueless about what the problem could be. When I look at the Virtual Memory for Tomcat in the Task Manager, I see about 1.6 GB right now (whereas regular memory for Tomcat is about 300 MB). For Java, regular memory is currently 11 MB and Virtual Memory is 16 MB in the production environment, but I guess none of that info is very significant. And as I said, I've never seen the memory usage very high when we've run into this problem. Can you see anything wrong with our installation of Tomcat as a service down below? Thanks... D:\tomcat\bin\tomcat.exe -install Apache_Tomcat C:\j2sdk1.4.2_04\jre\bin\client\jvm.dll -server -Xmx1536m -Xms1536m -Djava.class.path=D:\Tomcat\bin\bootstrap.jar -Dcatalina.home=D:\Tomcat -Djava.endorsed.dirs=D:\Tomcat\common\endorsed -start org.apache.catalina.startup.BootstrapService -params start -stop org.apache.catalina.startup.BootstrapService -params stop -out D:\Tomcat\logs\stdout.log -err D:\Tomcat\logs\stderr.log - Original message - From: Phillip Qin [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Date: Mon, 22 Nov 2004 16:56:25 -0500 Subject: RE: help with out of memory error Have you looked at this page? http://jakarta.apache.org/tomcat/faq/memory.html -Original Message- From: Stephen Charles Huey [mailto:[EMAIL PROTECTED] Sent: November 22, 2004 4:50 PM To: Tomcat User Subject: help with out of memory error Is this just a really ambiguous error message, or are there some specific places I can be hunting for an issue: Nov 22, 2004 3:53:42 PM org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run SEVERE: Caught exception executing [EMAIL PROTECTED], terminating thread java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start(Native Method) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.init(ThreadPool. java:582) at org.apache.tomcat.util.threads.ThreadPool.openThreads(ThreadPool.java:460) at org.apache.tomcat.util.threads.ThreadPool.runIt(ThreadPool.java:293) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:536) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:619) at java.lang.Thread.run(Thread.java:534) Less than half of the 3GB of RAM on our Win2000 box was in use, and only about 300MB was in use by Tomcat, and the site was just giving us a The page cannot be displayed error when we would try to log into it, and yet, the database was being updated by the web application (apparently, one or more users had had a long operation started). In other words, it seemed like Tomcat/the web app was partially running, but not letting anyone else in, or something like that. How do we troubleshoot this? We allocate about 1.5GB to the JVM (for initial and max heap size). Thanks, Stephen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:41a25ef9128851503898241! - 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: help with out of memory error
Oh another thing: C:\j2sdk1.4.2_04\jre\bin\client\jvm.dll Should read: C:\j2sdk1.4.2_04\jre\bin\server\jvm.dll So as not to cause a problem with the -server switch Carl -Original Message- From: Stephen Charles Huey [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 23, 2004 12:56 AM To: Tomcat Users List Subject: RE: help with out of memory error I've seen most of that info before, but thanks for pointing it out. I'm really kind of clueless about what the problem could be. When I look at the Virtual Memory for Tomcat in the Task Manager, I see about 1.6 GB right now (whereas regular memory for Tomcat is about 300 MB). For Java, regular memory is currently 11 MB and Virtual Memory is 16 MB in the production environment, but I guess none of that info is very significant. And as I said, I've never seen the memory usage very high when we've run into this problem. Can you see anything wrong with our installation of Tomcat as a service down below? Thanks... D:\tomcat\bin\tomcat.exe -install Apache_Tomcat C:\j2sdk1.4.2_04\jre\bin\client\jvm.dll -server -Xmx1536m -Xms1536m -Djava.class.path=D:\Tomcat\bin\bootstrap.jar -Dcatalina.home=D:\Tomcat -Djava.endorsed.dirs=D:\Tomcat\common\endorsed -start org.apache.catalina.startup.BootstrapService -params start -stop org.apache.catalina.startup.BootstrapService -params stop -out D:\Tomcat\logs\stdout.log -err D:\Tomcat\logs\stderr.log - Original message - From: Phillip Qin [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Date: Mon, 22 Nov 2004 16:56:25 -0500 Subject: RE: help with out of memory error Have you looked at this page? http://jakarta.apache.org/tomcat/faq/memory.html -Original Message- From: Stephen Charles Huey [mailto:[EMAIL PROTECTED] Sent: November 22, 2004 4:50 PM To: Tomcat User Subject: help with out of memory error Is this just a really ambiguous error message, or are there some specific places I can be hunting for an issue: Nov 22, 2004 3:53:42 PM org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run SEVERE: Caught exception executing [EMAIL PROTECTED], terminating thread java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start(Native Method) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.init(ThreadPool. java:582) at org.apache.tomcat.util.threads.ThreadPool.openThreads(ThreadPool.java:460) at org.apache.tomcat.util.threads.ThreadPool.runIt(ThreadPool.java:293) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:536) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:619) at java.lang.Thread.run(Thread.java:534) Less than half of the 3GB of RAM on our Win2000 box was in use, and only about 300MB was in use by Tomcat, and the site was just giving us a The page cannot be displayed error when we would try to log into it, and yet, the database was being updated by the web application (apparently, one or more users had had a long operation started). In other words, it seemed like Tomcat/the web app was partially running, but not letting anyone else in, or something like that. How do we troubleshoot this? We allocate about 1.5GB to the JVM (for initial and max heap size). Thanks, Stephen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:41a25ef9128851503898241! - 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: Urgent! Tomcat4 closed giving Out of Memory Error
. Then what could be the reason of the error? By the way, the Out of Memory error didn't appear all the time. Sometimes there was just no response without any error message. Do you know where I can get more detailed bug files? Thank you very much. Qi On Sat, 6 Dec 2003, Tim Funk wrote: When you get java.lang.OutOfMemoryError: unable to create new native thread it means you are running into an operating system limit. You can give the JVM 1 Exabyte of memory and you'll still get this error. Look at the kernel parameters for your machine and the following limits: 1) Threads allowable on the system 2) Threads run by a user 3) Threads run by a process 4) File handles per process 5) File handles per user Use your OS manual or Google to tweak these parameters. http://jakarta.apache.org/tomcat/faq/memory.html#why -Tim qi zhang wrote: Hi, I have stunk on this problem for almost 2 weeks. :-( In these two weeks, I have tried many methods, but it still doesn't work. I built a system to run TPCW benchmark. One web and application server, with tomcat4.0 running, one database with mysql4.0 running on it and several client machines. The Jave version is j2sdk1.4.0_03. The system worked perfect under light load. But when the number of clients exceeded some number (like 600), the tomcat4 didn't work anymore. I checked catalina.out. Sometimes no error message appear, while in some time it appeared the error: SEVERE: Caught exception executing [EMAIL PROTECTED], terminating thread java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start(Native Method) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.init(ThreadPool.java:497) at - 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: Urgent! Tomcat4 closed giving Out of Memory Error
Look at the open files - it is 9182. That IS already pretty high, but you may be hitting that limit since in Unix, everything is a file. Sockets, etc. On Linux, is there a way in the JVM to tell the difference between memory given to the new generation, old generation, and permanent generation in the JVM? There were users on this list posting weird OutOfMemory errors last week that were doing class reloading, and the permanent generation was filling up even though there was plenty of space in the old and new gen. Of course, I think these comments only apply to a 1.4.x JVM. Does your code do funky stuff with the classloaders, or are you reloading your application in Tomcat's manager? (or changing web.xml, which would cause reloads??) Have you profiled your application to find any memory leaks? [EMAIL PROTECTED] 12/6/03 11:45:27 AM I am using Linux2.4.20-smp. I think the limits for the entire system are not problem: cat /proc/sys/kernel/threads-max 14336 cat /proc/sys/fs/file-max 209708 cat /proc/sys/fs/file-nr 22311366209708 ulimit -a core file size(blocks, -c) 0 data seg size (kbytes, -d) unlimited file size (blocks, -f) unlimited max locked memory (kbytes, -l) unlimited max memory size (kbytes, -m) unlimited open files(-n) 9182 pipe size (512 bytes, -p) 8 stack size(kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes(-u) 7168 virtual memory(kbytes, -v) unlimited But I can't find where the limits for each process/user are. One message found from google said PTHREAD_THREADS_MAX could be the max thread count per process. In my /usr/include/bits/local_lim.h, I have /* The number of threads per process. */ #define _POSIX_THREAD_THREADS_MAX 64 /* This is the value this implementation supports. */ #define PTHREAD_THREADS_MAX 16384 16384 is large enough, I believe. Then what could be the reason of the error? By the way, the Out of Memory error didn't appear all the time. Sometimes there was just no response without any error message. Do you know where I can get more detailed bug files? Thank you very much. Qi On Sat, 6 Dec 2003, Tim Funk wrote: When you get java.lang.OutOfMemoryError: unable to create new native thread it means you are running into an operating system limit. You can give the JVM 1 Exabyte of memory and you'll still get this error. Look at the kernel parameters for your machine and the following limits: 1) Threads allowable on the system 2) Threads run by a user 3) Threads run by a process 4) File handles per process 5) File handles per user Use your OS manual or Google to tweak these parameters. http://jakarta.apache.org/tomcat/faq/memory.html#why -Tim qi zhang wrote: Hi, I have stunk on this problem for almost 2 weeks. :-( In these two weeks, I have tried many methods, but it still doesn't work. I built a system to run TPCW benchmark. One web and application server, with tomcat4.0 running, one database with mysql4.0 running on it and several client machines. The Jave version is j2sdk1.4.0_03. The system worked perfect under light load. But when the number of clients exceeded some number (like 600), the tomcat4 didn't work anymore. I checked catalina.out. Sometimes no error message appear, while in some time it appeared the error: SEVERE: Caught exception executing [EMAIL PROTECTED], terminating thread java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start(Native Method) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.init(ThreadPool.java:497) at - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Qi Zhang, Ph.D Student Department of Computer Science, College of William and Mary P.O. Box 8795 Williamsburg, VA 23187-8795 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Jeff Tulley ([EMAIL PROTECTED]) (801)861-5322 Novell, Inc., The Leading Provider of Net Business Solutions http://www.novell.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Urgent! Tomcat4 closed giving Out of Memory Error
Hi, I have stunk on this problem for almost 2 weeks. :-( In these two weeks, I have tried many methods, but it still doesn't work. I built a system to run TPCW benchmark. One web and application server, with tomcat4.0 running, one database with mysql4.0 running on it and several client machines. The Jave version is j2sdk1.4.0_03. The system worked perfect under light load. But when the number of clients exceeded some number (like 600), the tomcat4 didn't work anymore. I checked catalina.out. Sometimes no error message appear, while in some time it appeared the error: SEVERE: Caught exception executing [EMAIL PROTECTED], terminating thread java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start(Native Method) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.init(ThreadPool.java:497) at org.apache.tomcat.util.threads.ThreadPool.openThreads(ThreadPool.java:387) at org.apache.tomcat.util.threads.ThreadPool.runIt(ThreadPool.java:226) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:503) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530) at java.lang.Thread.run(Thread.java:536) But my tomcat4 is running with option -server -Xmx1536M. (I also tried to change -Xss and -Xms, which didn't help.) And the actual memory utilization was less than 40%. (I have 2GB memory in this machine.) I also changed 'ulimit -n 8192' and server.xml : !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8080 minProcessors=5 maxProcessors=1750 enableLookups=true redirectPort=8443 acceptCount=1000 debug=0 connectionTimeout=-1 useURIValidationHack=false disableUploadTimeout=true / !-- Note : To disable connection timeouts, set connectionTimeout value to -1 -- Why this error happened? I was trying to use strace -f -p to trace the system call, but it only gave me one line accept(13, and waited at that point. Did anyone meet this problem before? Can I get some detailed error log besided catalina.out? I really appreciate your kind help. Qi -- Qi Zhang, Ph.D Student Department of Computer Science, College of William and Mary P.O. Box 8795 Williamsburg, VA 23187-8795 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Urgent! Tomcat4 closed giving Out of Memory Error
When you get java.lang.OutOfMemoryError: unable to create new native thread it means you are running into an operating system limit. You can give the JVM 1 Exabyte of memory and you'll still get this error. Look at the kernel parameters for your machine and the following limits: 1) Threads allowable on the system 2) Threads run by a user 3) Threads run by a process 4) File handles per process 5) File handles per user Use your OS manual or Google to tweak these parameters. http://jakarta.apache.org/tomcat/faq/memory.html#why -Tim qi zhang wrote: Hi, I have stunk on this problem for almost 2 weeks. :-( In these two weeks, I have tried many methods, but it still doesn't work. I built a system to run TPCW benchmark. One web and application server, with tomcat4.0 running, one database with mysql4.0 running on it and several client machines. The Jave version is j2sdk1.4.0_03. The system worked perfect under light load. But when the number of clients exceeded some number (like 600), the tomcat4 didn't work anymore. I checked catalina.out. Sometimes no error message appear, while in some time it appeared the error: SEVERE: Caught exception executing [EMAIL PROTECTED], terminating thread java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start(Native Method) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.init(ThreadPool.java:497) at - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Urgent! Tomcat4 closed giving Out of Memory Error
I am using Linux2.4.20-smp. I think the limits for the entire system are not problem: cat /proc/sys/kernel/threads-max 14336 cat /proc/sys/fs/file-max 209708 cat /proc/sys/fs/file-nr 22311366209708 ulimit -a core file size(blocks, -c) 0 data seg size (kbytes, -d) unlimited file size (blocks, -f) unlimited max locked memory (kbytes, -l) unlimited max memory size (kbytes, -m) unlimited open files(-n) 9182 pipe size (512 bytes, -p) 8 stack size(kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes(-u) 7168 virtual memory(kbytes, -v) unlimited But I can't find where the limits for each process/user are. One message found from google said PTHREAD_THREADS_MAX could be the max thread count per process. In my /usr/include/bits/local_lim.h, I have /* The number of threads per process. */ #define _POSIX_THREAD_THREADS_MAX 64 /* This is the value this implementation supports. */ #define PTHREAD_THREADS_MAX 16384 16384 is large enough, I believe. Then what could be the reason of the error? By the way, the Out of Memory error didn't appear all the time. Sometimes there was just no response without any error message. Do you know where I can get more detailed bug files? Thank you very much. Qi On Sat, 6 Dec 2003, Tim Funk wrote: When you get java.lang.OutOfMemoryError: unable to create new native thread it means you are running into an operating system limit. You can give the JVM 1 Exabyte of memory and you'll still get this error. Look at the kernel parameters for your machine and the following limits: 1) Threads allowable on the system 2) Threads run by a user 3) Threads run by a process 4) File handles per process 5) File handles per user Use your OS manual or Google to tweak these parameters. http://jakarta.apache.org/tomcat/faq/memory.html#why -Tim qi zhang wrote: Hi, I have stunk on this problem for almost 2 weeks. :-( In these two weeks, I have tried many methods, but it still doesn't work. I built a system to run TPCW benchmark. One web and application server, with tomcat4.0 running, one database with mysql4.0 running on it and several client machines. The Jave version is j2sdk1.4.0_03. The system worked perfect under light load. But when the number of clients exceeded some number (like 600), the tomcat4 didn't work anymore. I checked catalina.out. Sometimes no error message appear, while in some time it appeared the error: SEVERE: Caught exception executing [EMAIL PROTECTED], terminating thread java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start(Native Method) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.init(ThreadPool.java:497) at - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Qi Zhang, Ph.D Student Department of Computer Science, College of William and Mary P.O. Box 8795 Williamsburg, VA 23187-8795 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Urgent! Tomcat4 closed giving Out of Memory Error
I would hunt the archives, I did a search for outofmemoryerror native and saw this - I am sure there are more similar threads with this issue: http://marc.theaimsgroup.com/?l=tomcat-userm=105535455830487w=2 If _POSIX_THREAD_THREADS_MAX=64 - then you would have problems since that means tomcat can only have 64 threads at one time. Tomcat is a single process living under the JVM. (But then again - this is Linux and the process vs thread model is sometimes a little strange) (I don't use tomcat on linux too much so my trouble shooting skills there are iffy) -Tim qi zhang wrote: I am using Linux2.4.20-smp. I think the limits for the entire system are not problem: cat /proc/sys/kernel/threads-max 14336 cat /proc/sys/fs/file-max 209708 cat /proc/sys/fs/file-nr 22311366209708 ulimit -a core file size(blocks, -c) 0 data seg size (kbytes, -d) unlimited file size (blocks, -f) unlimited max locked memory (kbytes, -l) unlimited max memory size (kbytes, -m) unlimited open files(-n) 9182 pipe size (512 bytes, -p) 8 stack size(kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes(-u) 7168 virtual memory(kbytes, -v) unlimited But I can't find where the limits for each process/user are. One message found from google said PTHREAD_THREADS_MAX could be the max thread count per process. In my /usr/include/bits/local_lim.h, I have /* The number of threads per process. */ #define _POSIX_THREAD_THREADS_MAX 64 /* This is the value this implementation supports. */ #define PTHREAD_THREADS_MAX 16384 16384 is large enough, I believe. Then what could be the reason of the error? By the way, the Out of Memory error didn't appear all the time. Sometimes there was just no response without any error message. Do you know where I can get more detailed bug files? Thank you very much. Qi On Sat, 6 Dec 2003, Tim Funk wrote: When you get java.lang.OutOfMemoryError: unable to create new native thread it means you are running into an operating system limit. You can give the JVM 1 Exabyte of memory and you'll still get this error. Look at the kernel parameters for your machine and the following limits: 1) Threads allowable on the system 2) Threads run by a user 3) Threads run by a process 4) File handles per process 5) File handles per user Use your OS manual or Google to tweak these parameters. http://jakarta.apache.org/tomcat/faq/memory.html#why -Tim qi zhang wrote: Hi, I have stunk on this problem for almost 2 weeks. :-( In these two weeks, I have tried many methods, but it still doesn't work. I built a system to run TPCW benchmark. One web and application server, with tomcat4.0 running, one database with mysql4.0 running on it and several client machines. The Jave version is j2sdk1.4.0_03. The system worked perfect under light load. But when the number of clients exceeded some number (like 600), the tomcat4 didn't work anymore. I checked catalina.out. Sometimes no error message appear, while in some time it appeared the error: SEVERE: Caught exception executing [EMAIL PROTECTED], terminating thread java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start(Native Method) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.init(ThreadPool.java:497) at - 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]
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]
Running tomcat 4.0.4 with j2sdk1.4.1 on redhat 7.3 dual processror gives out of memory error in syslog messages
Hi, I am sorry, Iam posting this question again, as I didn't get any response for this question I am running tomcat 4.0.4 on redhat 7.3 dual processor machine(2-4-18-3SMP) with j2sdk1.4.1 for my web application, The problem is after couple of hours(6 or 7 hours after 7 or more users hit the system), tomcat crashes and I ened up finding kernel out of memory killing java process in syslog messages(/var/log/messages) It is not the problem with java heap size I think The same web application is running successfully on tomcat 4.0.4 on redat 7.3 (2-4-18-3) single cpu machine with j2sdk1.4.0 Here I didn't understand if multi processor redhat 7.3 matters with j2sdk1.4.1 Any help greatly apprecited Thks --Venkat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Running tomcat 4.0.4 with j2sdk1.4.1 on redhat 7.3 dual processror gives out of memory error in syslog messages
Hi, I am running tomcat 4.0.4 on redhat 7.3 dual processor machine(2-4-18-3SMP) with j2sdk1.4.1 for my web application, The problem is after couple of hours(6 or 7 hours after 7 or more users hit the system), tomcat crashes and I ened up finding kernel out of memory killing java process in syslog messages(/var/log/messages) It is not the problem with java heap size I think The same web application is running successfully on tomcat 4.0.4 on redat 7.3 (2-4-18-3) single cpu machine with j2sdk1.4.0 Here I didn't understand if multi processor redhat 7.3 matters with j2sdk1.4.1 Any help greatly apprecited Thks --Venkat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[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]
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
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]
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.java:1 51) Please help. Pat
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
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:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
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]
Out of Memory error - plz help
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]
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]
Out of Memory Error - plz help
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]
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]
Out Of Memory Error
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]
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
Out of Memory error - Tomcat 3.2.1
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
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: Help!! Tomcat-3.2.2 Out of Memory Error
On Tuesday 19 June 2001 23:01, John Hardin wrote: Helo John, Thank you very much. I drived these magic numbers from man pages of java (i just doubled the default values), recommended by our java programmers. After i set the heap size of -Xms150m -Xmx300m, my tomcat is happily serving without any error. Thanks a lot for tomcat other mailing list users , Thomas Why are you explicitly setting the min/max heap sizes so small (i.e., -Xms8m, -Xmx64m)? Given you have so much RAM on your server, I'd think you'd want to allocate a heap size on the order of *100s* of Megs (e.g., -Xms200m -Xmx400m), not merely 8-64. Thoughts? -jwh -Original Message- From: Thomas S [mailto:[EMAIL PROTECTED]] Sent: Monday, June 18, 2001 11:05 PM To: [EMAIL PROTECTED] Subject: Help!! Tomcat-3.2.2 Out of Memory Error Hello, Please help me Config:- Apache-1.3.14 +Tomcat 3.2.2 with mod_jk and Sun JDK 1.3 in RH-Linux 7.0 I am getting out of memory error in the tomcat tc logs. Tomcat servers servlets and jsp with jdbc connections. This problem seems to be periodic after 12-13 hrs of tomcat restart. We are using Dell Webapps server with 1G memory installed. I could notice a free memory of ~200MB when tomcat spits this error. I have gone through the tomcat mailing list, tried setting -Xms8m -Xmx64m as tomcat options, but vain. After this error, tomcat is not able to serve any sevlets, and not able to controle the jdbc connection, hence the jdbc connection goes out of control , results spawning n. no of connections to database. Is this a caching over flow problem? or JVM problem? Thanks in Advance Thomas Systems Engineer Error: --- 2001-06-19 08:11:53 - Ctx( /xxx ): Exception in: R( /xxx + /servlet/xxx + null) - java.lang.OutOfMemoryError no stack trace available 2001-06-19 08:14:20 - Ctx( /xxx ): Exception in: R( /xxx+ /servlet/xxx + null) - java.lang.OutOfMemoryError no stack trace available 2001-06-19 08:15:55 - Ctx( /xx ): Exception in: R( /xx + /servlets/xxx + null) - java.lang.OutOfMemoryError no stack trace available --
RE: Help!! Tomcat-3.2.2 Out of Memory Error
Why are you explicitly setting the min/max heap sizes so small (i.e., -Xms8m, -Xmx64m)? Given you have so much RAM on your server, I'd think you'd want to allocate a heap size on the order of *100s* of Megs (e.g., -Xms200m -Xmx400m), not merely 8-64. Thoughts? -jwh -Original Message- From: Thomas S [mailto:[EMAIL PROTECTED]] Sent: Monday, June 18, 2001 11:05 PM To: [EMAIL PROTECTED] Subject: Help!! Tomcat-3.2.2 Out of Memory Error Hello, Please help me Config:- Apache-1.3.14 +Tomcat 3.2.2 with mod_jk and Sun JDK 1.3 in RH-Linux 7.0 I am getting out of memory error in the tomcat tc logs. Tomcat servers servlets and jsp with jdbc connections. This problem seems to be periodic after 12-13 hrs of tomcat restart. We are using Dell Webapps server with 1G memory installed. I could notice a free memory of ~200MB when tomcat spits this error. I have gone through the tomcat mailing list, tried setting -Xms8m -Xmx64m as tomcat options, but vain. After this error, tomcat is not able to serve any sevlets, and not able to controle the jdbc connection, hence the jdbc connection goes out of control , results spawning n. no of connections to database. Is this a caching over flow problem? or JVM problem? Thanks in Advance Thomas Systems Engineer Error: --- 2001-06-19 08:11:53 - Ctx( /xxx ): Exception in: R( /xxx + /servlet/xxx + null) - java.lang.OutOfMemoryError no stack trace available 2001-06-19 08:14:20 - Ctx( /xxx ): Exception in: R( /xxx+ /servlet/xxx + null) - java.lang.OutOfMemoryError no stack trace available 2001-06-19 08:15:55 - Ctx( /xx ): Exception in: R( /xx + /servlets/xxx + null) - java.lang.OutOfMemoryError no stack trace available --
Help!! Tomcat-3.2.2 Out of Memory Error
Hello, Please help me Config:- Apache-1.3.14 +Tomcat 3.2.2 with mod_jk and Sun JDK 1.3 in RH-Linux 7.0 I am getting out of memory error in the tomcat tc logs. Tomcat servers servlets and jsp with jdbc connections. This problem seems to be periodic after 12-13 hrs of tomcat restart. We are using Dell Webapps server with 1G memory installed. I could notice a free memory of ~200MB when tomcat spits this error. I have gone through the tomcat mailing list, tried setting -Xms8m -Xmx64m as tomcat options, but vain. After this error, tomcat is not able to serve any sevlets, and not able to controle the jdbc connection, hence the jdbc connection goes out of control , results spawning n. no of connections to database. Is this a caching over flow problem? or JVM problem? Thanks in Advance Thomas Systems Engineer Error: --- 2001-06-19 08:11:53 - Ctx( /xxx ): Exception in: R( /xxx + /servlet/xxx + null) - java.lang.OutOfMemoryError no stack trace available 2001-06-19 08:14:20 - Ctx( /xxx ): Exception in: R( /xxx+ /servlet/xxx + null) - java.lang.OutOfMemoryError no stack trace available 2001-06-19 08:15:55 - Ctx( /xx ): Exception in: R( /xx + /servlets/xxx + null) - java.lang.OutOfMemoryError no stack trace available --
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. MauriProfesion + Auge A.F.J.PParana 666 - Cap. Federal[EMAIL PROTECTED]www.profesi.com.ar
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. MauriProfesion + Auge A.F.J.PParana 666 - Cap. Federal[EMAIL PROTECTED]www.profesi.com.ar
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
Out of memory error
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]
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]