You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2009/12/03 14:24:16 UTC

svn commit: r886774 - /tomcat/trunk/java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java

Author: markt
Date: Thu Dec  3 13:24:15 2009
New Revision: 886774

URL: http://svn.apache.org/viewvc?rev=886774&view=rev
Log:
Only log missing class as an error on Sun JVMs. Likely to be an non-issue for other vendors.

Modified:
    tomcat/trunk/java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java

Modified: tomcat/trunk/java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java?rev=886774&r1=886773&r2=886774&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java (original)
+++ tomcat/trunk/java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java Thu Dec  3 13:24:15 2009
@@ -184,7 +184,13 @@
                             new Class[] {long.class});
                     method.invoke(null, Long.valueOf(3600000));
                 } catch (ClassNotFoundException e) {
-                    log.error(sm.getString("jreLeakListener.gcDaemonFail"), e);
+                    if (System.getProperty("java.vendor").startsWith("Sun")) {
+                        log.error(sm.getString(
+                                "jreLeakListener.gcDaemonFail"), e);
+                    } else {
+                        log.debug(sm.getString(
+                                "jreLeakListener.gcDaemonFail"), e);
+                    }
                 } catch (SecurityException e) {
                     log.error(sm.getString("jreLeakListener.gcDaemonFail"), e);
                 } catch (NoSuchMethodException e) {



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org