开发者

How to avoid Perm Gem space exception in JBoss server?

开发者 https://www.devze.com 2023-01-04 00:00 出处:网络
I deploy my J2EE application after making some changes to the code. At maximum of 4 times I can deploy the EAR file into the server without restarting the JBoss server. After the 4th deployment if I

I deploy my J2EE application after making some changes to the code.

At maximum of 4 times I can deploy the EAR file into the server without restarting the JBoss server. After the 4th deployment if I depl开发者_开发技巧oy one more time it throws PermGem space exception.

I don't what this exception is. I restart the server then everything works fine. Any idea why the Jboss server throws PermGem space exception after 4 deployments ?And Why it occurs ?


You can find an explanation about PermGem space here. Here are some JBoss specific instructions.

You could have a classloader leak in your code that causes this. Or you have a huge code base with many dependencies and haven't configured the PermGem space appropriately.


You also need to enable the sweeping of the permgen area, which is not covered in the previous answer.

This answer provides details to do that.

0

精彩评论

暂无评论...
验证码 换一张
取 消