• Post Reply 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: unable to create new native thread

 
Greenhorn
Posts: 20
Tomcat Server Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello developers!!


i am using Linux,jakarta-tomcat-5.0.16,oracle database.

last day when i find this problem


2011-02-19 18:16:59 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start0(Native Method)
at java.lang.Thread.start(Thread.java:574)
at com.telemune.dbutilities.ConnectionPool.getConnection(Unknown Source)
at com.telemune.crbt.webif.Authenticate.authenticateMobile(Unknown Source)
at org.apache.jsp.welcomelogin_jsp._jspService(welcomelogin_jsp.java:98)



i restarted the tomcat and problem was solved.(i found this solution somewhere).
there was also written that modify the values of XMS and XMX so i changed the values from "Xms256m -Xmx512m" to "Xms256m -Xmx1024m"

export CATALINA_OPTS="-Xms256m -Xmx1024m"
export JAVA_OPTS="-Xms256m -Xmx1024m"




but after two days i got same problem

as tomcat restarting is not a good solution as web interface have many users.


i tried all techniques still same problem
please provide me a solution so that in future i did not get this problem.



waiting for your response


thanks










 
Ranch Hand
Posts: 329
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

i restarted the tomcat and problem was solved.(i found this solution somewhere).


Is not a solution..
Looks like you have memory leak. Verify your application for that,..
 
ripu sudan
Greenhorn
Posts: 20
Tomcat Server Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Shankar Tanikella wrote:

i restarted the tomcat and problem was solved.(i found this solution somewhere).


Is not a solution..
Looks like you have memory leak. Verify your application for that,..










Thanks a lot "Shankar Tanikella"
memory leak was actual problem,and solved now
 
reply
    Bookmark Topic Watch Topic
  • New Topic