brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From henev...@apache.org
Subject [15/31] git commit: collect tomcat stats less often as it appears to be expensive
Date Tue, 29 Jul 2014 19:32:10 GMT
collect tomcat stats less often as it appears to be expensive


Project: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/commit/d755ab48
Tree: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/tree/d755ab48
Diff: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/diff/d755ab48

Branch: refs/heads/master
Commit: d755ab48842868e7df5177f6a0a6462200e3d429
Parents: a7885b5
Author: Alex Heneveld <alex.heneveld@cloudsoftcorp.com>
Authored: Wed Jul 23 17:42:21 2014 -0700
Committer: Alex Heneveld <alex.heneveld@cloudsoftcorp.com>
Committed: Tue Jul 29 10:42:08 2014 -0400

----------------------------------------------------------------------
 .../java/brooklyn/entity/webapp/tomcat/TomcatServerImpl.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/d755ab48/software/webapp/src/main/java/brooklyn/entity/webapp/tomcat/TomcatServerImpl.java
----------------------------------------------------------------------
diff --git a/software/webapp/src/main/java/brooklyn/entity/webapp/tomcat/TomcatServerImpl.java
b/software/webapp/src/main/java/brooklyn/entity/webapp/tomcat/TomcatServerImpl.java
index ea79eb1..a83f284 100644
--- a/software/webapp/src/main/java/brooklyn/entity/webapp/tomcat/TomcatServerImpl.java
+++ b/software/webapp/src/main/java/brooklyn/entity/webapp/tomcat/TomcatServerImpl.java
@@ -29,7 +29,6 @@ import brooklyn.entity.java.JavaAppUtils;
 import brooklyn.entity.webapp.JavaWebAppSoftwareProcessImpl;
 import brooklyn.event.feed.jmx.JmxAttributePollConfig;
 import brooklyn.event.feed.jmx.JmxFeed;
-import brooklyn.util.time.Duration;
 
 import com.google.common.base.Functions;
 import com.google.common.base.Predicates;
@@ -57,7 +56,7 @@ public class TomcatServerImpl extends JavaWebAppSoftwareProcessImpl implements
T
 
             jmxFeed = JmxFeed.builder()
                     .entity(this)
-                    .period(500, TimeUnit.MILLISECONDS)
+                    .period(3000, TimeUnit.MILLISECONDS)
                     .pollAttribute(new JmxAttributePollConfig<Integer>(ERROR_COUNT)
                             .objectName(requestProcessorMbeanName)
                             .attributeName("errorCount"))
@@ -95,6 +94,7 @@ public class TomcatServerImpl extends JavaWebAppSoftwareProcessImpl implements
T
         }
     }
 
+    @SuppressWarnings("rawtypes")
     @Override
     public Class getDriverInterface() {
         return Tomcat7Driver.class;


Mime
View raw message