Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-boot-admin
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
spring-boot-admin
Commits
5e59765b
Commit
5e59765b
authored
Apr 10, 2016
by
Johannes Edmeier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add non-heap metrics and threads.totalStarted
parent
053f42ea
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
2 deletions
+30
-2
jvmStats.tpl.html
...modules/applications-details/components/jvmStats.tpl.html
+6
-2
memoryStats.js
...ui/modules/applications-details/components/memoryStats.js
+8
-0
memoryStats.tpl.html
...ules/applications-details/components/memoryStats.tpl.html
+16
-0
No files found.
spring-boot-admin-server-ui/modules/applications-details/components/jvmStats.tpl.html
View file @
5e59765b
...
...
@@ -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>
...
...
spring-boot-admin-server-ui/modules/applications-details/components/memoryStats.js
View file @
5e59765b
...
...
@@ -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
)
{
...
...
spring-boot-admin-server-ui/modules/applications-details/components/memoryStats.tpl.html
View file @
5e59765b
...
...
@@ -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>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment