估计你是没及时的关闭连接我的意思是:用完了就要把连接还回池,直接close就可以了。

解决方案 »

  1.   

    我只是说只是一个原因,你什么信息都没给,我只是猜测。如果没有及时还回,就会出现上述问题,因为idle用完了。没办法在支持更多的用户,你重起tom就可以了。你贴log吧,就在logs文件夹
      

  2.   

    [2005-11-16 08:58:40,079] [LOG.java info 38] [system] [INFO]- Total connections: 10 Available: 10 Checked-out: 0
    [2005-11-16 08:58:53,239] [LOG.java info 38] [system] [INFO]- Request for connection received
    [2005-11-16 08:58:53,240] [LOG.java info 38] [system] [INFO]- Waiting for connection. Timeout=100000000
    [2005-11-16 08:59:16,678] [LOG.java info 38] [system] [INFO]- Request for connection received
    [2005-11-16 08:59:16,679] [LOG.java info 38] [system] [INFO]- Waiting for connection. Timeout=100000000
    [2005-11-16 08:59:27,394] [LOG.java info 38] [system] [INFO]- Request for connection received
    [2005-11-16 08:59:27,394] [LOG.java info 38] [system] [INFO]- Waiting for connection. Timeout=100000000
    [2005-11-16 08:59:27,751] [LOG.java info 38] [system] [INFO]- Request for connection received
    [2005-11-16 08:59:27,752] [LOG.java info 38] [system] [INFO]- Waiting for connection. Timeout=100000000
    [2005-11-16 08:59:28,490] [LOG.java info 38] [system] [INFO]- Request for connection received
    [2005-11-16 08:59:28,491] [LOG.java info 38] [system] [INFO]- Waiting for connection. Timeout=100000000
    2005-11-16 8:59:28 org.apache.tomcat.util.threads.ThreadPool logFull
    严重: All threads (150) are currently busy, waiting. Increase maxThreads (150) or check the servlet status
    2005-11-16 9:10:50 org.apache.coyote.http11.Http11Protocol pause
      

  3.   

    2005-11-16 8:59:28 org.apache.tomcat.util.threads.ThreadPool logFull
    就是这个原因了。最大线程数满了。为什么只是设置150呢?是不是太少了。
      

  4.   

    你把maxThreads设成5,可用线程数其他的参数一律改成5。你看看是不是访问5次左右就down掉了?
      

  5.   

    Timeout=100000000
    干嘛设那么大啊!改小点