Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

java.lang.OutOfMemoryError in Tomcat

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Hi,
We are running an intranet application using JSP/Java and Tomcat Server. We are getting the following error.



Mar 12, 2007 8:02:48 AM org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run
SEVERE: Caught exception (java.lang.OutOfMemoryError: unable to create new native thread) executing org.apache.tomcat.util.net.TcpWorkerThread@e60a94, terminating thread




Particularly we are getting this error when the Current Thread equals the Busy thread count in manager. And when it reaches the max thread, the server crashes. We even tried to increase size of the heap and also thread size. We could not identify why the server is crashing.

Connection Pool settings:
Maximum active connections: 10
Max idle connection : 4

Thread Settings

Max threads : 53
Min spare threads : 5
Max spare threads : 15

Tomcat is running on HP-UX server. It supports only 64 threads per process. I've even tried setting the heap size to 1gb and tried analyzing the heap using verbosegc option.But nothing helped.


Please help.


Regards,
Firvin
 
Ranch Hand
Posts: 1970
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
cross-post. also in Performance
 
author
Posts: 23951
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Agreed. Please don't cross post. It wastes people's time and effort.

This seems to have only a minor relationship to threads, in that the tasks in the pool didn't handle/report the error. It is likely your tasks didn't catch the error, so the error went all the way to the thread pool manager which finally reported it.

Regardless, please continue this discussion in the other topic.

Henry
 
We don't have time for this. We've gotta save the moon! Or check this out:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
    Bookmark Topic Watch Topic
  • New Topic