[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: OutOfMemory Error when redeploying application

manleon do-not-reply at jboss.com
Fri Jul 11 09:48:11 EDT 2008


Thanks Peter and Jaikiran.

@Jaikiran. Both of your wiki links were very useful and I gained a lot.

@Peter. I referend to ur posts in following topic

http://www.jboss.com/index.html?module=bb&op=viewtopic&t=115689

As the solution suggests  I have increased the Perm Gen space by adding a parameter in run.bat to a size of 128MB.

Yes I have got the solution and now even if i redeploy no error comes even if I redeploy 2 to three times. And thanks for that.

But from the output of PrintHeapAtGC I am confused at one thing. First let me show u the output after the server is on for the first time and my application is deployed for the first time.


  | {Heap before gc invocations=113:
  |  def new generation   total 13184K, used 13034K [0x03a60000, 0x048a0000, 0x07340000)
  |   eden space 11776K, 100% used [0x03a60000, 0x045e0000, 0x045e0000)
  |   from space 1408K,  89% used [0x04740000, 0x0487abc0, 0x048a0000)
  |   to   space 1408K,   0% used [0x045e0000, 0x045e0000, 0x04740000)
  |  tenured generation   total 116544K, used 54035K [0x07340000, 0x0e510000, 0x23a60000)
  |    the space 116544K,  46% used [0x07340000, 0x0a804dc8, 0x0a804e00, 0x0e510000)
  |  compacting perm gen  total 131072K, used 47427K [0x23a60000, 0x2ba60000, 0x2ba60000)
  |    the space 131072K,  36% used [0x23a60000, 0x268b0fb0, 0x268b1000, 0x2ba60000)
  | No shared spaces configured.
  | [GC 67070K->55756K(129728K), 0.0364396 secs]
  | Heap after gc invocations=114:
  |  def new generation   total 13184K, used 1060K [0x03a60000, 0x048a0000, 0x07340000)
  |   eden space 11776K,   0% used [0x03a60000, 0x03a60000, 0x045e0000)
  |   from space 1408K,  75% used [0x045e0000, 0x046e9008, 0x04740000)
  |   to   space 1408K,   0% used [0x04740000, 0x04740000, 0x048a0000)
  |  tenured generation   total 116544K, used 54696K [0x07340000, 0x0e510000, 0x23a60000)
  |    the space 116544K,  46% used [0x07340000, 0x0a8aa2d0, 0x0a8aa400, 0x0e510000)
  |  compacting perm gen  total 131072K, used 47427K [0x23a60000, 0x2ba60000, 0x2ba60000)
  |    the space 131072K,  36% used [0x23a60000, 0x268b0fb0, 0x268b1000, 0x2ba60000)No shared spaces configured.
  | }
  | 

Now with my application deployed perm gen space is used 36%. Fine.

Now I undeploy the application from the server while keeping it running. And after few minutes of time this is the output of GC.

  | {Heap before gc invocations=199:
  |  def new generation   total 13184K, used 12548K [0x03a60000, 0x048a0000, 0x07340000)
  |   eden space 11776K, 100% used [0x03a60000, 0x045e0000, 0x045e0000)
  |   from space 1408K,  54% used [0x04740000, 0x04801160, 0x048a0000)
  |   to   space 1408K,   0% used [0x045e0000, 0x045e0000, 0x04740000)
  |  tenured generation   total 116544K, used 94782K [0x07340000, 0x0e510000, 0x23a60000)
  |    the space 116544K,  81% used [0x07340000, 0x0cfcf8d0, 0x0cfcfa00, 0x0e510000)
  |  compacting perm gen  total 131072K, used 70680K [0x23a60000, 0x2ba60000, 0x2ba60000)
  |    the space 131072K,  53% used [0x23a60000, 0x27f66110, 0x27f66200, 0x2ba60000)
  | No shared spaces configured.
  | [GC 107330K->95565K(129728K), 0.0289821 secs]
  | Heap after gc invocations=200:
  |  def new generation   total 13184K, used 185K [0x03a60000, 0x048a0000, 0x07340000)
  |   eden space 11776K,   0% used [0x03a60000, 0x03a60000, 0x045e0000)
  |   from space 1408K,  13% used [0x045e0000, 0x0460e548, 0x04740000)
  |   to   space 1408K,   0% used [0x04740000, 0x04740000, 0x048a0000)
  |  tenured generation   total 116544K, used 95380K [0x07340000, 0x0e510000, 0x23a60000)
  |    the space 116544K,  81% used [0x07340000, 0x0d065260, 0x0d065400, 0x0e510000)
  |  compacting perm gen  total 131072K, used 70680K [0x23a60000, 0x2ba60000, 0x2ba60000)
  |    the space 131072K,  53% used [0x23a60000, 0x27f66110, 0x27f66200, 0x2ba60000)
  | No shared spaces configured.
  | }
  | 

Now here we can see perm gen space is used 53% and I have my application undeployed. Also I have not hit the server URL even once. 

So here my doubt is even by increasing the perm gen space It will just increase the longevity of the server life before the error comes. But the error is suppose to come in near future.

Is my understanding correct. Or am I really perplexed by the system's  internal stuff.

Please provide me guiding lines.

Thanks in Advance

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4163869#4163869

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4163869



More information about the jboss-user mailing list