how much RAM do I need to develop java comfortably?
Sorry if my question seems stupid, but I have been developing java for a while on my laptop… it has 3GB ram with 2 GB Swap… I work on gnu/linux Kubuntu 32 bit 11.10, and sun JVM 6.
After using eclipse with a couple of applications like Firefox and chrome open… in many cases if I compile with maven… it ends up taking all Memory available with all swap…. to the point where the kernel auto kills the processes.
I can’t understand what it’s doing with a full 3.5 GB of Memory (assuming the others use 1.5 GB)??? Usually just eclipse or IntelliJ takes about 1.5 GB….
Is this just me? Do java and eclipse actually require all this memory? Am doing something wrong? I have been working for years on Dotnet and mono on a 1.2 GB ram machine and I was fine…
Thanks a lot.
I typically give eclipse about 1.5GB auf RAM, because it is faster with more memory available.
But it seldom actually uses that.
What might be happening is that you have a memory leak in your application. If you redeploy over and over again cruft might pile up. Check if restarting the server make any difference.
Of course since eclipse is just a bag plugins, there might be a specific plugin that causes trouble. You could try and look at your eclipse with visualvm.