I am using the JVM 1.3.1_02 with native threads but I am not sure what
version of mod_jk since I did not compile it myself. To make sure I tried to
rebuild mod_jk but it turns out that tomcat 3.3.1 only includes mod_jk for
apache1.3 and not for apache 2.0 (tomcat 3.2.4 had an apache2.0 variant). Is
the same mod_jk usable with both versions of apache?

I am now trying to setup the test with apache1.3.26 to see if the behavior
is the same. I will post the results soon. 

About the keepalive setting: I agree that the connection would persist and
the threads would be bound to the connection but that should not affect the
spread of the load over the CPUs and would actually boost the performance,
wouldn't it? Right now everything is set with keepalive. I will give a try
without it.

JP
-----Original Message-----
From: Bill Barker [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 21, 2002 9:37 PM
To: [EMAIL PROTECTED]
Subject: Re: Weird CPU profile during tomcat 3.3.1 performance test



<[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.



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to