users@glassfish.java.net

Re: Hang up: Too many open files

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Thu, 23 Aug 2007 14:09:52 -0400

Hi,

glassfish_at_javadesktop.org wrote:
> My application server, SJSAS 9.0 b48 with Apache in front, hang up sometime and nothing is available anymore.
> After some time (10-30min) or after an restart everything works like before.
>
> Did lot of discussion with admin of my ISP and he told me, that he increase the maximum open file size.
> But problem still exist and is not reproducible (for me) - happens on different hours/days.
>
> Here is depending the trace from logs:
> [#|2007-08-23T15:29:33.456+0200|SEVERE|sun-appserver-pe9.0|org.apache.jk.common.HandlerRequest|_ThreadID=22;_ThreadName=TP-Processor16;_RequestID=6b9bb923-e0cb-408d-b3ac-2f086e5cfe42;|Error decoding request
> java.io.IOException
> at org.apache.jk.common.JkInputStream.receive(JkInputStream.java:252)
> at org.apache.jk.common.HandlerRequest.decodeRequest(HandlerRequest.java:523)
> at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:363)
> at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:745)
> at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
> at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:868)
> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:653)
> at java.lang.Thread.run(Thread.java:595)
> |#]

Hum...your ISP might have too many applications running on the same
machine (and that's probably why you can't reproduce the problem). Do
you know if the machine is shared with a lot of mod_jk instance?

I'm not aware of any leak with mod_jk. Which version are they using?

Thanks

-- Jeanfrancois

>
> [#|2007-08-23T15:29:33.457+0200|WARNING|sun-appserver-pe9.0|org.apache.jk.common.ChannelSocket|_ThreadID=22;_ThreadName=TP-Processor16;_RequestID=6b9bb923-e0cb-408d-b3ac-2f086e5cfe42;|processCallbacks status 2|#]
>
> [#|2007-08-23T15:29:47.641+0200|WARNING|sun-appserver-pe9.0|org.apache.jk.common.ChannelSocket|_ThreadID=32;_ThreadName=TP-Processor4;_RequestID=356fbe7c-1553-40ad-829c-186a2cfab1a7;|Exception executing accept
> java.io.IOException: Too many open files
> at sun.nio.ch.IOUtil.initPipe(Native Method)
> at sun.nio.ch.PollSelectorImpl.<init>(PollSelectorImpl.java:40)
> at sun.nio.ch.PollSelectorProvider.openSelector(PollSelectorProvider.java:18)
> at com.sun.enterprise.server.ss.provider.ASSelectorProvider.openSelector(ASSelectorProvider.java:75)
> at java.nio.channels.Selector.open(Selector.java:209)
> at com.sun.enterprise.server.ss.provider.ASOutputStream.<init>(ASOutputStream.java:60)
> at com.sun.enterprise.server.ss.provider.ASClientSocketImpl.getOutputStream(ASClientSocketImpl.java:153)
> at java.net.Socket$3.run(Socket.java:801)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.Socket.getOutputStream(Socket.java:798)
> at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:313)
> at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
> at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:653)
> at java.lang.Thread.run(Thread.java:595)
> |#]
>
> ...
> more of the "Too many open files" Exception
> [Message sent by forum member 'hammoud' (hammoud)]
>
> http://forums.java.net/jive/thread.jspa?messageID=232310
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>