For the following no-op code,
public class a {
public static void main(String args[]) throws Exception{
Thread.sleep(100000);
}
}
If I run it on a 64-bit jvm, through "top" I can see that it uses 2GB virtual memory. What is taking up that virtual memory? This example may be weird, but we do see some production code that uses a lot of virtual mem so that it exceeds ulimit -v
Thanks Yang