The permgen error usually is an overload of classes which means if a
class is loaded and loaded and loaded again.
Maybe we have a problem in our way way instantiate classes dynamically
so that they constantly are reregistered in the classloader and never
dropped.
Just a wild guess here.
Werner
Am 15.10.10 14:32, schrieb Jakob Korherr:
The ThreadLocal should be cleared upon undeploy, but this does not
cause the memory leak mentioned by Stan.
You will get a PermGen error in about an hour.
The "PermGen Error" comes when there is not enough heap space to load
classes. I had this problem yesterday when doing a lot of tests with
MyFaces webapptest.
However, I don't really know how to fix this problem. Has anyone got an idea?
Regards,
Jakob
2010/10/15 Bruno Aranda<[email protected]>:
Using tomcat 7 I get this warning...
SEVERE: The web application [/editor-2.0-SNAPSHOT] created a ThreadLocal
with key of type [java.lang.ThreadLocal] (value
[java.lang.threadlo...@41649a55]) and a value of type
[org.apache.myfaces.config.RuntimeConfig] (value
[org.apache.myfaces.config.runtimecon...@33d063fd]) but failed to remove it
when the web application was stopped. This is very likely to create a memory
leak.
I don't know if the RuntimeConfig could be the one responsible of the leak
in Jboss?
Bruno
On 15 October 2010 13:12,<[email protected]> wrote:
Thanks Werner. Hope someone can take a look before 2.0.3.
Stan
Quoting Werner Punz<[email protected]>:
Am 15.10.10 14:04, schrieb [email protected]:
I'm pretty sure 2.0.1 has a memory leak on undeploy. Mojarra had an
undeploy leak and it took a long time to track it down. The same test I
was using on Mojarra also failed on MyFaces but I haven't had time to
track down the leak in MyFaces.
Maybe this is fixed in 2.0.2? If not maybe someone can go ahead and
take a look? The mem leak keeps MyFaces from passing TCK on JBoss AS.
To test, all you need to do is create a small exploaded JSF app. Then
have a script that touches web.xml every 10 seconds. That will cause
the app to redeploy. You will get a PermGen error in about an hour.
Hi Stan I opened a ticket under
https://issues.apache.org/jira/browse/MYFACES-2942
Just to make sure the info is not lost.
I hope you dont mind that I just copy pasted the info you gave here.
Werner