-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello,
I tried to run Jetty (http://jetty.mortbay.org) under the Blackdown JDK 1.3.1 in a User Mode Linux VM. It works fine (i.e. it does what it is supposed to) but: Java consumes around 25% CPU on the real hardware. When I run Jetty under the Blackdown JDK 1.3.1 on the real hardware it doesn't consume any CPU when idle. I wrote a Hello World style Program that listens on a port (see attachment) and ran it in the UML VM and on the real hardware. On the real hardware it doesn't consume any CPU (as expected). But when I run it in teh User Mode Linux VM, it consumes about 20% CPU. Does anybody have an idea whether it is the Java VM that misbehaves or whether it is the User Mode Linux Kernel? Thanks in advance. Yours, Thomas - -- Don't steal! The government hates competition. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE7/VfE1vMNiE716RgRAs8VAJ9K9TOEPGEPcY6RIV2fHQ6K+h9a+ACeJS4n 7jGA6BEkme2Rs1nl2BSzdxE= =An09 -----END PGP SIGNATURE-----
import java.io.*; import java.net.*; public class SrvSocket { public static void main( String args[] ) throws IOException { System.out.println( "Waiting..." ); ServerSocket srvsoc = new ServerSocket( 12345 ); Socket soc = srvsoc.accept(); System.out.println( soc ); } }