Problems with Glassfish Permgen Space

Asked

Viewed 281 times

-1

I have a project that runs a web control system, it has a web service Rest for mobile queries and data collection. It performs perfectly, but the project is still under development. It has already happened three times, Glassfish lock and display the error message Permgen Space. I told it to restart, but it keeps trying to deploy and nothing. I was able to solve this the first time by removing the server, adding it again, creating new Omain and creating a new project with this new instance of the server. But if I have to do this every day, I’ll miss HD and I don’t finish the project.

I’m using Netbeans 7.3.1 | JDK 1.7 | Glassfish 4.0

I need to resolve this urgently. If anyone can help, I would be grateful.

1 answer

0

Memory problem Heap.

  1. In the file "Domain.xml" present in the directory

    /glassfish/Domain/domain1/config

find:

<jvm-options>-XX:MaxPermSize=

Assign a value of 256m or 512m

  1. Close the Glassfish process through the terminal, like my Naporta 8080 wheel:

    sudo netstat -npl | grep 8080

This should work something like

tcp6 0 0 :::8080 :::* LISTEN **3312**/java

Then kill the process:

kill -9 **3312** (note que 3312 é o numero do processo resultante acima).

Try climbing the Glassfish again.

In Windows I don’t know the commands to quit, but I believe that if restart the machine, I can solve, after hitting the xml file in step 1.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.