allocation-tracker
allocation-tracker copied to clipboard
javaagent for finding excessive object allocations
In your code you just calculate the count of objects, But We need too the size, So We added Instrumentation memory counter based on https://www.javaspecialists.eu/archive/Issue142.html
Introduced an agentmain method and enabling retransform support for the agent allows to dynamically attach the allocation-tracker. The following is an example for dynamically attaching a the agent locally. The...
Right now the agent requires a MBean to control it. I prefer this solution but there might be exotic cases where a mbean doesn't work. In that case an "auto"...
The current code works, but I think we could do better.
Right now the agent only warns when including java.\* classes. However there should be a sensible exclude list for jrockit core classes which should not be instrumented.
Right now the agent only warns when including java.\* classes. However there should be a sensible exclude list for IBM J9 core classes which should not be instrumented.
Right now the agent only warns when including java.\* classes. However there should be a sensible exclude list for hotspot/openjdk core classes which should not be instrumented.
Currently the agent is tested to work only on java6+