|
We have also the same issue. Any solution is welcomed, I would be happy to try a build with a fix for this. We're also seeing a large number of objects 6,143 sessions with 17.9Mb. Can this timeout be added to the standard distribution? We're going OOM as often as 3 times a day. When monit restarts Hudson we blow away the expanded WAR directory which messing with the web.xml a bit much pain. We are also using the Hudson tray applet. Our primary OOM problem seems to be related to the Cobertura reports, by the way, but this is not a small leak either. Hudson ver. 1.353 on Linux, Sun JDK 1.6.0_18 VisualVM showing a large number of sessions. Code changed in hudson Code changed in hudson Integrated in kohsuke :
|
||||||||||||||||||||||||||||||||||||||||||||||
This can be fixed by specifying a session timeout in hudson/main/war/resources/WEB-INF/web.xml:
Index: resources/WEB-INF/web.xml =================================================================== --- resources/WEB-INF/web.xml (revision 24689) +++ resources/WEB-INF/web.xml (working copy) @@ -30,6 +30,10 @@ <display-name>Hudson</display-name> <description>Build management system</description> + <session-config> + <session-timeout>60</session-timeout> + </session-config> + <servlet> <servlet-name>Stapler</servlet-name> <servlet-class>org.kohsuke.stapler.Stapler</servlet-class>