Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

java.lang.OutOfMemoryError: unable to create new native thread  RSS feed

 
ripu sudan
Greenhorn
Posts: 20
Java Linux Tomcat Server
  • Mark post as helpful
  • send pies
  • 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










 
Shankar Tanikella
Ranch Hand
Posts: 329
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • 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
Java Linux Tomcat Server
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!