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