tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jean.philippe.pre...@escalate.com
Subject Weird CPU profile during tomcat 3.3.1 performance test
Date Wed, 21 Aug 2002 21:12:22 GMT
Hello,

I am seeing some very wired CPU profile while running a small stress test
with tomcat 3.3.1 and apache 2.0.39 on a 2 CPU Solaris box. 

While running the test, I don't get an even load on the two CPUs as shown in
the mpstat log below. This profile looks like a single threaded process so I
have been tweaking a few threading parameters to fix this but nothing I have
done seems to get the load even. I attached below the httpd worker and
tomcat ajp13 settings.

Would anybody have an explanation for this behavior and/or suggestions on
how to configure tomcat to spread the load over the CPUs?

cheers,

JP

Here is a capture of mpstat that shows a big load discrepancy between the
two CPUs.

CPU minf mjf xcal  intr ithr  csw icsw migr smtx  srw syscl  usr sys  wt idl
  1   89   0  284   835  601 1588  621   42  150    0  2460   94   5   0   1
  2   59   0  134   283  100 1514  384   39  182    0  2332   17  12   9  62
CPU minf mjf xcal  intr ithr  csw icsw migr smtx  srw syscl  usr sys  wt idl
  1  213   0  445   704  437 2429  990   65  133    0  3511   71   9   0  20
  2  237   0  376   403  100 1396  397   62  152    0  2083   42  10   1  48
CPU minf mjf xcal  intr ithr  csw icsw migr smtx  srw syscl  usr sys  wt idl
  1   54   0  171   493  340  517  210   20   55    0  1155   96   4   0   0
  2   46   0   53   171  100  940  233   24   53    0  1445    9   2   0  88


Here are some parts of httpd.conf and server.xml:

server.xml

<Ajp13Connector port="11082"
   debug="0"
   maxThreads="200"
   maxSpareThreads="100"
   minSpareThreads="10"
   pools="true"/>

httpd.conf worker:

<IfModule worker.c>
ThreadLimit        64
ServerLimit        16
StartServers        2
MaxClients        500
MinSpareThreads    25
MaxSpareThreads   100
ThreadsPerChild    50
MaxRequestsPerChild 0
</IfModule>


Jean-Philippe Prefot
Escalate Inc.
jp.prefot@escalate.com

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message