If it is a dev server, limit the maximum heap size to something that a 32-bit OS can handle. If it's in production, you need a 64-bit OS! If you cannot achieve this, you can run jhat on the server (you have a web interface that you can access on your PC).
source share