Open stefanodoni opened 3 years ago
Hello,
if you download the main JAR and the JMX plugin JAR from the 0.11.0 release, following command should work.
java \
-jar renaissance-gpl-0.11.0.jar \
--plugin 'plugin-jmxtimers-assembly-0.0.2.jar!org.renaissance.plugins.jmxtimers.Main' \
--json data.json \
--csv data.csv \
scrabble
Then the CSV would contain something like this:
benchmark,duration_ns,jmx_timers_compilation_time_ms,jmx_timers_compilation_total_ms,uptime_ns,vm_start_unix_ms
scrabble,1585955295,2167,3430,1702712827,1614863148161
scrabble,952939770,8,3708,3456193364,1614863148161
scrabble,924849168,113,4070,4533845480,1614863148161
...
and in the JSON there would be the following fragment.
{
"benchmarks": ["scrabble"],
"format_version": 5,
"data": {
"scrabble": {
"results": [{
"duration_ns": 1585955295,
"jmx_timers_compilation_time_ms": 2167,
"jmx_timers_compilation_total_ms": 3430,
"uptime_ns": 1702712827
}, {
"duration_ns": 952939770,
"jmx_timers_compilation_time_ms": 8,
"jmx_timers_compilation_total_ms": 3708,
"uptime_ns": 3456193364
},
...
And I see that we really do not have such example in README.md. I will add it there ASAP.
Great,
Thank you!
Is it possible to export other JMX metrics also?
On Thu, 4 Mar 2021 at 14:12, Vojtech Horky notifications@github.com wrote:
Hello,
if you download the main JAR and the JMX plugin JAR from the 0.11.0 release https://github.com/renaissance-benchmarks/renaissance/releases/tag/v0.11.0, following command should work.
java \ -jar renaissance-gpl-0.11.0.jar \ --plugin 'plugin-jmxtimers-assembly-0.0.2.jar!org.renaissance.plugins.jmxtimers.Main' \ --json data.json \ --csv data.csv \ scrabble
Then the CSV would contain something like this:
benchmark,duration_ns,jmx_timers_compilation_time_ms,jmx_timers_compilation_total_ms,uptime_ns,vm_start_unix_ms scrabble,1585955295,2167,3430,1702712827,1614863148161 scrabble,952939770,8,3708,3456193364,1614863148161 scrabble,924849168,113,4070,4533845480,1614863148161 ...
and in the JSON there would be the following fragment.
{ "benchmarks": ["scrabble"], "format_version": 5, "data": { "scrabble": { "results": [{ "duration_ns": 1585955295, "jmx_timers_compilation_time_ms": 2167, "jmx_timers_compilation_total_ms": 3430, "uptime_ns": 1702712827 }, { "duration_ns": 952939770, "jmx_timers_compilation_time_ms": 8, "jmx_timers_compilation_total_ms": 3708, "uptime_ns": 3456193364 }, ...
And I see that we really do not have such example in README.md. I will add it there ASAP.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/renaissance-benchmarks/renaissance/issues/238#issuecomment-790607851, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADUHJFOXICYXRWOMV3VIF6DTB6BLRANCNFSM4YQ4J5ZA .
Is it possible to export other JMX metrics also?
At the moment, only java.lang.management.CompilationMXBean
is used. But the plugin is extremely simple and it would be easy to create a different one collecting from other sources.
In which metrics would you be interested?
Memory and CPU usage for example
Hi,
I see that as part of the new release, it is possible to gather and report JMX metrics within the benchmark.
This can be very handy, however, I couldn't find any example about how to use them. I tried using the various command line options with no luck.
Could you kindly provide a working example?
Thank you!