Comments (1)
Thanks, I know what you mean - but I would not call it a leak.
Jvmtop needs the information which PID/JVMs have been requested before in order
to not need to request them within every refresh interval as this would
increase cpu usage significantly.
Please note that terminated processes are not the only reason why jvmtop cannot
connect to them. Security-related reasons are very common, too.
Your patch would fix the memory leak but with the cost that jvmtop would try to
connect to all others processes which are still alive but could not be
connected for some reason within every refresh interval.
Additionally, the memory increment is minor for most users/use case scenarios
so I did a trade-off between memory and cpu usage.
However, I agree that the current solution isn't perfect - jvmtop should remove
all Map entries for processes which have really been terminated - but keep all
others.
Original comment by [email protected]
on 18 Aug 2014 at 3:47
from jvmtop.
Related Issues (20)
- Resolve symlinks to shell wrapper location HOT 2
- Not able to launch on OS X Mavericks HOT 1
- please provide source code downloadable file HOT 1
- APIs for jvmtop HOT 2
- NOT COMPATIBLE WITH RED_HAT_5 HOT 10
- sles11 s390x with IBM SDK - java.io.IOException: ATTACH_ERR HOT 1
- Enhancement : Need Break-up details on NHCUR HOT 2
- Connecting to a PID with -p or --pid does not work HOT 1
- Don't cut thread list in detail mode (as option) HOT 2
- Add sort options in detail mode HOT 1
- reports incorrect cpu usage when running on multi core server HOT 3
- ERROR: Connection refused/access denied HOT 5
- jvmtop.sh cannot be linked HOT 1
- HPMAX returns the committed memory of the application and not the actual memory allocated HOT 1
- ERROR: Connection refused/access denied HOT 1
- Processes running under a user with no shell cannot be examined by jvmtop HOT 2
- "Once" function does not show threads for PID
- Improve error message for AttachNotSupportedException
- jvmtop.bat throws an exception when JAVA_HOME has spaces
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 jvmtop.