Fedora Commons 3.5: java.lang.OutOfMemoryError: PermGen space

145 views
Skip to first unread message

A Laxmi

unread,
Jul 7, 2014, 12:33:29 PM7/7/14
to fedora-c...@googlegroups.com
Hi,

I have searched in this forum and various other places to see if there was any solution that could fix the problem I have with Fedora Commons 3.5. I got the following exception (catalina.out from $FEDORA_HOME/tomcat/logs):

Exception in thread "ActiveMQ Session Task-2" java.lang.OutOfMemoryError: PermGen space
              at java.lang.ClassLoader.defineClass1(Native Method)
              at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
              ....


I tried increasing the permgen space by setting the following in catalina.sh.

export JAVA_OPTS="-Xms1024m -Xmx10246m -XX:NewSize=256m -XX:MaxNewSize=356m -XX:PermSize=256m -XX:MaxPermSize=356m"

The error did disappear for a while but it showed up again. I think there is a something more critical to it and possibly a memory leak in Fedora Commons 3.5. Any suggestions please?

thanks for any help!


Benjamin Armintor

unread,
Jul 7, 2014, 1:06:35 PM7/7/14
to A Laxmi, fedora-c...@googlegroups.com
Laxmi-

I wish I could give you better advice, but: increase the perm gen again.  I have a stable Fedora 3.5 that runs... well, it just runs. But I give it up to 3G of heap (with no additional permgen setting), and we don't use the Messaging module (so I have no experience there).

More broadly, if there's no issues in Jira or emails to the list about 3.5, you're going to have to take the lead on finding the issues yourself- I would try to upgrade to a more modern version personally, as 3.5 was released quite some time ago and the codebase has changed a great deal since then.

- Ben


--
You received this message because you are subscribed to the Google Groups "Fedora Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fedora-communi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

A Laxmi

unread,
Jul 7, 2014, 2:20:47 PM7/7/14
to fedora-c...@googlegroups.com, a.laks...@gmail.com
Thanks for your input, Ben! That certainly does help. Since you have no issue using it without the JMS, and also looking at the error, the issue seems to be more about the JMS in particular. I was thinking about upgrading to a latest version as well but before I do, I thought I would post here for some inputs. Thanks for your help!

Ernie Gillis

unread,
Jul 7, 2014, 8:31:16 PM7/7/14
to fedora-c...@googlegroups.com, a.laks...@gmail.com
I may have a similar issue, that I'm in the midst of debugging. I think it's related to JMS (but can't really confirm since nothing clear gets written to the log): https://groups.google.com/d/topic/fedora-community/2P_s4QaUh24/discussion

The memory leak has been driving me crazy. Any solution you find, please post (pretty please, with candy!) :)

A Laxmi

unread,
Jul 9, 2014, 10:50:39 AM7/9/14
to fedora-c...@googlegroups.com, a.laks...@gmail.com
Hey Ernie,

I know it must be very frustrating. I am using Islandora 7.3 as well but with fedora commons 3.5. Since I had memory leak issues with Fedora Commons 3.5, I thought I would try 3.7.1, but looks like you are using 3.7.1 and still have a similar issue. I haven't figured out any fix yet. I will post if I have any update. I wonder and would really want to know how those huge repositories that use islandora running Fedora Commons were able to overcome these errors. If someone can throw some light on it, that would be great!

Laxmi

Andrew Woods

unread,
Jul 9, 2014, 10:55:20 AM7/9/14
to A Laxmi, fedora-community
Hello Ernie and Laxmi,
Have you queried the Islandora lists?
Andrew

A Laxmi

unread,
Jul 9, 2014, 11:04:24 AM7/9/14
to fedora-c...@googlegroups.com, a.laks...@gmail.com
@awoods:

I just posted in Islandora. Thanks for checking!

Laxmi

Ernie Gillis

unread,
Jul 9, 2014, 11:30:19 AM7/9/14
to A Laxmi, fedora-c...@googlegroups.com
I have posted to the Islandora list, and thought I'd post here since it seemed more a Fedora issue. It's a hard issue to track down and sort out :-/


You received this message because you are subscribed to a topic in the Google Groups "Fedora Community" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/fedora-community/n1EwAGoLsfI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to fedora-communi...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Ernest Gillis
Manager of Learning Resources Web Development
Stan Getz Media Center and Library
Phone: 617-747-8533
E-Mail: egi...@berklee.edu
Reply all
Reply to author
Forward
0 new messages