Closed cchung100m closed 5 years ago
Thanks for the ping. I will take a look at this.
Hi @cchung100m Looks like you didn't set sampleInterval
parameter? If this value is not set or zero, the profiler will not do stacktrace sampling. Can you set it and re-try?
Hi @viirya
Thank you for the prompt reply.
I get the flame graph after setting the parameter 'sampleInterval'.
Thank you for the suggestions.
thanks! @viirya
btw, should we clarify this in documentation?
@felixcheung ok. I will make a small PR to add it to the document.
Hi @viirya ,
Sorry for any inconvenience.
I am trying to run Spark in the local mode, along with the JVM profiler, however, I encounter some issue when trying to generate flamegraph of Stacktrack Profiling result. I would appreciate if you can provide some suggestions, thank you.
Best regards,
Run Spark along with the JVM profiler:
cch:target cch$ spark-submit --class com.github.ehiggs.spark.terasort.TeraSort --conf "spark.driver.extraJavaOptions=-javaagent:/Users/cch/eclipse-workspace/jvm-profiler/target/jvm-profiler-1.0.0.jar=reporter=com.uber.profiling.reporters.FileOutputReporter,ioProfiling=true,outputDir=/Users/cch/Downloads/Stacktrace.json" --conf "spark.executor.extraJavaOptions=-javaagent:/Users/cch/eclipse-workspace/jvm-profiler/target/jvm-profiler-1.0.0.jar=reporter=com.uber.profiling.reporters.FileOutputReporter,ioProfiling=true,outputDir=/Users/cch/Downloads/Stacktrace.json" /Users/cch/eclipse-workspace/spark-terasort/target/spark-terasort-1.1-SNAPSHOT-jar-with-dependencies.jar /Users/cch/Downloads/terasort_in /Users/cch/Downloads/terasort_out
Generate flamegraph of Stacktrack Profiling result:
Stacktrace.zip