From Dogtag
Jump to: navigation, search


This page describes how to use JProfiler Java Profiler on PKI server.

Installing JProfiler

Download JProfiler:

$ wget
$ dnf install ./jprofiler_linux_11_1_2.rpm

JProfiler will be installed in /opt/jprofiler11 folder.


$ wget
$ sh

JProfiler will be installed in ~/jprofiler11 folder.

Running JProfiler

To run JProfiler:

$ /opt/jprofiler11/bin/jprofiler

Enabling JProfiler Agent

Select a port for JProfiler agent (e.g. 8849). If SELinux is enabled, enable the SELinux port:

$ semanage port -a -t http_port_t -p tcp 8849

In PKI 10.9 or later, to run the server with JProfiler agent:

$ pki-server run --agentpath /opt/jprofiler11/bin/linux-x64/
JProfiler> Listening on port: 8849.
JProfiler> Enabling native methods instrumentation.
JProfiler> Can retransform classes.
JProfiler> Can retransform any class.
JProfiler> Native library initialized
JProfiler> VM initialized
JProfiler> Waiting for a connection from the JProfiler GUI ...

It will run the server in foreground.

Alternatively, edit /etc/sysconfig/pki-tomcat and define the JProfiler agent as follows:


Then restart the systemd service. If the service fails to start, check the systemd journal for errors.

Connecting to PKI Server

Once the server is started, in JProfiler open Start Center -> Quick Attach, select On another computer. Select Direct connection to, then enter the hostname and JProfiler port.

See Also