Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OutOfMemoryError: PermGen space #6

Closed
krevelen opened this issue Mar 5, 2013 · 4 comments
Closed

OutOfMemoryError: PermGen space #6

krevelen opened this issue Mar 5, 2013 · 4 comments
Assignees
Labels

Comments

@krevelen
Copy link

krevelen commented Mar 5, 2013

Running three interdependent eve-core-1.0.2 agent servlets in Tomcat 7.0.30 (even with JRE args "-Xmx512m -XX:MaxPermSize=128m"), I get PermGen memory errors at various points during execution, almost right from the start:

Exception in thread "http-bio-8080-exec-5" java.lang.OutOfMemoryError: PermGen space
at sun.misc.Unsafe.defineClass(Native Method)
at sun.reflect.ClassDefiner.defineClass(ClassDefiner.java:63)
at sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:399)
at sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:396)
at java.security.AccessController.doPrivileged(Native Method)
at sun.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:395)
at sun.reflect.MethodAccessorGenerator.generateSerializationConstructor(MethodAccessorGenerator.java:113)
at sun.reflect.ReflectionFactory.newConstructorForSerialization(ReflectionFactory.java:331)
at java.io.ObjectStreamClass.getSerializableConstructor(ObjectStreamClass.java:1356)
at java.io.ObjectStreamClass.access$1500(ObjectStreamClass.java:69)
at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:480)
at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:455)
at java.security.AccessController.doPrivileged(Native Method)
at java.io.ObjectStreamClass.(ObjectStreamClass.java:455)
at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:352)
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:589)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1601)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1514)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1750)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
at com.almende.eve.state.ConcurrentFileState.read(ConcurrentFileState.java:139)
at com.almende.eve.state.ConcurrentFileState.get(ConcurrentFileState.java:232)
at com.almende.eve.state.AbstractState.getAgentType(AbstractState.java:60)
at com.almende.eve.agent.AgentFactory.getAgent(AgentFactory.java:268)
at com.almende.eve.agent.AgentFactory.invoke(AgentFactory.java:474)
at com.almende.eve.transport.http.AgentServlet.doPost(AgentServlet.java:145)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)

@ghost ghost assigned ludost Mar 5, 2013
@ludost
Copy link
Member

ludost commented Mar 5, 2013

Although not proven yet, I strongly suspect the lack of proxy-dereferencing to be the reason for this issue. I'll test (and fix) this theory today.

@ludost
Copy link
Member

ludost commented Mar 5, 2013

I can't conclusively reproduce this issue. Current potential reasons are: the proxies, Jackson deserialization and the ObjectStreamReader in the State modules.

@ludost
Copy link
Member

ludost commented May 10, 2013

Hi Rick,

Is this still an issue in All4Green? Uptill now I only encountered PermGen Out-of-Memory errors when reloading the application in Jetty several times. This is due to the fact that the class definitions themselves are not dereferenced, nor garbage collected.

@krevelen
Copy link
Author

Issue has been tracked to originate from elsewhere, thanks!

2013/5/10 Ludo Stellingwerff notifications@github.com

Hi Rick,

Is this still an issue in All4Green? Uptill now I only encountered PermGen
Out-of-Memory errors when reloading the application in Jetty several times.
This is due to the fact that the class definitions themselves are not
dereferenced, nor garbage collected.


Reply to this email directly or view it on GitHubhttps://github.com//issues/6#issuecomment-17718018
.

@ludost ludost closed this as completed May 10, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants