You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Somik Raha <so...@yahoo.com> on 2001/07/31 04:17:10 UTC

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 Raha
R&D Team
Kizna Corporation
Hiroo ON Bldg. 2F, 5-19-9 Hiroo,
Shibuya-ku, Tokyo, 
150-0012, JAPAN
Phone : +81-3-5475-2646
Fax     : +81-3-5449-4870
**********************************


Re: Out of Memory error - Tomcat 3.2.1

Posted by Somik Raha <so...@yahoo.com>.
Wondering if anyone has any idea about this issue. 
Would appreciate a reply..

Yours,
Somik
  ----- Original Message ----- 
  From: Somik Raha 
  To: tomcat-user@jakarta.apache.org 
  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 Raha
  R&D Team
  Kizna Corporation
  Hiroo ON Bldg. 2F, 5-19-9 Hiroo,
  Shibuya-ku, Tokyo, 
  150-0012, JAPAN
  Phone : +81-3-5475-2646
  Fax     : +81-3-5449-4870
  **********************************