You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Abhijeet Selukar <ab...@cybage.com> on 2003/11/19 14:20:28 UTC

OutOfMemory Error in Catalina

Hi All,
    
    Now a days i am stuck with a problem. I get exceptions in Catalina.out log file when my web application is running on that.

    Is there any utility to find out, from where or from which files the memory is leaking...

For your information, putting the exception here...
****************
java.lang.OutOfMemoryError: unable to create new native thread
 at java.lang.Thread.start(Native Method)
 at com.conducive.kiwi.modules.scheduledjobs.ThreadPoolWorker.<init>(ThreadPoolWorker.java:47)
 at com.conducive.kiwi.modules.scheduledjobs.ThreadPool.<init>(ThreadPool.java:20)
 at com.conducive.kiwi.modules.scheduledjobs.Booker.<init>(Booker.java:84)
 at sun.reflect.GeneratedConstructorAccessor85.newInstance(Unknown Source)
 at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
 at java.lang.Class.newInstance0(Class.java:306)
 at java.lang.Class.newInstance(Class.java:259)
 at org.apache.turbine.services.assemblerbroker.util.java.JavaBaseFactory.getAssembler(JavaBaseFactory.java:94)
 at org.apache.turbine.services.assemblerbroker.util.java.JavaScheduledJobFactory.getAssembler(JavaScheduledJobFactory.java:69)
 at org.apache.turbine.services.assemblerbroker.TurbineAssemblerBrokerService.getAssembler(TurbineAssemblerBrokerService.java:189)
 at org.apache.turbine.modules.ScheduledJobLoader.getInstance(ScheduledJobLoader.java:175)
 at org.apache.turbine.modules.ScheduledJobLoader.exec(ScheduledJobLoader.java:124)
 at org.apache.turbine.services.schedule.WorkerThread.run(WorkerThread.java:108)
 at java.lang.Thread.run(Thread.java:536)
****************

Abhijeet Selukar


Re: OutOfMemory Error in Catalina

Posted by Tim Funk <fu...@joedog.org>.
I bet your going down the wrong path for debugging, from the FAQ:

-- You have too many threads running. Some OS's have a limit to the number of 
threads which may be executed by a single process. (Which is what the JVM 
is.) Refer to your OS docs for more information on how to raise this threshold.

-Tim

Abhijeet Selukar wrote:

> Hi,
> I tried to increase the heap size to 1200 MB in catalina.sh file (JAVA_OPTS="-Xms64m -Xmx1200m"), It didn't work. I was suggested one more way is to increase the server's maximum file descriptor limit. But I don't know where to increase this limit. Apart from that, is there any other way / utility to find out the root cause of OOM in catalina.out log file.
> 
> Abhijeet
> 
>   ----- Original Message ----- 
>   From: Tim Funk 
>   To: Tomcat Users List 
>   Sent: Wednesday, November 19, 2003 7:50 PM
>   Subject: Re: OutOfMemory Error in Catalina
> 
> 
>   It may not be a leak ... http://jakarta.apache.org/tomcat/faq/memory.html#why
> 
>   -Tim
> 
>   Abhijeet Selukar wrote:
>   > Hi All,
>   >     
>   >     Now a days i am stuck with a problem. I get exceptions in Catalina.out log file when my web application is running on that.
>   > 
>   >     Is there any utility to find out, from where or from which files the memory is leaking...
>   > 
>   > For your information, putting the exception here...
>   > ****************
>   > java.lang.OutOfMemoryError: unable to create new native thread
>   >  at java.lang.Thread.start(Native Method)
> 
>  


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


i18n problem

Posted by Fernandez Angil Marian <fe...@nch.it>.
Jakarta i18n does not work with tomcat 4.1, does anyone know the reason. I
am trying desperately trying to get it work through any help is greatly
appreciated
Thanks in advance
Fernandez



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: OutOfMemory Error in Catalina

Posted by Abhijeet Selukar <ab...@cybage.com>.
Hi,
I tried to increase the heap size to 1200 MB in catalina.sh file (JAVA_OPTS="-Xms64m -Xmx1200m"), It didn't work. I was suggested one more way is to increase the server's maximum file descriptor limit. But I don't know where to increase this limit. Apart from that, is there any other way / utility to find out the root cause of OOM in catalina.out log file.

Abhijeet

  ----- Original Message ----- 
  From: Tim Funk 
  To: Tomcat Users List 
  Sent: Wednesday, November 19, 2003 7:50 PM
  Subject: Re: OutOfMemory Error in Catalina


  It may not be a leak ... http://jakarta.apache.org/tomcat/faq/memory.html#why

  -Tim

  Abhijeet Selukar wrote:
  > Hi All,
  >     
  >     Now a days i am stuck with a problem. I get exceptions in Catalina.out log file when my web application is running on that.
  > 
  >     Is there any utility to find out, from where or from which files the memory is leaking...
  > 
  > For your information, putting the exception here...
  > ****************
  > java.lang.OutOfMemoryError: unable to create new native thread
  >  at java.lang.Thread.start(Native Method)


  ---------------------------------------------------------------------
  To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
  For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

Re: OutOfMemory Error in Catalina

Posted by Tim Funk <fu...@joedog.org>.
It may not be a leak ... http://jakarta.apache.org/tomcat/faq/memory.html#why

-Tim

Abhijeet Selukar wrote:
> Hi All,
>     
>     Now a days i am stuck with a problem. I get exceptions in Catalina.out log file when my web application is running on that.
> 
>     Is there any utility to find out, from where or from which files the memory is leaking...
> 
> For your information, putting the exception here...
> ****************
> java.lang.OutOfMemoryError: unable to create new native thread
>  at java.lang.Thread.start(Native Method)


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org