tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bharath chinnadurai maharajan <>
Subject Question on bug# 53267 in tomcat 7.0.47
Date Wed, 11 Dec 2013 19:36:40 GMT
This is my first post to the tomcat forum, so please excuse of any errors.

I am looking at a fix for one of the bug (bug id#53267) in Catalina. Ref -

The bug is in RESOLVED FIXED state.

As per this bug, the one hr time interval (when a GC event is kicked off)
was changed to Long.MAX ( a very long time). It is also mentioned the value
is configurable using a system property -

When I tried setting this property to 3600000, assuming a full GC will be
kicked every hour it did not happen. Curious, I looked into the code for
version 7.0.47, that config variable was not used in

Code snippet from JreMemoryLeakPreventionListener in tomcat version 7.0.47 :

 Class<?> clazz = Class.forName("sun.misc.GC");
                        Method method = clazz.getDeclaredMethod(
                                new Class[] {long.class});
                        method.invoke(null, Long.valueOf(Long.MAX_VALUE -

Instead of using the Long.MAX_VALUE-1 by default, it should try and resolve
if from the aforementioned system property.

Am I wrong to assume the config variable will be present in 7.0.47?

Thanks for your time, and my sincere apologies if I had wasted it.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message