Yes, you need to edit your JBoss AS instance's run.sh/run.bat and add the following option to JAVA_OPTS:
Then restart the AS instance.
Then run the following command from the Jopr Agent prompt:
then go to the JBoss AS Resource in the Jopr GUI, and you should see a new child Resource named "JBoss AS JVM". That resource should have a whole bunch of heap/permgen metrics as well as other JVM-related metrics and operations.
Another question related to the agent discovery -f.
How do you execute the "discovery -f" when you run the agent with init.d, i.e. when the agent is already up and running without any prompt?
You can run the discovery request directly from the Jopr server UI. Just browse to the platform resource for that agent and visit the operations tab. You can execute the Manual Autodiscovery operation with the Detailed Discovery option on.
Also, you can group your platforms into compatible groups and give yourself the ability to run discoveries on every agent in your inventory very easily through a group operation.
The agent compatible group seems nice.
FYI: almost all of the prompt commands can be executed directly from the Agent Operations tab via the "Execute Prompt Command" operation.