Hi All,

I have a serious problem with tomcat on linux.
Tomcat often stops with the error "Connection refused".
Clients can not connect to the server and even the tomcat default page can not 
be displayed.
When this error occurs, one of the following two JAVA processes has 200% CPU 
load.
But I'm not sure this causes the problem.

/usr/java/jre1.6.0_10/bin/java 
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager.

/usr/java/jre1.6.0_10/bin/java 
-Djava.util.logging.config.file=/opt/tomcat/conf/logging.properties.

If I terminate the JAVA process listed above with kill -9, and restart Tomcat 
with catalina.sh start, it works again for a while. After 10 minutes, it stops 
again, but this working period can be hours.

I'm not sure that JAVA process causes the problem all the time, because I have 
seen the 200% CPU load and tomcat worked well. 
Moreover I have seen the "connection refused" and there was no 200% CPU load.

I have found the following log items in catalina.log:
But there is no other program listening on TC port 8181...

2010.07.23. 12:35:26 org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.net.BindException: Address already in use<null>:8181
        at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:502)
        at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:176)
        at 
org.apache.catalina.connector.Connector.initialize(Connector.java:1058)
        at 
org.apache.catalina.core.StandardService.initialize(StandardService.java:677)
        at 
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)
        at org.apache.catalina.startup.Catalina.load(Catalina.java:530)
        at org.apache.catalina.startup.Catalina.load(Catalina.java:550)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
2010.07.23. 12:35:26 org.apache.catalina.startup.Catalina load
SEVERE: Catalina.start
LifecycleException:  Protocol handler initialization failed: 
java.net.BindException: Address already in use<null>:8181
        at 
org.apache.catalina.connector.Connector.initialize(Connector.java:1060)
        at 
org.apache.catalina.core.StandardService.initialize(StandardService.java:677)
        at 
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)
        at org.apache.catalina.startup.Catalina.load(Catalina.java:530)
        at org.apache.catalina.startup.Catalina.load(Catalina.java:550)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
2010.07.23. 12:35:26 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1023 ms






Is it possible, that I have to increase the "maxThreads" or "acceptCount" 
tomcat parameters, which control the concurrent access to the tomcat server?

Or can an update to 6.0.20-26-28 solve this problem?

Software versions:
OS: Suse Linux Enterprise 10
Tomcat: 6.0.18
JAVA JRE: 1.6.0_10-b33

 
I would be grateful for any idea.

Thanks
Zoltan


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to