crash when starting profiling

Questions about YourKit Java Profiler
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: crash when starting profiling

Post by Anton Katilin »

Thank you.

The problem seems related with an inability to allocate shared memory blocks.

So, it is interesting to know the output of the following two commands executed on the problematic machines:

sysctl -a | grep shm
ipcs -a
knutwannheden
Posts: 13
Joined: Wed Dec 07, 2011 3:18 pm

Re: crash when starting profiling

Post by knutwannheden »

I finally got around to testing with a YourKit 11.0.3 installation. It seems like the bug has been solved. I.e. the target JVM no longer crashes when being profiled.
denofevil
Posts: 5
Joined: Fri May 25, 2012 7:33 pm

Re: crash when starting profiling

Post by denofevil »

Got the report that experimental build is working ok.
Here's the output from our user:

Code: Select all

ashr-mac:~ $sysctl -a | grep shm 
kern.sysv.shmmax: 33554432
kern.sysv.shmmin: 1
kern.sysv.shmmni: 256
kern.sysv.shmseg: 64
kern.sysv.shmall: 8192
machdep.pmap.hashmax: 48
security.mac.posixshm_enforce: 1
security.mac.sysvshm_enforce: 1
ashr-mac:~ $ipcs -a
IPC status from <running system> as of Fri Jun  1 21:16:02 MDT 2012
T     ID     KEY        MODE       OWNER    GROUP  CREATOR   CGROUP CBYTES  QNUM QBYTES LSPID LRPID   STIME    RTIME    CTIME
Message Queues:

T     ID     KEY        MODE       OWNER    GROUP  CREATOR   CGROUP NATTCH  SEGSZ  CPID  LPID   ATIME    DTIME    CTIME
Shared Memory:
m  65536 0x0052e2c1 --rw------- postgres   daemon postgres   daemon      5 32399360     60     60 18:23:43 21:15:55 18:23:43
m  65537 0x53414e44 --rw-rw-rw-     ashr    staff     ashr    staff      1  64528   2696   2696 20:56:10 no-entry 20:56:10
m  65538 0x42341492 --rw-rw-rw-     ashr    staff     ashr    staff      1      4   2716   3139 21:14:45 21:15:14 20:57:02
m  65539 0x42341490 --rw-rw-rw-     ashr    staff     ashr    staff      1 1075740   2716   3139 21:14:46 21:15:14 20:57:02
m  65540 0x42341491 --rw-rw-rw-     ashr    staff     ashr    staff      1      4   2716   3139 21:14:46 21:15:14 20:57:02
m  65541 0x42341493 --rw-rw-rw-     ashr    staff     ashr    staff      1   1860   2716   3139 21:14:46 21:15:14 20:57:02

T     ID     KEY        MODE       OWNER    GROUP  CREATOR   CGROUP NSEMS   OTIME    CTIME
Semaphores:
s  65536 0x0052e2c1 --ra------- postgres   daemon postgres   daemon     17 18:23:43 18:23:43
s  65537 0x0052e2c2 --ra------- postgres   daemon postgres   daemon     17 18:23:43 18:23:43
s  65538 0x0052e2c3 --ra------- postgres   daemon postgres   daemon     17 18:23:43 18:23:43
s  65539 0x0052e2c4 --ra------- postgres   daemon postgres   daemon     17 18:23:43 18:23:43
s  65540 0x0052e2c5 --ra------- postgres   daemon postgres   daemon     17 18:23:43 18:23:43
s  65541 0x0052e2c6 --ra------- postgres   daemon postgres   daemon     17 18:23:43 18:23:43
s  65542 0x0052e2c7 --ra------- postgres   daemon postgres   daemon     17 18:23:43 18:23:43
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: crash when starting profiling

Post by Anton Katilin »

Thank you very much.
We'll release version 11.0.4 in 1-2 days. It will contain this fix.
I hope you'll bundle it in next build.

By the way, it seems that other JetBrains products also have outdated agents bundled.
For instance, please see this thread about MPS:
http://forums.yourkit.com/viewtopic.php?f=3&t=4171
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: crash when starting profiling

Post by Anton Katilin »

An update:
11.0.4 is available for download http://www.yourkit.com/download/
denofevil
Posts: 5
Joined: Fri May 25, 2012 7:33 pm

Re: crash when starting profiling

Post by denofevil »

Thank you, I've update agent version in our distribution.
Post Reply