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
uot; and with this code no thread stacks are
> printed (as they normally will be).
>
> I'll continue looking,
> /Staffan
>
> On 23 aug 2013, at 07:20, Martin Traverso wrote:
>
> I have a program that causes jstack and jcmd to fail to attach to the JVM
> on OS X. Unf
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
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 fu