jboss 4.x startup failed when http requests coming
Jboss 4.3 application published on the web if we have http requests during
application server startup then application start could failed with
absolutely different errors like:
too many files opened, too many sockets opened, ...
what is the easiest way to redirect all requests to some static page until
all applications started?
the problem is not reproduced on last jboss versions, but we can't change
it right now.
below is the part of the log we can see that just after the server is
started socket connection pool is already full.
2013-08-19 16:29:27,760 INFO deploy, ctxPath=/prototype,
warUrl=.../tmp/deploy/tmp5399168696811762709prototype-exp.war/
{org.jboss.web.tomcat.service.TomcatD
2013-08-19 16:29:31,719 INFO deploy, ctxPath=/svn,
warUrl=.../tmp/deploy/tmp8105161025572918667svn-exp.war/
{org.jboss.web.tomcat.service.TomcatDeployer}
2013-08-19 16:29:32,495 INFO Initializing Spring root
WebApplicationContext
{org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/svn]}
2013-08-19 16:29:37,691 INFO Initializing Spring FrameworkServlet
'sventon'
{org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/svn]}
2013-08-19 16:29:38,843 INFO Starting Coyote HTTP/1.1 on
http-0.0.0.0-8080 {org.apache.coyote.http11.Http11Protocol}
2013-08-19 16:29:38,883 INFO Starting Coyote AJP/1.3 on ajp-0.0.0.0-8009
{org.apache.coyote.ajp.AjpProtocol}
2013-08-19 16:29:39,380 INFO JBoss (MX MicroKernel) [4.2.3.GA (build:
SVNTag=JBoss_4_2_3_GA date=200807181417)] Started in 2m:8s:911ms
{org.jboss.system.serv
2013-08-19 16:29:40,759 ERROR Socket accept failed
{org.apache.tomcat.util.net.JIoEndpoint}
java.net.SocketException: Too many open files
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
at java.net.ServerSocket.implAccept(ServerSocket.java:453)
at java.net.ServerSocket.accept(ServerSocket.java:421)
at
org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultServerSocketFactory.java:61)
at
org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run(JIoEndpoint.java:309)
at java.lang.Thread.run(Thread.java:619)
2013-08-19 16:29:41,644 ERROR Socket accept failed
{org.apache.tomcat.util.net.JIoEndpoint}
java.net.SocketException: Too many open files
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
at java.net.ServerSocket.implAccept(ServerSocket.java:453)
at java.net.ServerSocket.accept(ServerSocket.java:421)
at
org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultServerSocketFactory.java:61)
at
org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run(JIoEndpoint.java:309)
at java.lang.Thread.run(Thread.java:619)
No comments:
Post a Comment