lucko / spark

A performance profiler for Minecraft clients, servers, and proxies.
https://spark.lucko.me/
GNU General Public License v3.0
1.05k stars 143 forks source link

/spark profiler open prints a warning about dynamic loading of Java agents #373

Open jobatabs opened 1 year ago

jobatabs commented 1 year ago

Description

Hi, when running command spark profile open for the first time after a server restart, a warning pops up about dynamic loading of Java agents (see attached gist). I am wondering if I should add the startup argument the warning suggests to my configuration.

Reproduction Steps

Run command /spark profile open

Expected Behaviour

I would expect the installation guide to suggest enabling dynamic loading if it is required by spark.

Platform Information

Spark Version

v1.10.55

Logs and Configs

https://gist.github.com/jobatabs/67ff5e3b87892091b5baf4dde8a00ad6

Extra Details

No response

jobatabs commented 1 year ago

Reproducible on git-Paper-280, I just ran spark profiler open after server start and got the error again

[ERROR] [Minecraft] [STDERR] [sun.instrument.InstrumentationImpl] WARNING: A Java agent has been loaded dynamically (/tmp/byteBuddyAgent16752265738776440594.jar)
WARNING: If a serviceability tool is in use, please run with -XX:+EnableDynamicAgentLoading to hide this warning
WARNING: If a serviceability tool is not in use, please run with -Djdk.instrument.traceUsage for more information
WARNING: Dynamic loading of agents will be disallowed by default in a future release