VisualVM issue when starting JMX agent with jcmd

2013-08-30 Thread Martin Traverso
I'm running into an issue when connecting to a process from VisualVM. First, let me describe the setup: - A Linux machine running jstatd configured with a grant all permissions policy file and a test java program that sleeps forever. The Java version is: java version 1.7.0_10 Java(TM) SE

Re: jstack can't attach to JVM (OS X)

2013-08-26 Thread Martin Traverso
aug 2013, at 07:20, Martin Traverso mtrave...@gmail.com wrote: I have a program that causes jstack and jcmd to fail to attach to the JVM on OS X. Unfortunately, it uses a third-party library, so I'm not sure what's the magic incantation that causes this to happen. I wrote a small test case

jstack can't attach to JVM (OS X)

2013-08-22 Thread Martin Traverso
I have a program that causes jstack and jcmd to fail to attach to the JVM on OS X. Unfortunately, it uses a third-party library, so I'm not sure what's the magic incantation that causes this to happen. I wrote a small test case using this library that reproduces the problem. You can find the code

Calling into Java from COMPILED_METHOD_LOAD callback

2013-08-06 Thread Martin Traverso
Is it safe to call Java code via JNI from the COMPILED_METHOD_LOAD callback? The JVMTI spec is not explicit about this, and the closest thing I could find is in relation to the GenerateEvents function: Attempts to execute Java programming language code or JNI functions may be paused until this