Commit 5e59765b by Johannes Edmeier

Add non-heap metrics and threads.totalStarted

parent 053f42ea
......@@ -27,11 +27,15 @@
<td ng-bind="$ctrl.metrics['classes.unloaded']"></td>
</tr>
<tr>
<td rowspan="3">Threads</td>
<td>total</td>
<td rowspan="4">Threads</td>
<td>current</td>
<td ng-bind="$ctrl.metrics.threads"></td>
</tr>
<tr>
<td>total started</td>
<td ng-bind="$ctrl.metrics['threads.totalStarted']"></td>
</tr>
<tr>
<td>daemon</td>
<td ng-bind="$ctrl.metrics['threads.daemon']"></td>
</tr>
......
......@@ -37,6 +37,14 @@ module.exports = {
max: ctrl.metrics.heap
};
ctrl.heap.percentUsed = $filter('number')(ctrl.heap.used / ctrl.heap.total * 100, 2);
ctrl.nonheap = {
total: ctrl.metrics['nonheap.committed'],
used: ctrl.metrics['nonheap.used'],
init: ctrl.metrics['nonheap.init'],
max: ctrl.metrics.nonheap
};
ctrl.nonheap.percentUsed = $filter('number')(ctrl.nonheap.used / ctrl.nonheap.total * 100, 2);
};
ctrl.getBarClass = function (percentage) {
......
......@@ -21,4 +21,20 @@
<td>Maximum Heap (-Xmx)</td>
<td>{{$ctrl.heap.max | humanBytes:'K' }}</td>
</tr>
<tr>
<td colspan="2"> <span>Non-Heap Memory ({{ $ctrl.nonheap.used | humanBytes:'K' }} / {{ $ctrl.nonheap.total | humanBytes:'K' }})</span>
<div class="progress" style="margin-bottom: 0px;">
<div class="bar" ng-class="$ctrl.getBarClass($ctrl.nonheap.percentUsed)" style="width: {{$ctrl.nonheap.percentUsed}}%;">{{$ctrl.nonheap.percentUsed}}%</div>
</div>
</td>
</tr>
<tr>
<td>Initial Non-Heap</td>
<td>{{$ctrl.nonheap.init | humanBytes:'K' }}</td>
</tr>
<tr>
<td>Maximum Non-Heap</td>
<td ng-show="$ctrl.nonheap.max > 0">{{$ctrl.nonheap.max | humanBytes:'K' }}</td>
<td ng-show="$ctrl.nonheap.max <= 0">unbounded</td>
</tr>
</table>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment