Jetty script has been tested with Jetty 9.x on JDK7.
In order to install zorka agent on Jetty:
- unpack zorka binary distribution in jetty directory and (optionally) rename unpacked directory to
zorka
; - edit
<server-home>/bin/jetty.sh
and add the following line at the end:
JAVA_OPTIONS="$JAVA_OPTIONS -javaagent:<zorka-home>/agent.jar=<zorka-home>"
- if application is running on JDK7, add
-XX:-UseSplitVerifier
to java options; - adjust zorka.properties if necessary (log files, listen port number etc.);
- for JDK7 add
zorka.spy.compute.frames = yes
tozorka.properties
or-XX:-UseSplitVerifier
to JVM startup options; - for JDK8 add
zorka.spy.compute.frames = yes
tozorka.properties
;
Configuration settings
Jetty integration script implements standard HTTP monitoring, so standard options for HTTP do apply. Also, consider SQL and/or LDAP monitoring if your application uses SQL database(s) or LDAP. There are no other specific settings for Jetty.
HTTP instrumentation for Jetty can be explicitly disabled by adding http.instrument.jetty = no
in zorka.properties
.
Zabbix templates
There are no jetty-specific templates so far. Use general templates for HTTP, SQL and LDAP.