Ewan McGhee

Greenhorn
+ Follow
since Mar 12, 2014
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ewan McGhee

Hello all,

I'm running Tomcat7 as service on Windows 64 bit machine and it ignoring all JVM settings I'm making, whether in the Java tab of Tomcat7W.exe or JAVA_HOME and JRE_HOME environment variables.

Instead it is referencing another JDK I have on my system. I can see that from http://localhost/manager/status, and also when I start the program manually by clicking the Tomcat7.exe - the startup log in the command box shows me it's referencing another jdk.

But I have no clue where Tomcat is getting that setting from and how to change it.

Any help greatly appreciated.

Ewan
6 years ago
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
10 years ago