Re: [controller-dev] Fwd: Out of memory exception


Devin Avery <davery@...>
 

Luis -

If you have some time to attach Jconsole to the console process where this
is an error we should watch the growth of perm gen. If we just need more
space to hold all of the classes that is fine. But if we are ³churning²
(growing until we garbage collect) our perm gen space then we may have a
problem. In at least Java 1.7 and earlier I know I have run into issues
where we get an out of memory error even though after GC in perm gen there
should be plenty - it had to do with some race condition in the GC of Perm
Gen.

If you have time to check that it would be awesome. If our PermGen is
growing unbounded then that means we have some class loading issues
somewhereŠ Happy to provide more details if you have the time to check
this out.

Thanks,

Devin

On 5/5/14, 6:37 PM, "Luis Gomez" <ecelgp@...> wrote:

Hi controller devs,

Some time ago I wrote a bug to address the default -Xmx for the editions,
now it looks like we have to look at the XX:MaxPermSize as well. I will
add this in the bug.

https://bugs.opendaylight.org/show_bug.cgi?id=772


Begin forwarded message:

From: "Debolina Bandyopadhyay (dbandyop)" <dbandyop@...>
Subject: Re: [integration-dev] Out of memory exception
Date: May 5, 2014 at 2:21:29 PM PDT
To: "Raghurama Bhat (ragbhat)" <ragbhat@...>, "Christopher
O'SHEA" <christopher.o.shea@...>,
"integration-dev@..."
<integration-dev@...>

This works perfectly. Thanks, Raghu.

From: Raghurama Bhat (ragbhat)
Sent: Monday, May 05, 2014 1:49 PM
To: Debolina Bandyopadhyay (dbandyop); Christopher O'SHEA;
integration-dev@...
Subject: Re: [integration-dev] Out of memory exception

Debolina,

From the exception, it looks like you are running out of Permgen space.
-Xmx option only increases the heap memory. We need to pass the XX
option (As in -XX:MaxPermSize=256m) to the JVM to increase Permgen
space.


Can you please try adding this option to run.sh?


./run.sh ­Xmx2G ­XX:MaxPermSize=256M


Thanks,


‹Raghu

From: "Debolina Bandyopadhyay (dbandyop)" <dbandyop@...>
Date: Monday, May 5, 2014 at 1:37 PM
To: Christopher O'SHEA <christopher.o.shea@...>,
"integration-dev@..."
<integration-dev@...>
Subject: Re: [integration-dev] Out of memory exception

Even after making it 2G, I¹m facing the same issue.

Thanks,
Debolina

From: Christopher O'SHEA [mailto:christopher.o.shea@...]
Sent: Monday, May 05, 2014 12:35 PM
To: Debolina Bandyopadhyay (dbandyop);
integration-dev@...
Subject: Re: [integration-dev] Out of memory exception

Hi Debolina,

What is the Xmx size you start with? Cause I believe the SP takes up
more memory than the recommended 1G.
In the Integration test setup we start it with 2G.

./run.sh -Xmx2G

Thanks
Chris
From: "Debolina Bandyopadhyay (dbandyop)" <dbandyop@...>
Date: Monday, May 5, 2014 at 12:20 PM
To: "integration-dev@..."
<integration-dev@...>
Subject: [integration-dev] Out of memory exception

Hello,

Whenever I¹m trying to debug, in the serviceprovider distribution, I¹m
hitting the java out of memory exception. [~
/opendaylight/integration/distributions/serviceprovider/target/
distributions-serviceprovider-0.1.2-SNAPSHOT-osgipackage/opendaylight]

at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51]2014-05-05
12:07:55.225 PDT

[DeadlockMonitor{TransactionIdentifier{name='ConfigTransaction-78-80'}}]
WARN o.o.c.c.m.i.DeadlockMonitor$DeadlockMonitorRunnable
-ModuleIdentifier{factoryName='bgp-reachability-ipv4',
instanceName='example-ipv
4-topology'} did not finish after 7513 ms 2014-05-05 12:07:57.552 PDT

[DeadlockMonitor{TransactionIdentifier{name='ConfigTransaction-78-80'}}]
WARN o.o.c.c.m.i.DeadlockMonitor$DeadlockMonitorRunnable
-ModuleIdentifier{factoryName='bgp-reachability-ipv4',
instanceName='example-ipv
4-topology'} did not finish after 9839 ms2014-05-05 12:08:18.916 PDT
[ContainerBackgroundProcessor[StandardEngine[Catalina]]] ERROR
o.o.c.l.b.i.UncaughtExceptionPolicy - Thread
Thread[ContainerBackgroundProcessor[StandardEngine[Catalina]],5,main]
died because of an uncaught exception java.lang.OutOfMemoryError:
PermGen space

Is this a known issue?

Thanks,
Debolina



_______________________________________________
integration-dev mailing list
integration-dev@...
https://lists.opendaylight.org/mailman/listinfo/integration-dev
_______________________________________________
controller-dev mailing list
controller-dev@...
https://lists.opendaylight.org/mailman/listinfo/controller-dev

Join {integration-dev@lists.opendaylight.org to automatically receive all group messages.