users@glassfish.java.net

httpd process exceeds maxclient settings and glassfish becomes unresponsive

From: James Edwards <JEdwards_at_bidsync.com>
Date: Wed, 24 Aug 2011 18:01:12 -0600

I'm hoping someone can point me in a direction. I'm having an issue with Apache and Glassfish where a few times a week, httpd processes spawn and exceed the MaxClient setting of 256. Glassfish becomes unresponsive. They stop serving the web page.

To fix, I stop the glassfish process using kill –9 because /etc/init.d/glassfish…. stop does not complete I also have to restart httpd.


The server.log file in Glassfish throws this commonly every time…


[#|2011-08-24T08:30:09.291-0600|WARNING|glassfish3.1|org.apache.jk.common.ChannelSocket|_ThreadID=87;_ThreadName=Thread-1;|Exception executing accept
java.net.SocketException: Too many open files
        at java.net.PlainSocketImpl.socketAccept(Native Method)
        at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:408)
        at java.net.ServerSocket.implAccept(ServerSocket.java:462)
        at java.net.ServerSocket.accept(ServerSocket.java:430)
        at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:355)
        at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:709)
        at org.apache.jk.common.ChannelSocket$SocketAcceptor.runIt(ChannelSocket.java:920)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:662)

And the apache logs shows that the MaxClient Settings have been exceeded.

I currently have MaxClients set to 256.


I'm fairly new to Glassfish and I'm trying to figure out the methods to troubleshoot this.
Has anyone else seen this behavior and how have you troubleshot or fixed it?

thanks for any help.


James Edwards, CISSP
[http://www.bidsync.com/images/marketing/dark-blue-hr.gif]
Director of Information Technology
[http://www.bidsync.com/images/marketing/bds_nofx.gif]<http://www.bidsync.com>

PH. 801.765.9245 x211
FAX. 801.618.4139
@. JEdwards_at_bidsync.com


Leave previous communications attached on all replies.
This electronic message is confidential and is intended only for the use of the individual to whom it is addressed. If you are not the intended recipient, please immediately notify me by replying to this e-mail and delete the message from your system. Thank you.