Closed wang-qijia closed 6 months ago
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+.
That is expected behavior. You need jvm 11 for live objects
Code:
Exception Log: