I have this simple Java Code which creates a single JFrame instance and displays it. This link contains the screenshot of memory consumption graph taken by jconsole
What worries me is that java.exe in task manager shows memory usage continuously increasing at the rate of 4-5 kbs every 8-9 seconds. Need help
import javax.swing.*;
class MyGUI extends JFrame
{
public void makeGUI()
{
setLayout(null);
setSize(500, 200);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setVisible(true);
}
}
public class Launcher
{
public static void main(String []args)
{
SwingUtilities.invokeLater(new Runnable()
{
public void run()
{
new MyGUI().makeGUI();
}
});
}
}