Compute sizes of classes loaded in perm gen
Sergei Mihhailov
rsi2m at yandex.ru
Fri Mar 21 10:25:38 UTC 2014
Thanks for response Dmitry!
But why I shouldn't use SA for live process?
- Sergei
On 21.03.2014 11:39, Dmitry Samersoff wrote:
> Sergei,
>
> You shouldn't go with SA.
>
> Take a look at JVMTI class load/unload events.
>
> -Dmitry
>
>
> On 2014-03-21 13:29, Sergei Mihhailov wrote:
>> Dmitry,
>>
>> I need this information for live process.
>>
>> - Sergei
>> On 21.03.2014 11:01, Dmitry Samersoff wrote:
>>> Sergei,
>>>
>>> Does you need this information for coredump or for live process?
>>>
>>> -Dmitry
>>>
>>>
>>> On 2014-03-19 17:24, Sergei Mihhailov wrote:
>>>> Greetings,
>>>>
>>>> I’m writing special purpose java agent to compute sizes of classes
>>>> loaded in perm gen. Basically reimplementing some functionality of “jmap
>>>> -permstat”. But in order to do that, I need to get instances of
>>>> InstanceKlass for all loaded classes.
>>>>
>>>> I’ve looked up PermStat source code, and tried to use it internally in
>>>> my agent using its start() method. This attempt failed :
>>>> “sun.jvm.hotspot.debugger.DebuggerException: Can't attach to the
>>>> process”
>>>>
>>>> Is it somehow possible to compute sizes of classes loaded in perm gen?
>>>>
>>>>
>>>> Thanks,
>>>> Sergei
>>>>
>
More information about the serviceability-dev
mailing list