App server runs out of memory after deploying zanata.war about 5 times

Description

Description of problem:

If the webapp is deployed multiple times (eg during development), it causes a PermGen leak, eventually leading to java.lang.OutOfMemoryError: PermGen space

Version-Release number of selected component (if applicable):
3.4.0-SNAPSHOT

How reproducible:
100%

Steps to Reproduce:
1. Deploy zanata.war [touch zanata.war.dodeploy and wait about 25 sec]
2. Undeploy zanata.war [touch zanata.war.undeploy and wait about 5 sec]
3. Generate a thread dump using Ctrl-\ 4. Repeat 5 or 6 times

Actual results:

  • Thread dump shows "log4j mail appender" and "GWTEventService-UserActivityScheduler" still running after each undeploy.

  • After about 5 iterations: java.lang.OutOfMemoryError: PermGen space, server unresponsive

Expected results:

  • Thread dump does not show "log4j mail appender" and "GWTEventService-UserActivityScheduler" running.

  • No OutOfMemoryError.

Additional info:
https://github.com/mjiderhamn/classloader-leak-prevention looks promising

Environment

None

Assignee

Sean Flanigan

Reporter

Sean Flanigan

Labels

Tested Version/s

None

Components

Priority

unspecified
Configure