jvm-profiler | JVM Profiler Sending Metrics to Kafka , Console Output | Monitoring library
kandi X-RAY | jvm-profiler Summary
kandi X-RAY | jvm-profiler Summary
Uber JVM Profiler provides a Java Agent to collect various metrics and stacktraces for Hadoop/Spark JVM processes in a distributed way, for example, CPU/Memory/IO metrics. Uber JVM Profiler also provides advanced profiling capabilities to trace arbitrary Java methods and arguments on the user code without user code change requirement. This feature could be used to trace HDFS name node call latency for each Spark application and identify bottleneck of name node. It could also trace the HDFS file paths each Spark application reads or writes and identify hot files for further optimization. This profiler is initially created to profile Spark applications which usually have dozens of or hundreds of processes/machines for a single application, so people could easily correlate metrics of these different processes/machines. It is also a generic Java Agent and could be used for any JVM process as well.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Sample the cpu time
- Get the attributes of the platform MBean
- Get a long value from a map
- Read the contents of the file as a map
- Expect this instance into a profile
- Execute a set of static methods
- Extract the value at the start and index from a string
- Get argument values from string
- Report profiling data
- Gets an object from the database
- Queries a list of columns
- Main entry point
- Run the java agent
- Updates connection properties from yaml file
- Update connection properties from yaml file
- Generate metrics
- Gets an object by primary key
- Updates connection properties from connection properties
- Executes the given query
- Update arguments
- Generate profiling
- Record profiling
- Reports cpu and metrics
- Dump all threads
- Returns information about the process
- Sets the profiling information
jvm-profiler Key Features
jvm-profiler Examples and Code Snippets
Community Discussions
Trending Discussions on jvm-profiler
QUESTION
I am trying to use uber jvm profiler to profile my spark application (spark 2.4, running on emr 5.21)
Following is my cluster configuration
...ANSWER
Answered 2019-Dec-08 at 10:41I haven't used Uber JVM Profiler but I think to add extra jars in spark-submit
you should be using --jars
option. And you can add them directly from S3 bucket when working on EMR.
Also, at bootstrap, you're copying the jar jvm-profiler-1.0.0.jar
into /tmp
folder but when you set Java options you didn't add the path. Try this :
QUESTION
I am a newbie trying to profile a local spark job. Here is the command that I am trying to execute, but I am getting a warning stating my executor options are being ignored since they are non-spark config properties.
error:
Warning: Ignoring non-spark config property: “spark.executor.extraJavaOptions=javaagent:statsd-jvm-profiler-2.1.0-jar-with-dependencies.jar=server=localhost,port=8086,reporter=InfluxDBReporter,database=profiler,username=profiler,password=profiler,prefix=MyNamespace.MySparkApplication,tagMapping=namespace.application”
Command:
./bin/spark-submit --master local[2] --class org.apache.spark.examples.GroupByTest --conf “spark.executor.extraJavaOptions=-javaagent:statsd-jvm-profiler-2.1.0-jar-with-dependencies.jar=server=localhost,port=8086,reporter=InfluxDBReporter,database=profiler,username=profiler,password=profiler,prefix=MyNamespace.MySparkApplication,tagMapping=namespace.application” --name HdfsWordCount --jars /Users/shprin/statD/statsd-jvm-profiler-2.1.0-jar-with-dependencies.jar libexec/examples/jars/spark-examples_2.11-2.3.0.jar
Spark version : 2.0.3
Please let me know, how to solve this.
Thanks in Advance.
...ANSWER
Answered 2018-Apr-24 at 14:02I think the problem is the double quote you are using to specify the spark.executor.extraJavaOptions. It should have been a single quote.
./bin/spark-submit --master local[2] --conf 'spark.executor.extraJavaOptions=-javaagent:statsd-jvm-profiler-2.1.0-jar-with-dependencies.jar=server=localhost,port=8086,reporter=InfluxDBReporter,database=profiler,username=profiler,password=profiler,prefix=MyNamespace.MySparkApplication,tagMapping=namespace.application' --class org.apache.spark.examples.GroupByTest --name HdfsWordCount --jars /Users/shprin/statD/statsd-jvm-profiler-2.1.0-jar-with-dependencies.jar libexec/examples/jars/spark-examples_2.11-2.3.0.jar
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install jvm-profiler
Make sure JDK 8+ and maven is installed on your machine.
Run: mvn clean package
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page