-
1. Re: Threading Anomoly
mcguinnessdave Mar 4, 2005 7:20 AM (in response to mcguinnessdave)sorry the excerpt got cut off, here it is now...
<!-- A HTTP/1.1 Connector on port 8080 --> -
2. Re: Threading Anomoly
mcguinnessdave Mar 4, 2005 7:23 AM (in response to mcguinnessdave)take 3:
Service name="jboss.web"
className="org.jboss.web.tomcat.tc5.StandardService">
Connector port="8080" address="${jboss.bind.address}"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true"/ -
3. Re: Threading Anomoly
clebert.suconic Mar 4, 2005 9:25 AM (in response to mcguinnessdave)Did you try increasing the ThreadPool?
Are you using all or default as server configuration? -
4. Re: Threading Anomoly
mcguinnessdave Mar 4, 2005 9:32 AM (in response to mcguinnessdave)Hi,
As far as I know, what I was changing in server.xml was the thread pool size. am I mistaken? I am using default as the server configuration,
Thanks,
Dave -
5. Re: Threading Anomoly
mcguinnessdave Mar 7, 2005 4:22 AM (in response to mcguinnessdave)Hi again,
Thanks for the reply. I have run some more tests. for these I have set the memory consumption of the stateless server beans to zero and I increased the number of users to 100 (all running the same single method transaction). there are also 100 beans in the pool. What I would expect to find is that as we increase from 1 thread up to somewhere near 100, we should get increasing throughput and decreasing response times, but quite the opposite is happening (see below). Regarding context switching, surely JBoss should only switch between threads when there is something active on the thread and should not switch to threads that are not in use (and so unused threads shypould not cause extra runtime CPU usage (or a very minimal amount to check the extra threads for usage???)
Thanks again for any insight provided
Regards,
David
RESULTS
====================
Threads RT TP
1 87092 132
5 84231 142
10 95694 111
25 90989 129
50 101541 116
100 132768 99
=====================