I'm developing a web app using Eclipse/Glassfish on Windows 7, and I see this error at least a few times a day when deploying a new version of the app:
SEVERE: Exception while preparing the app : PermGen space
SEVERE: java.lang.OutOfMemoryError: PermGen space
When I see it, I have to close Eclipse, use the Windows Task Manager to stop a Java process (which I suspect is Glassfish), and re-start Eclipse. It's a nuisance, and an unwelcome interruption.
Is there anything I can fix/configure that would make this error go away, or at least decrease its frequency? Or is this a memory leak I'm just going to have to live with?