Hi,
As per the HELP document on attaching the profiler, I have added the below VM args to the Java application (launching from Intellij) on Mac OS.
-agentpath:/Applications/YourKit-Java-Profiler-2024.3.app/Contents/Resources/bin/mac/libyjpagent.dylib
The app failed to start with the below error
[YourKit Java Profiler 2024.3-b161] Log file: /Users/srinivas.kothuri/.yjp/log/GlideOrbitMvnBootstrap-22829.log
[2024-10-16 06:20:58.055] Cannot start: agent already loaded. Check for multiple occurrences of -agentpath/-agentlib in the command line.
And below is the tail log of GlideOrbitMvnBootstrap-22829.log file.
[2024-10-16 06:20:58.053] async_sampling: native libs: 325
[2024-10-16 06:20:58.054] warning: log file will be changed
[2024-10-16 06:20:58.055] Log file: **************************/.yjp/log/GlideOrbitMvnBootstrap-22829.log
[2024-10-16 06:20:58.055] warning: log file changed from **************************/.yjp/log/GlideOrbitMvnBootstrap-22829.log
[2024-10-16 06:20:58.055] Executable: /opt/homebrew/Cellar/openjdk@17/17.0.12/libexec/openjdk.jdk/Contents/Home/bin/java
[2024-10-16 06:20:58.055] uname:
sysname: Darwin
release: 23.6.0
version: Darwin Kernel Version 23.6.0: Mon Jul 29 21:14:30 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T6030
machine: arm64
[2024-10-16 06:20:58.055] macOS; mac-arm-64; 64-bit process
[2024-10-16 06:20:58.055] hid: 260222U62QBD80X4ccXY9V8Z90 64-bit machine
[2024-10-16 06:20:58.055] RAM: **** MB
[2024-10-16 06:20:58.055] Today is ********
[2024-10-16 06:20:58.055] full_build_stamp: 2024.3.161 202408261610
[2024-10-16 06:20:58.055] Agent library path: /Applications/YourKit-Java-Profiler-2024.3.app/Contents/Resources/bin/mac/libyjpagent.dylib
[2024-10-16 06:20:58.055] getTimeNsInfo: "125 3"
[2024-10-16 06:20:58.055] Cannot start: agent already loaded. Check for multiple occurrences of -agentpath/-agentlib in the command line.
Please help with this issue.
Cannot start: agent already loaded. Check for multiple occurrences of -agentpath/-agentlib in the command line.
-
- Posts: 1
- Joined: Wed Oct 16, 2024 12:55 am
-
- Posts: 1657
- Joined: Tue Aug 10, 2004 7:52 pm
Re: Cannot start: agent already loaded. Check for multiple occurrences of -agentpath/-agentlib in the command line.
If you start profiling from IntelliJ IDEA via YourKit plugin, you do not need to modify "-agentpath" : https://www.yourkit.com/docs/java-profi ... p/idea.jsp
Best regards,
Vladimir Kondratyev
YourKit GmbH
http://www.yourkit.com
"Don't get lost in data, get information!"
Best regards,
Vladimir Kondratyev
YourKit GmbH
http://www.yourkit.com
"Don't get lost in data, get information!"