I have a project that runs a web control system, it has a web service rest for querying and collecting data from mobile devices. It performs perfectly, but the project is still under development. It has happened three times, from the Glassfish crash and display the error message PermGen Space. I command it to restart, but it keeps trying to deploy and nothing. I was able to resolve this the first time by removing the server, adding it again, creating a new domain and creating a new project with this new instance of the server. But if I have to do this every day, HD will be missing and I will not finish the project.
I'm using NetBeans 7.3.1 | JDK 1.7 | Glassfish 4.0
I need to urgently resolve this. If anyone can help, I'll be grateful.