activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject svn commit: r788316 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/usage/Usage.java
Date Thu, 25 Jun 2009 10:50:34 GMT
Author: gtully
Date: Thu Jun 25 10:50:34 2009
New Revision: 788316

URL: http://svn.apache.org/viewvc?rev=788316&view=rev
Log:
add reduced version of patch from: https://issues.apache.org/activemq/browse/AMQ-2158 - warn
on exceeding 80% - leave rest at debug level

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/usage/Usage.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/usage/Usage.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/usage/Usage.java?rev=788316&r1=788315&r2=788316&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/usage/Usage.java (original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/usage/Usage.java Thu Jun
25 10:50:34 2009
@@ -240,7 +240,10 @@
     private void fireEvent(final int oldPercentUsage, final int newPercentUsage) {
         if (debug) {
             LOG.debug("Memory usage change.  from: " + oldPercentUsage + ", to: " + newPercentUsage);
-        }    
+        }   
+        if (newPercentUsage >= 80) {
+            LOG.warn("Memory usage is now over 80%!");
+        }
              
         if (started.get()) {
             // Switching from being full to not being full..



Mime
View raw message