-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Amol,
On 1/11/2011 7:11 AM, Amol Puglia wrote:
> The major issue is [Apache httpd] process is going very high and not
> coming down.
If you mean that the CPU is experiencing high load, then the thread
below is unlikely to be the cause:
> "TP-Processor50" daemon prio=5 tid=0x00449ea8 nid=0x56 waiting on condition
> [9427e000..9427fc30]
> at java.lang.Thread.sleep(Native Method)
> at com.ericsson.eai.b2b.MUXServlet.doPost(MUXServlet.java:506)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
Why? Because Thread.sleep doesn't use CPU time: it blocks waiting for a
signal from the CPU saying that it's time to wake up. It's still
possible this is the problem, if the Thread.sleep() call is in a loop
without much of a sleep, like this:
while(true) {
Thread.sleep(1);
}
That would peg your CPU.
Why not look at the code in com.ericsson.eai.b2b.MUXServlet.java at line
506 and see what's going on?
> Is it porblem in a backend tomcat server or it has to do something
> with apache itself.?
That depends on what the problem is :)
> tomcat version :- 5.5.9
You need to upgrade, but that's not causing your CPU load.
You need to use a tool such as top to find out which process is using
all your CPU: once you determine if it's Tomcat (process will be "java")
or Apache httpd (process will be "apache2" or "httpd" depending on your
system).
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk0si+kACgkQ9CaO5/Lv0PDCCACfV8kKhliVXvFqVqlf9pim5eyt
AT8An3TLL42Bi+Skh9jU62Vf377w2Iwf
=g8xx
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]