Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] java.lang.OutOfMemoryError: PermGen space whenweaving.

Note that PermGen space errors are not always indicative of memory leaks,
e.g.:

129490: i am getting more and more out of PermGen space problems..
https://bugs.eclipse.org/bugs/show_bug.cgi?id=129490

Summarizing what we learned with Eclipse on that bug report, the thing to
try is to first make sure that you have the latest VM such as the Sun JRE 5
update 9 because some bugs related to PermGen space growth were fixed after
update 6 (if I recall correctly this error won't happen on JRockit or the
IBM VM).  If that doesn't resolve it try to raise your PermGen space to
something reasonable for your application, e.g. -XX:MaxPermSize=128m.  If
you still get the error after that, there probably is a leak so please do
create a bug.

Mik

> -----Original Message-----
> From: aspectj-users-bounces@xxxxxxxxxxx [mailto:aspectj-users-
> bounces@xxxxxxxxxxx] On Behalf Of Abramovich, Dan
> Sent: Thursday, October 12, 2006 11:28 AM
> To: aspectj-users@xxxxxxxxxxx
> Subject: [aspectj-users] java.lang.OutOfMemoryError: PermGen space
> whenweaving.
> 
> 
> Hi,
> 
> I'm pretty convinced there's a memory leak w/ the weaver. I have an ant
> build script that just weaves a jar and then deletes the output jar in a
> loop. After some number of iterations (31) I get an OutOfMemory error
> because I'm out of perm space. It seems that some classes are being loaded
> to weave the jar are not being released each time. The aspect that I'm
> weaving is just a simple tracer aspect that should with a join point
> doesn't even match the classes in the jar (log4.jar in this case since
> it's readily available).
> 
> I'm using JDK 1.5 and I just downloaded the last night's (10-11) build to
> make sure this wasn't fixed post AJ 1.5.2.
> 
> I'd like to file a bug/post the test case - is there an open issue for
> this already? Looking through the bugzilla it's hard to tell if something
> covers this. If I don't get further instruction I'll post a new issue.
> 
> Thanks,
> -Dan
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users



Back to the top