mirror of https://github.com/apache/activemq.git
https://issues.apache.org/jira/browse/AMQ-5289 - memory % stat was removed from dstat command. Bring it back
This commit is contained in:
parent
c53b99c14d
commit
0f4a9b78b1
|
@ -81,8 +81,8 @@ public class DstatCommand extends AbstractJmxCommand {
|
|||
String query = JmxMBeansUtil.createQueryString(queryString, "*");
|
||||
List queueList = JmxMBeansUtil.queryMBeans(createJmxConnection(), query);
|
||||
|
||||
final String header = "%-50s %10s %10s %10s %10s %10s %10s";
|
||||
final String tableRow = "%-50s %10d %10d %10d %10d %10d %10d";
|
||||
final String header = "%-50s %10s %10s %10s %10s %10s %10s %10s";
|
||||
final String tableRow = "%-50s %10d %10d %10d %10d %10d %10d %10d";
|
||||
|
||||
// sort list so the names is A..Z
|
||||
Collections.sort(queueList, new ObjectInstanceComparator());
|
||||
|
@ -118,8 +118,8 @@ public class DstatCommand extends AbstractJmxCommand {
|
|||
String query = JmxMBeansUtil.createQueryString(queryString, "Queue");
|
||||
List queueList = JmxMBeansUtil.queryMBeans(createJmxConnection(), query);
|
||||
|
||||
final String header = "%-50s %10s %10s %10s %10s %10s %10s";
|
||||
final String tableRow = "%-50s %10d %10d %10d %10d %10d %10d";
|
||||
final String header = "%-50s %10s %10s %10s %10s %10s %10s %10s";
|
||||
final String tableRow = "%-50s %10d %10d %10d %10d %10d %10d %10d";
|
||||
|
||||
context.print(String.format(Locale.US, header, "Name", "Queue Size", "Producer #", "Consumer #", "Enqueue #", "Dequeue #", "Forward #", "Memory %"));
|
||||
|
||||
|
@ -154,8 +154,8 @@ public class DstatCommand extends AbstractJmxCommand {
|
|||
String query = JmxMBeansUtil.createQueryString(queryString, "Topic");
|
||||
List topicsList = JmxMBeansUtil.queryMBeans(createJmxConnection(), query);
|
||||
|
||||
final String header = "%-50s %10s %10s %10s %10s %10s %10s";
|
||||
final String tableRow = "%-50s %10d %10d %10d %10d %10d %10d";
|
||||
final String header = "%-50s %10s %10s %10s %10s %10s %10s %10s";
|
||||
final String tableRow = "%-50s %10d %10d %10d %10d %10d %10d %10d";
|
||||
|
||||
// sort list so the names is A..Z
|
||||
Collections.sort(topicsList, new ObjectInstanceComparator());
|
||||
|
|
Loading…
Reference in New Issue