DripStat identifies a JVM using a combination of hostname and port.
(The port number is used for information purposes for dripstat only. Your application may not even be using a port, but specify one in the config to allow dripstat to identify the jvm)
The appserver port is automatically detected for:
Tomcat, Jetty, WIldfly and Weblogic.
How to explicitly tell DripStat the port number
You can also specify the port your app server is using in the config.properties file:
appServer.port = <port number>
(Since Agent 7.2.15)
Specify a Java System Property:
Eg- Add a jvm arg like:
-Ddripstat.appServer.port = 8080
Note that doing this does not actually change your app server's port. It is just for informing DripStat.
If port number is not specified in the config.properties file -
DripStat Agent will wait for 48 seconds during server startup to find port number automatically.
If your server startup takes longer, please specify the port in the config file as above.
You may also need to specify the port if your app server is not in the list above or is on a very old version.
This feature is only useful if you have multiple JVMs on a single host contributing to the same app. Otherwise this setting can be ignored.
You can specify the location of separate config file and log directory for the DripStat Agent using System properties.
This way if you have multiple jvms on a single host, you dont have to keep separate copies of the DripStat Agent.