Skip to content

Commit

Permalink
[JENKINS-22791] ;
Browse files Browse the repository at this point in the history
  • Loading branch information
escoem committed Oct 6, 2017
1 parent 6e0769a commit cfd0268
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -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');
}

Expand All @@ -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) {
Expand Down

0 comments on commit cfd0268

Please sign in to comment.