Re: Groovy and Camel PermGen troubles with Java 1.7

2017-01-20 Thread Zoran Regvart
Hi Andrei, it seems that there are leftover references to the Script classes which causes them not to be garbage collected. I've created a patch that I believe will solve this and logged a JIRA issue[1] You can test if this helps in your case by modifying the `GroovyLanguage.java` as in[1] and rep

Groovy and Camel PermGen troubles with Java 1.7

2017-01-20 Thread artaxerxe
As you know, Java isn't getting rid of PermGen memory area until Java 1.8. This means that if you are loading a lot of classes using a Java 1.7 JVM without assuring they are cleared when no longer needed, you will sooner or later get a PermGen OutOfMemory error. I'm using Camel 2.16.3 inside an OS