JRE memory footprint on WindowsXP
Am I the only Swing developer/user that cringes when they see the amount of memory being used by the JRE under TaskManager? I can create an empty JFrame and the JRE still manages to consume 13MB or RAM.
Here is the code for the JFrame:
public class SimplerFrame extends javax.swing.JFrame
public static void main(String args)
SimplerFrame Sf = new SimplerFrame();
Why 13MB? I know that the JRE has to load classes, probably JIT compiler, etc, but it sure seems like a huge memory footprint for such a simple application. The corresponding MFC application uses only 3MB. I am not trying to start a flame war, I love java, but Sun needs to explain this problem to the developers/users or fix it if possible. Couldn't they load all of that extra stuff in some other process, maybe a JRE service? This would at least make the individual program look like it is using a small amount of memory.