Triggers didn't loaded automatically from file

Questions about YourKit Java Profiler
Post Reply
D.M
Posts: 1
Joined: Fri Oct 05, 2018 3:17 pm

Triggers didn't loaded automatically from file

Post by D.M »

Hi, I used YJP 2018.04-b86

Added triggers file,
CpuUsageListener usageThresholdPercent=40 minimumTimeToActivate=5s maxTriggerCount=-1
StartCpuSampling
WaitForEventToFinish maxTimeToWait=30s
CapturePerformanceSnapshot fileName={sessionname}-{date}-{pid}
StopCpuProfiling
Sleep duration=10s

HeapMemoryUsageListener usageThresholdPercent=70 minimumTimeToActivate=0s maxTriggerCount=-1
CaptureMemorySnapshot fileName={sessionname}-{date}-{pid}

added agentlib into app
-agentpath:/opt/ykjp20184/libyjpagent.so=exceptions=disable,delay=10000,sessionname=platform,triggers=/opt/jkjp20184/triggers.txt,probe_auto=*,probebootclasspath=/opt/ykjp20184/yourkit.jar

From yjp.log

80 18.04-86 0.471: setTriggers:
81
82 18.04-86 0.540: setTriggers: to unregister: 0
83 18.04-86 0.540: setTriggers: method listeners to register: 0
84 18.04-86 0.540: setTriggers: OK
85 18.04-86 0.540: ourUnsafe: true
86 18.04-86 0.540: shmem 42341490: OK

Thanks for support.
Vladimir Kondratyev
Posts: 1624
Joined: Tue Aug 10, 2004 7:52 pm

Re: Triggers didn't loaded automatically from file

Post by Vladimir Kondratyev »

Please provide full content of /opt/jkjp20184/triggers.txt and full agent log.

Best regards,
Vladimir Kondratyev
YourKit GmbH
http://www.yourkit.com
"Don't get lost in data, get information!"
Post Reply