Skip to content
Permalink
Browse files
[JENKINS-22791] ;
  • Loading branch information
escoem committed Oct 6, 2017
1 parent 6e0769a commit cfd0268183c7cac25acecb84b8a98a219c55561d
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/main/java/com/cloudbees/jenkins/support/impl/HeapHisto.java
@@ -75,7 +75,7 @@ public String call() {
final StringBuilder bos = new StringBuilder();

bos.append("Master Heap Histogram -histo:live");
for (int i=1; i<limit; i++) {
for (int i=0; i<limit; i++) {
bos.append(lines[i]).append('\n');
}

@@ -91,7 +91,7 @@ public void checkRoles(RoleChecker checker) throws SecurityException {
private String getRawLiveHistogram() {
String result;
try {
ObjectName objName = new ObjectName("com.sun.management:type=DiagnosticCommand");;
ObjectName objName = new ObjectName("com.sun.management:type=DiagnosticCommand");
result = (String) ManagementFactory.getPlatformMBeanServer().invoke(objName, "gcClassHistogram", new Object[] {null}, new String[]{String[].class.getName()});
}
catch (InstanceNotFoundException | ReflectionException | MBeanException | MalformedObjectNameException e) {

0 comments on commit cfd0268

Please sign in to comment.