tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r886774 - /tomcat/trunk/java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java
Date Thu, 03 Dec 2009 13:24:16 GMT
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


Mime
View raw message