Possible Duplicate:
Why does an empty Java program consume memory?
Why an absolutely empty Java application continuously consumes memory? The app:
public class Dummy {
public static void main(String[] args) throws IOException {
System.in.read();
}
}
Or even:
public class Dummy {
public static void main(String[] args) throws InterruptedException {
synchronized (Thread.currentThread()) {
Thread.currentThread().wait();
}
}
}
Heap state:
Updated: IOException fix.