0 Replies Latest reply on Feb 8, 2005 10:48 PM by 807581

    Sun One App server - failing on a stress test on a Struts application

    807581
      I am getting the following stack trace when our sample struts application is stress tested with 5 concurrent users
      Sun ONE Application Server - HTTP Status 500 Error
      The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.

      Type: Exception Report

      Message: Internal Server Error

      Exception

      javax.servlet.ServletException: Servlet execution threw an exception
           at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:742)
           at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
           at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
           at java.security.AccessController.doPrivileged(Native Method)
           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
           at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
           at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
           at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
           at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:158)
           at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)



      Root Cause
      java.lang.OutOfMemoryError: unable to create new native thread
           at java.lang.Thread.start(Native Method)
           at com.iplanet.ias.util.threadpool.FastThreadPool$ThreadPoolThread.(FastThreadPool.java:224)
           at com.iplanet.ias.util.threadpool.FastThreadPool.start(FastThreadPool.java:99)
           at com.sun.corba.ee.internal.corba.ORB.parseProperties(ORB.java:1684)
           at com.sun.corba.ee.internal.POA.POAORB.parseProperties(POAORB.java:275)
           at com.sun.corba.ee.internal.Interceptors.PIORB.parseProperties(PIORB.java:345)
           at com.sun.corba.ee.internal.TxPOA.TxPIORB.parseProperties(TxPIORB.java:117)
           at com.sun.corba.ee.internal.corba.ORB.set_parameters(ORB.java:522)
           at com.sun.corba.ee.internal.POA.POAORB.set_parameters(POAORB.java:157)
           at com.sun.corba.ee.internal.Interceptors.PIORB.set_parameters(PIORB.java:337)
           at org.omg.CORBA.ORB.init(ORB.java:337)
           at com.sun.jndi.toolkit.corba.CorbaUtils.getOrb(CorbaUtils.java:185)
           at com.sun.jndi.cosnaming.CNCtx.initUsingIiopUrl(CNCtx.java:287)
           at com.sun.jndi.cosnaming.CNCtx.initUsingUrl(CNCtx.java:245)
           at com.sun.jndi.cosnaming.CNCtx.initOrbAndRootContext(CNCtx.java:209)
           at com.sun.jndi.cosnaming.CNCtx.(CNCtx.java:69)
           at com.sun.jndi.cosnaming.CNCtxFactory.getInitialContext(CNCtxFactory.java:32)
           at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
           at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
           at javax.naming.InitialContext.init(InitialContext.java:219)
           at javax.naming.InitialContext.(InitialContext.java:195)
           at com.mot.hris.tas.util.EJBUtil.getHomeInterface(EJBUtil.java:96)
           at com.mot.hris.tas.util.EJBUtil.createAnEJB(EJBUtil.java:123)
           at com.mot.hris.tas.util.EJBUtil.createRemoteEJB(EJBUtil.java:192)
           at com.mot.hris.tas.util.EJBFromSessionUtil.getAnEJB(EJBFromSessionUtil.java:58)
           at com.mot.hris.tas.util.EJBFromSessionUtil.getRemoteEJB(EJBFromSessionUtil.java:74)
           at com.mot.hris.tas.sample.PerformSearchAction.perform(PerformSearchAction.java:37)
           at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1787)
           at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1586)
           at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
           at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
           at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
           at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
           at java.security.AccessController.doPrivileged(Native Method)
           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
           at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
           at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
           at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
           at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:158)
           at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)