users@glassfish.java.net

Re: Number of requests per second taken care by glassfish

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Tue, 17 Jun 2008 15:38:46 -0400

Hi,

glassfish_at_javadesktop.org wrote:
> Hi,
>
> I've setup a glassfish server and deployed an application. When one of the
> tester is helping me on testing it, he observed that when he is sending 3
> requests per second for about 10 times, the server hangs. Each request
> takes about 4 to 5 seconds to respond.
>
> While some background processes run during the hang, but the web pages fail
> to respond.
>
> After I changed the settings in domain.xml like increasing the acceptor-threads,
> keep-alive settings etc, that problem is gone and test was successful until 4
> requests per second for 10 times. However, if 5 requests per second is
> requested for 10 times, the problem repeats.

Instead of changing the acceptor-threads -- leave it as 1 because there
was an issue:

https://glassfish.dev.java.net/issues/show_bug.cgi?id=4945

change the <request-processing ...thread-count="5">

and the problem you are experiencing will go away.

Thanks

-- Jeanfrancois


>
> When I continued increasing the above settings, 5 rps for 10 times worked fine,
> but 6rps for 10 times started failing with "Too many open files" error. The ulimit
> for the root user is unlimited, the file-max setting on linux machine is increased
> to 655350, but still I get the same error!
>
> The error is typically coming, I guess is, because there are too many open
> connections. When I do a netstat -na | grep 8080 | wc -l, I get about 183 by
> the time I receive the "Too many open files".
>
> Is there anything I could do about this?
> Kindly advice.
>
> Kind Regards,
> Sanjeev
> [Message sent by forum member 'sanjeev_any' (sanjeev_any)]
>
> http://forums.java.net/jive/thread.jspa?messageID=280809
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>