|
From: Peter <pet...@ri...> - 2005-03-19 21:31:58
|
Hi. JDK1.4 runs well on UML guests. JDK1.5 does not appear to run well on the UML guests. After the process runs for a bit it ends up sitting at 100% CPU. I have had problems on 2.4 kernels up to 2.6.9 guest kernels. I have reproduced the problem on different guest distros (Debian, FC, and WBEL3). And the problem has been reported by other users on the mailing list here. I do not see this problem on non-UML servers. I am not sure what could be going on. But it seems possible that the Java 1.5 VM is hitting some issue with the UML guest kernel. To reproduce the problem (preferably on a Debian or FC/RHEL based distro) download this: http://downloads.rimuhosting.com/installjava.sh Comment out the 1.4.2 file/dir at the top. Uncomment the 1.5 file/dir variables Run that script (it will install the 1.5 JDK). Download and run http://downloads.rimuhosting.com/installtomcat5.sh It will install tomcat5.5.7 under /usr/local/tomcat. Add a tomcat user. And an /etc/init.d/tomcat stop/start/kill script. Start tomcat with /etc/init.d/tomcat start Run ab (ab is part of apache) like this: ab -c 10 -n 10000 http://localhost:8080/jsp-examples/jsp2/tagfiles/products.jsp Eventually the Java process will max out the CPU. Usually after 200-2000 requests. "jstack $parentjavapid" will show the Java code that is executing. Not that helpful. strace on the java pids don't seem to show/help much. Your help reproducing and resolving this problem would be greatly appreciated. Regards, Peter |