PermGen Space几乎溢出。使用jboss 4.2.2GA

时间:2011-05-21 12:26:46

标签: jboss jboss-4.2.x

我有OutOfMemoryError:PermGen空间,我正在尝试多次在jboss / bin / run.conf下的run.conf下更改它但是在重启jboss之后我仍然看不到任何更改 即时通讯使用Jboss 4.2.2GA          操作系统:Linux centos          jvm:1.5.2热点服务器64位

请,任何建议..

Heap Configuration:
   MinHeapFreeRatio = 40
   MaxHeapFreeRatio = 70
   MaxHeapSize      = 1073741824 (1024.0MB)
   NewSize          = 2686976 (2.5625MB)
   MaxNewSize       = -65536 (-0.0625MB)
   OldSize          = 1835008 (1.75MB)
   NewRatio         = 2
   SurvivorRatio    = 8
   PermSize         = 21757952 (20.75MB)
   MaxPermSize      = 88080384 (84.0MB)

Heap Usage:
PS Young Generation
Eden Space:
   capacity = 332922880 (317.5MB)
   used     = 39076184 (37.265953063964844MB)
   free     = 293846696 (280.23404693603516MB)
   11.73730805164247% used
From Space:
   capacity = 12582912 (12.0MB)
   used     = 0 (0.0MB)
   free     = 12582912 (12.0MB)
   0.0% used
To Space:
   capacity = 12386304 (11.8125MB)
   used     = 0 (0.0MB)
   free     = 12386304 (11.8125MB)
   0.0% used
PS Old Generation
   capacity = 691994624 (659.9375MB)
   used     = 159954680 (152.54467010498047MB)
   free     = 532039944 (507.39282989501953MB)
   23.115017725918054% used
PS Perm Generation
   capacity = 76742656 (73.1875MB)
   used     = 75870592 (72.3558349609375MB)
   free     = 872064 (0.8316650390625MB)
   98.8636515264731% used

2 个答案:

答案 0 :(得分:0)

您可以检查配置目录(run.confdefault)中是否有production个文件。

至少在JBoss EAP 4.3中,每个配置文件都有自己的运行配置文件。如果找到此类文件,则必须编辑-XX:MaxPermSize参数。

答案 1 :(得分:0)

您需要确保正确配置JBoss实例以处理PermGen。我不知道为什么默认配置中没有这些东西;出于某种原因,你需要 神奇地 知道这些东西。以下是有关如何配置的链接:http://blog.dahanne.net/2009/08/12/jboss-and-java-lang-outofmemoryerror-permgen-space/