You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Oleg Kalnichevski (JIRA)" <ji...@apache.org> on 2007/06/20 12:21:26 UTC
[jira] Updated: (AXIS2-2820) SimpleHTTP server can not handle
multiple threads (more than 20)
[ https://issues.apache.org/jira/browse/AXIS2-2820?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Oleg Kalnichevski updated AXIS2-2820:
-------------------------------------
Attachment: axis2-shs.patch
Deepal,
I created a simple patch that enables SimpleHttpServer to serve files off a document directory. I also tweaked the configuration parameters a little. When hitting the server with 100 concurrent threads it manages to serve 2172 requests sending 12926 bytes of content per request achieving throughput of 27693.49 Kbytes/sec. This seems reasonable for a _simple_ HTTP server. I could optimize performance of SimpleHttpServer further, if needed.
oleg@okhost:~$ ab -k -n 100000 -c 100 http://localhost:8080/index.html
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/
...
Server Software: Simple-Server/1.1
Server Hostname: localhost
Server Port: 8080
Document Path: /index.html
Document Length: 12926 bytes
Concurrency Level: 100
Time taken for tests: 46.29116 seconds
Complete requests: 100000
Failed requests: 0
Write errors: 0
Keep-Alive requests: 0
Total transferred: 1305300000 bytes
HTML transferred: 1292600000 bytes
Requests per second: 2172.54 [#/sec] (mean)
Time per request: 46.029 [ms] (mean)
Time per request: 0.460 [ms] (mean, across all concurrent requests)
Transfer rate: 27693.49 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 9 286.3 0 21001
Processing: 0 28 308.9 22 26928
Waiting: 0 28 308.9 22 26927
Total: 17 38 487.7 22 34251
Oleg
> SimpleHTTP server can not handle multiple threads (more than 20)
> ----------------------------------------------------------------
>
> Key: AXIS2-2820
> URL: https://issues.apache.org/jira/browse/AXIS2-2820
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Reporter: Deepal Jayasinghe
> Priority: Blocker
> Attachments: axis2-shs.patch
>
>
> When use two channel to invoke a service deploy in tomcat I ran into problem , what I did was I fire up 100 threads and invoke the service 100 times. Then the invocation become very slow , when I debug the code I realized that is due to limitation in SimpleHttp server. So how if we switch to jetty or embedded tomcat.
> To demonstrate the issue I will create and attach the test case.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org