tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From William Au <bi...@cnet.com>
Subject problem with max_threads > 100
Date Fri, 08 Dec 2000 20:54:56 GMT
I am getting the following exceptions when I set the max_threads
parameter to
256.  I am using Tomcat 3.2 standalone with the PoolTcpConnector.
I looked at
the source code of jasper.runtime.JspFactoryImpl and discovered that it
is
hard-coding 100 to be the size of a SimplePool it uses internally.

public class JspFactoryImpl extends JspFactory {
    private SimplePool pool=new SimplePool( 100 );
    private static final boolean usePool=true;
...
}

Is there any way to get around this problem?  Or is 100 the upper-bound
for
max_threads?

Bill

java.lang.ArrayIndexOutOfBoundsException: 100
        at org.apache.tomcat.util.SimplePool.get(Compiled Code)
        at
org.apache.jasper.runtime.JspFactoryImpl.getPageContext(Compiled Code
)
        at _0002f_00031_00030k_0002ejsp10k_jsp_2._jspService(Compiled
Code)
        at org.apache.jasper.runtime.HttpJspBase.service(Compiled Code)
        at javax.servlet.http.HttpServlet.service(Compiled Code)
        at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Compil
ed Code)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(Compiled
Code)
        at org.apache.jasper.servlet.JspServlet.service(Compiled Code)
        at javax.servlet.http.HttpServlet.service(Compiled Code)
        at org.apache.tomcat.core.ServletWrapper.doService(Compiled
Code)
        at org.apache.tomcat.core.Handler.service(Compiled Code)
        at org.apache.tomcat.core.ServletWrapper.service(Compiled Code)
        at
org.apache.tomcat.core.ContextManager.internalService(Compiled Code)
        at org.apache.tomcat.core.ContextManager.service(Compiled Code)
        at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
n(Compiled Code)
        at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled
Code)
        at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
        at java.lang.Thread.run(Compiled Code)




Mime
View raw message