Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Products
/
LILOM
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Issues
2
Merge Requests
0
Wiki
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
34b74092
...
34b74092fee87d9260faad53d8805a27ea094640
authored
2018-04-25 17:57:09 +0200
by
Christian Gerdes
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
https://git.lightsinline.se/products/LILOM.git
2 parents
56b16db9
5791fcf8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
LILJM/se/lil/jm/JmxMon.java
LILJM/se/lil/jm/JmxMon.java
View file @
34b7409
...
...
@@ -392,9 +392,13 @@ public class JmxMon {
public
double
getSystemFileDescriptorsPercentUsed
()
{
LongDelta
ldo
=
getAttributeLongDelta
(
"java.lang:type=OperatingSystem"
,
"OpenFileDescriptorCount"
);
LongDelta
ldm
=
getAttributeLongDelta
(
"java.lang:type=OperatingSystem"
,
"MaxFileDescriptorCount"
);
if
(
ldo
!=
null
&&
ldm
!=
null
)
{
double
open
=
ldo
.
getCurrentValue
();
double
max
=
ldm
.
getCurrentValue
();
return
(
open
/
max
)
*
100
D
;
}
else
{
return
0
;
}
}
public
double
getHeapUsedMB
()
{
...
...
Please
register
or
sign in
to post a comment