0
votes

PerfMon Server Agent is working fine with JMeter's Listener jp@gc - PerfMon Metrics Collector.

But can it act as a standalone application performance monitoring (APM) agent?

I saw that I can connect and request specific metrics

Server Agent uses simple plain-text protocol, anyone can use agent's capabilities implementing client, based on kg.apc.perfmon.client.Transport interface. If anyone's interested, start the topic on the support forums and I'll describe how to connect third-party client app to agent.

But can I start PerfMon Server when my application is started and save metrics "always" (until application is down) without any listener?

Also can I display the results in a tool other than jp@gc - PerfMon Metrics Collector?

1

1 Answers

1
votes

If you look into Server Agent documentation you'll learn that it can be used by any application capable of sending plain text message over TCP or UDP protocol (i.e. telnet or netcat) so you can trigger metrics collection by just sending metric name to the running Server Agent.

With regards to starting PerfMon when your application is started - Server Agent is normal pure Java application so the approach will vary depending on operating system you're using and the nature of your application. Most likely you will need to come up with a shell script which starts both.

For the moment you won't be able to use Server Agent without a "client" - an application which will request metrics from it over TCP or UDP. So if you don't plan to use JMeter you will need to come up with a TCP or UDP client solution which will periodically query the Server Agent for metrics. The output will be normal CSV file which can be visualised using any tool (Libre Office Calc, Grafana, Google Charts, whatever)

More information: How to Monitor Your Server Health & Performance During a JMeter Load Test