# How to install Glowroot for Diagnostics

Glowroot is a Java APM (Application Performance Monitor) that is very useful for monitoring performance of Java applications and for troubleshooting as well.

## Monitoring DualShield Authentication Server

Installing Glowroot and integrating it with DualShield is very simple. Below is the quick instruction:

• Unzip it to a folder on the DualShield machine, e.g "c:\glowroot"
• Open up a command prompt and copy these two lines.
```cd C:\Program Files\Deepnet DualShield\tomcat\bin

tomcat9w.exe //ES/dualshield```
•  In the DualShield Properties Window that comes up click on the Java  tab
• Add the following line in the Java Options box.
`-javaagent:c:\glowroot\glowroot.jar`

Please use the following commands in a command prompt.

```cd c:\Program Files\Deepnet Radius Server\bin

• In the DualShield Radius Server Properties Window that comes up click on the Java  tab
• Add the following line in the Java Options box.

`-javaagent:c:\glowroot\glowroot.jar`

## Monitoring both DualShield Authentication and Radius Servers

If you want to add Glowroot to both dualshield and dualradius which are running on the same machine, please first follow Monitoring DualShield Authentication Server and Monitoring DualShield RADIUS Server sections above.

Next continue as below.

Create a glowroot.properties file in the glowroot directory.

`multi.dir=true`

Save and Close.

Now you need to to launch the DualShield Server Properties again

```cd C:\Program Files\Deepnet DualShield\tomcat\bin

tomcat9w.exe //ES/dualshield```

Click on the Java tab and add the following line of code, in the Java Options box

`-Dglowroot.agent.id=dualshield`

Click Apply and OK.

Now you need to launch the DualShield Radius Server Properties, again.

```cd c:\Program Files\Deepnet Radius Server\bin

Click on the Java tab and add the following line of code, in the Java Options box

`-Dglowroot.agent.id=dualradius`

Click Apply and OK.

Restart both the DualShield Server  and DualShield Radius Server services.

After restarting the services, you should see the following sub-folders appear in the gloroot directory

You need to now hange the default port on DualRadius to 4001,

Modify the port number to 4001.

Save and Close.