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
19f030f3
...
19f030f39b03af9134c97b7692d22e21c5fe2f23
authored
2018-04-24 11:30:37 +0200
by
Christian Gerdes
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Verkar som om jag fixade en NullPointer
- getSystemFileDescriptorsPercentUsed
1 parent
b747bb02
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
LILJM/se/lil/jm/JmxMon.java
LILJM/se/lil/jm/JmxMon.java
View file @
19f030f
...
...
@@ -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"
);
double
open
=
ldo
.
getCurrentValue
();
double
max
=
ldm
.
getCurrentValue
();
return
(
open
/
max
)
*
100
D
;
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