dcsimg
Tomcat crash - No buffer space available
0 posts in topic
Thread View Thread View
TOPIC ACTIONS:
 

Tomcat crash - No buffer space available...
emcghee
Wed Mar 12, 2014 09:13 AM

Hello all, 

Our  Tomcat  server recently crashed. The log is at the end of this message. I'm using Tomcat 5.5 on a Windows 2003 server, with maxThreads set to 150. I'm wondering whether my application is causing memory leaks, or whether I just need to raise the maxThreads value. One of the messages in the log would suggest that - namely,  'No buffer space available (maximum connections reached?)'  However, is it likely that a low maxThreads value would cause the server to crash? Any help/advice would be greatly appreciated. Here's the log: 

10-Mar-2014 11:16:40 org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket 
SEVERE: Endpoint  ServerSocket [addr=0.0.0.0/0.0.0.0,port=0,localport=80] ignored exception:  java.net.SocketException : socket closed 
java.net.SocketException : socket closed 
at java.net.PlainSocketImpl.socketAccept(Native Method) 
at java.net.PlainSocketImpl.accept(Unknown Source) 
at java.net.ServerSocket.implAccept(Unknown Source) 
at java.net.ServerSocket.accept(Unknown Source) 
at org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultServerSocketFactory.java:60) 
at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:407) 
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:70) 
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) 
at java.lang.Thread.run(Unknown Source) 

10-Mar-2014 11:16:42 org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket 
WARNING: Reinitializing  ServerSocket  
10-Mar-2014 11:16:42 org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket 
SEVERE: Endpoint null ignored exception:  java.net.SocketException : No buffer space available (maximum connections reached?): create 
java.net.SocketException : No buffer space available (maximum connections reached?): create 
at java.net.ServerSocket.createImpl(Unknown Source) 
at java.net.ServerSocket.getImpl(Unknown Source) 
at java.net.ServerSocket.bind(Unknown Source) 
at  java.net.ServerSocket .<init>(Unknown Source) 
at  java.net.ServerSocket .<init>(Unknown Source) 
at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49) 
at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:292) 
at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:468) 
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:70) 
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) 
at java.lang.Thread.run(Unknown Source) 
10-Mar-2014 11:16:42 org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket 
WARNING: Restarting endpoint 
10-Mar-2014 11:16:42 org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket 
SEVERE: Endpoint null shutdown due to exception:  java.net.SocketException : No buffer space available (maximum connections reached?): create 
java.net.SocketException : No buffer space available (maximum connections reached?): create 
at java.net.ServerSocket.createImpl(Unknown Source) 
at java.net.ServerSocket.getImpl(Unknown Source) 
at java.net.ServerSocket.bind(Unknown Source) 
at  java.net.ServerSocket .<init>(Unknown Source) 
at  java.net.ServerSocket .<init>(Unknown Source) 
at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49) 
at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:292) 
at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:480) 
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:70) 
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) 
at java.lang.Thread.run(Unknown Source) 
10-Mar-2014 11:16:42 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run 
SEVERE: Caught exception ( java.lang.ThreadDeath ) executing org.apache.tomcat.util.net.LeaderFollowerWorkerThread@1bbad6f, terminating thread 

About | Sitemap | Contact