Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allocLive is not supported in JDK 8 #122

Closed
wang-qijia opened this issue Oct 10, 2023 · 1 comment
Closed

allocLive is not supported in JDK 8 #122

wang-qijia opened this issue Oct 10, 2023 · 1 comment

Comments

@wang-qijia
Copy link

Code:

PyroscopeAgent.start(
    new Config.Builder()
        .setApplicationName("test-service")
        .setProfilingEvent(EventType.ITIMER)
        .setAllocLive(true)
        .setProfilingAlloc("1k")
        .setFormat(Format.JFR)
        .setServerAddress("http://localhost:4040")
        .build()
);

Exception Log:

2023-10-10 19:29:33.034 [ERROR] Error starting profiler java.lang.IllegalStateException: java.lang.IllegalStateException: 'live' option is supported on OpenJDK 11+.

@korniltsev
Copy link
Collaborator

That is expected behavior. You need jvm 11 for live objects

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants