Re: [Simpleweb-Support] Simple stops serving
Brought to you by:
niallg
|
From: Niall G. <gal...@ya...> - 2006-02-08 17:14:49
|
Hi Heikki,
What is your soft limit on file descriptors. Just to
remind you, ServerSocket.accept will fail when the
soft limit is reached. This may give JMeter the
impression of deadlock, when in fact it is Linux
limiting performance here. Try the following
ulimit -aS
This will show your fd soft limit, which I expect is
1024. My guess is that if you expect to serve more
than 3000 requests per/sec you will need to increase
you fd soft limit.
Also there is a caching bug in Simple 2.8.1. This
causes files to be open of each request. So for your
test of 1000 files, 2000 files will be required. How?
well 1000 sockets and 1000 fds for index.html. To fix
the caching bug modify
simple.http.serve.BufferedConent and replace the
following
bug:
public void write(OutputStream out) throws
IOException {
if(count > 0) {
out.write(cache);
}
int size = getLength();
if(size > 0) {
write(out,size);
}
}
fix:
public void write(OutputStream out) throws
IOException{
if(cache == null) {
int size = getLength();
if(size > 0) {
write(out,size);
}
} else {
out.write(cache);
}
}
Hope this helps!
Niall
--- Heikki Uusitalo <hu...@al...> wrote:
> Simple version 2.8.1
> Linux 2.6.8-2-k7
> Java 1.5.0_06
>
> I'm using Jakarta JMeter to benchmark simple
> performance. I've tried to
> follow the examples given in simple-demo 1.2.5
> (including the usage of
> LinuxConfigurator).
>
> Just by creating a test which loads very basic
> index.html page 1000
> times (one client) the simple halts after ~30...200
> requests.
>
> This phenomenom doesn't occur on WinXP (with same
> java version).
>
> This phenomenom also doesn't occur on Linux if I set
> a 1 millisecond
> delay between each request on JMeter.
>
> Any ideas?
>
>
>
-------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do
> you grep through log files
> for problems? Stop! Download the new AJAX search
> engine that makes
> searching your log files as easy as surfing the
> web. DOWNLOAD SPLUNK!
>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
> _______________________________________________
> Simpleweb-Support mailing list
> Sim...@li...
>
https://lists.sourceforge.net/lists/listinfo/simpleweb-support
>
Niall Gallagher
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
|