Performance and scalability: JDK1.3 CPU usage at 100% with 2 JVMs
We are running two instances (2 JVMs) of Tomcat 3.2.1 on a small 1-CPU Sun server with 256Mo.
- Posted by: William Dra?
- Posted on: April 26 2001 08:35 EDT
When simply requesting a JSP page on one Tomcat, the CPU usage increases to 95%/100% and stays at this level permanently, so that the second Tomcat is almost stalled.
It seems that it happens only with JDK1.3 because I don't remember we have had this problem with JDK1.2.2.
It could be a problem with the garbage collector.
Does anybody have had the same problem and do you have any solution.
Would need to see the code that is being executed to make a good judgement here. It could be the code.
This type of error is typically an indication that something has gotten stuck in an infinite loop, or is doing something that is incredibly CPU intensive. Usually it's the former one.