Comments (2)
One of the process entries in your system is causing the issue.
The 3 strings passed to ProcessInfo from LinuxProcessInfoParser are command, name, and owner.
If command was null, it would have had an exception in LinuxProcessInfoParser.
I suspect it is either name or owner. Owner cannot be blank.
In /proc/PID/status of the bad process, the 'Name:' field is blank.
One could argue that javasysmon shouldn't fail on blank 'name' but one could also argue processes shouldn't have blank process names either.
To fix javasysmon, getFirstMatch() in LinuxProcessInfoParser should return "" if matcher.group(1) is null.
from javasysmon.
I don't think that asking people to change their processes on the server because one of the libraries can't survive an empty name is a valid response here.
It is simply not always possible in production environment shared my multiple teams.
To me the fix looks trivial.
from javasysmon.
Related Issues (20)
- Access violation in call to processTable() - (Win7 64bit) HOT 6
- Process handle leak when killing a process on Windows
- NPE when try to kill linux process running JDK8 HOT 5
- When SWAP is totally disabled under Windows JavaSysMon returns incorrect SWAP values
- When java is started as a service under Windows, JavaSysMon may not find the current process
- x86 Version HOT 7
- Clean way to exec a new sub process and get its PID to be able to kill it?
- Uncompatible DLL loaded on Windows 64-bit HOT 12
- windows 32bit dll was incorrectly compiled as 64bit HOT 3
- No match found on RHEL 6.6
- http://continuousdelivery.com/downloads/javasysmon/javasysmon-0.3.5.jar is dead HOT 1
- Jar File Download Links is Dead(404)
- object.swap() returns not free memory, but occupied memory HOT 1
- Network and Disk stats
- Add a function to getCurrentOsProcess()
- com.jezhumble.javasysmon.WindowsMonitor.processTable() leads sometimes to access violation under Windows10
- ProcessInfo.getCommand() leads to ??? under Windows 10
- fix links in the readme file
- missing javadocs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from javasysmon.