Re: Compute sizes of classes loaded in perm gen

2014-03-21 Thread Sergei Mihhailov
mpt 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

Re: Compute sizes of classes loaded in perm gen

2014-03-21 Thread Dmitry Samersoff
gei, >> >> 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 &

Re: Compute sizes of classes loaded in perm gen

2014-03-21 Thread Sergei Mihhailov
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

Re: Compute sizes of classes loaded in perm gen

2014-03-21 Thread Dmitry Samersoff
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 functional

Re: Compute sizes of classes loaded in perm gen

2014-03-20 Thread Krystal Mok
; and JVMTI agent. >> >> Are you suggesting that I should write Serviceability Agent instead? If >> yes, then could you please pinpoint me into the right direction? Because it >> wasn't clear to me how can I write my own custom Serviceability Agent. >> >> By

Re: Compute sizes of classes loaded in perm gen

2014-03-20 Thread Sergei Mihhailov
Thank you for response, Kris! The only goal I'm trying to achieve is to to compute sizes of classes loaded in perm gen. As I've understood, this is possible only by using Serviceability Agent? - Sergei On 20.03.2014 00:12, Krystal Mok wrote: Hi Sergei, "jmap -permstat

Re: Compute sizes of classes loaded in perm gen

2014-03-19 Thread Krystal Mok
gt; yes, then could you please pinpoint me into the right direction? Because it > wasn't clear to me how can I write my own custom Serviceability Agent. > > By the way, is it possible to compute sizes of classes loaded in perm gen > only by using "Java Agent" and JVMTI age

Re: Compute sizes of classes loaded in perm gen

2014-03-19 Thread Sergei Mihhailov
the way, is it possible to compute sizes of classes loaded in perm gen only by using “Java Agent” and JVMTI agent?- Sergei 19.03.2014, 17:39, "Krystal Mok" :Hi Sergei, Are you using PermStat in the context of Serviceability Agent? In other words, is the agent you're writing a "

Re: Compute sizes of classes loaded in perm gen

2014-03-19 Thread Sergei Mihhailov
the way, is it possible to compute sizes of classes loaded in perm gen only by using “Java Agent” and JVMTI agent?- Sergei 19.03.2014, 17:39, "Krystal Mok" :Hi Sergei, Are you using PermStat in the context of Serviceability Agent? In other words, is the agent you're writing a "

Re: Compute sizes of classes loaded in perm gen

2014-03-19 Thread Krystal Mok
ect to the target VM from the other types of agents, so you can't mix them up. - Kris On Wednesday, March 19, 2014, Sergei Mihhailov wrote: > Greetings, > > I'm writing special purpose java agent to compute sizes of classes loaded > in perm gen. Basically reimplementing

Compute sizes of classes loaded in perm gen

2014-03-19 Thread Sergei Mihhailov
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