[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-serviceability-dev
Subject:    Re: Compute sizes of classes loaded in perm gen
From:       Sergei Mihhailov <rsi2m () yandex ! ru>
Date:       2014-03-21 10:25:38
Message-ID: 532C13A2.6090008 () yandex ! ru
[Download RAW message or body]

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=92m writing special purpose java agent to compute sizes of classes
>>>> loaded in perm gen. Basically reimplementing some functionality of =93=
jmap
>>>> -permstat=94. But in order to do that, I need to get instances of
>>>> InstanceKlass for all loaded classes.
>>>>
>>>> I=92ve looked up PermStat source code, and tried to use it internall=
y in
>>>> my agent using its start() method. This attempt failed :
>>>> =93sun.jvm.hotspot.debugger.DebuggerException: Can't attach to the
>>>> process=94
>>>>
>>>> Is it somehow possible to compute sizes of classes loaded in perm ge=
n?
>>>>
>>>>
>>>> Thanks,
>>>> Sergei
>>>>
>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic