Sun GlassFish Enterprise Server v2.1.1 Troubleshooting Guide

Unable to Start Server with 3.5 GB JVM heap

If you are using a 3.5 GB JVM heap, you may intermittently see one of the following errors when you try to start the server:

Consider reducing the thread stack size to 128 KB (-Xss128k).