If you are asking about a problem you are experiencing, please use the following template, as it will help us help you. If you have a different problem, please delete all of this text
Kibana version: -6.2.1-
Elasticsearch version: -6.2.1
APM Server version: 6.2.0
APM Agent language and version: I need support JAVA application version of agent.
Browser version: latest chrome
Original install method (e.g. download page, yum, deb, from source, etc.) and version:
Fresh install
I want to setup APM agents for java supported applications. i tried multiple links but could not able to setup the agent. could you please share link to download APM agent for java apps.
I have tried to setup for one java application by imorting into system prop. while starting getting below error.
Startup file config:
===========
#!/bin/sh
cd $(dirname $0)
export JAVA_HOME=/usr/java/jdk1.8.0_91
export JAVA_OPTS="$JAVA_OPTS -Xmx2048m"
export JAVA_OPTS="$JAVA_OPTS -Dprop.appconfig.path=../conf/appconfig.properties"
export CLASSPATH=../lib/*:.
exec /usr/java/jdk1.8.0_91/bin/java -javaagent:../lib/elastic-apm-agent-1.5.0.jar $JAVA_OPTS -Delastic.apm.service_name=my-application -Delastic.apm.server_url=http://10.176.11.39:9210 -Delastic.apm.application_packages=org.example
exec /usr/java/jdk1.8.0_91/bin/java $JAVA_OPTS -Dcomponent=QueueMsg -cp $CLASSPATH QueueMSG "Instance1"
Getting below errors:
2019-04-10 11:27:00.176 [apm-server-healthcheck] WARN co.elastic.apm.agent.report.ApmServerHealthChecker - Elastic APM server is not available (Connection refused)
2019-04-10 11:27:00.206 [main] INFO co.elastic.apm.agent.configuration.StartupInfo - Starting Elastic APM 1.5.0 as my-service on Java 1.8.0_91 (Oracle Corporation) Linux 3.10.0-514.el7.x86_64
2019-04-10 11:27:00.206 [main] WARN co.elastic.apm.agent.configuration.StartupInfo - To enable all features and to increase startup times, please configure application_packages
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)
where options include:
-d32 use a 32-bit data model if available
-d64 use a 64-bit data model if available
-server to select the "server" VM
The default VM is server,
because you are running on a server-class machine.
-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
A : separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D<name>=<value>
set a system property
-verbose:[class|gc|jni]
enable verbose output
-version print product version and exit
-version:<value>
Warning: this feature is deprecated and will be removed
in a future release.
require the specified version to run
-showversion print product version and continue
-jre-restrict-search | -no-jre-restrict-search
Warning: this feature is deprecated and will be removed
in a future release.
include/exclude user private JREs in the version search
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions with specified granularity
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions with specified granularity
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
-agentlib:<libname>[=<options>]
load native agent library <libname>, e.g. -agentlib:hprof
see also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:<pathname>[=<options>]
load native agent library by full pathname
-javaagent:<jarpath>[=<options>]
load Java programming language agent, see java.lang.instrument
-splash:<imagepath>
show splash screen with specified image
Any one can help on this to setup agents and dashboard for my applications.