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 "Deepal Jayasinghe (JIRA)" <ji...@apache.org> on 2007/06/19 16:03:26 UTC

[jira] Created: (AXIS2-2820) SimpleHTTP server can not handle multiple threads (more than 20)

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


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


[jira] Commented: (AXIS2-2820) SimpleHTTP server can not handle multiple threads (more than 20)

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2820?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12507105 ] 

Davanum Srinivas commented on AXIS2-2820:
-----------------------------------------

Oleg, I just picked up the changes to HttpFactory.java. This is enough for a "Simple" scenario :) We also have the NIO thingy checked in as well. so we should be all set.

thanks a ton for you consistent tremendous support.

-- dims

> 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


[jira] Commented: (AXIS2-2820) SimpleHTTP server can not handle multiple threads (more than 20)

Posted by "Oleg Kalnichevski (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2820?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12507188 ] 

Oleg Kalnichevski commented on AXIS2-2820:
------------------------------------------

My pleasure, Davanum.

If the 'NIO thingy' does catch on, you should consider getting rid of SimpleHttpServer after all. Better data throughput provided by classic I/O in some scenarios may not outweigh the complexity and managerial overhead of having to maintain multiple HTTP transport implementations.

Cheers

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


[jira] Resolved: (AXIS2-2820) SimpleHTTP server can not handle multiple threads (more than 20)

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2820?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davanum Srinivas resolved AXIS2-2820.
-------------------------------------

    Resolution: Fixed

> 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


[jira] Updated: (AXIS2-2820) SimpleHTTP server can not handle multiple threads (more than 20)

Posted by "Oleg Kalnichevski (JIRA)" <ji...@apache.org>.
     [ 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