<[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > 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?
I'm assuming that you've checked the obvious things, such as that your JVM is running native threads, rather than green threads. It is easily possible that the test itself is skewing the results. If the test application is using keep-alive, then requests will get routed to the same Apache thread and from there to the same Tomcat thread. If none of this applies, than at the very least, we'll need to know such details as your JVM version, and which version of mod_jk you are using. > > 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. > [EMAIL PROTECTED] -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
