users@glassfish.java.net

Re: What causes GRIZZLY to flood the Glassfish-Log with messages

From: <forums_at_java.net>
Date: Thu, 4 Oct 2012 08:27:04 -0500 (CDT)

Hi Alexey, first thank you for the first replay! I replaced the grizzly and
after 3-4 hours, I started getting this exception at firt:
[#|2012-10-04T15:53:52.118+0200|WARNING|glassfish3.1.2|com.sun.grizzly.config.GrizzlyServiceListener|_ThreadID=12;_ThreadName=Thread-3;|GRIZZLY0006:
Exception accepting channel java.io.IOException: Too many open files at
sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method) at
sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:145)
at
com.sun.grizzly.TCPSelectorHandler.acceptWithoutRegistration(TCPSelectorHandler.java:745)
at
com.sun.enterprise.v3.services.impl.monitor.MonitorableSelectorHandler.acceptWithoutRegistration(MonitorableSelectorHandler.java:99)
at
com.sun.grizzly.http.SelectorThreadHandler.onAcceptInterest(SelectorThreadHandler.java:99)
at
com.sun.grizzly.SelectorHandlerRunner.handleSelectedKey(SelectorHandlerRunner.java:301)
at
com.sun.grizzly.SelectorHandlerRunner.handleSelectedKeys(SelectorHandlerRunner.java:263)
at
com.sun.grizzly.SelectorHandlerRunner.doSelect(SelectorHandlerRunner.java:200)
at com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:132)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619) |#] this was thrown a lot of times,
and then everything that was trying to use a socket was throwing the same
exception, for example if server try to send email...
java.net.SocketException: Too many open files at
javax.mail.MessagingException: Could not connect to SMTP host: localhost,
port: 25 at at
com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1934) at at
com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:638) at at
javax.mail.Service.connect(Service.java:295) at at
javax.mail.Service.connect(Service.java:176) at at
javax.mail.Service.connect(Service.java:125) at at
javax.mail.Transport.send0(Transport.java:194) at at
javax.mail.Transport.send(Transport.java:124) ... Caused by:
java.net.SocketException: Too many open files at at
java.net.Socket.createImpl(Socket.java:397) at at
java.net.Socket.connect(Socket.java:527) at at
java.net.Socket.connect(Socket.java:478) at at
com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:288) at at
com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:231) at at
com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1900) As you
can see the bougth use a different package for IO( one Uses NIO and other IO
) Any idea?! Regards, Blaze

--
[Message sent by forum member 'baze985']
View Post: http://forums.java.net/node/889790