I am new to JSP and I am wondering if it is possible to get java runtime parameters from whithin a JSP file (display it on the web page). The thing I am looking for is the javaagent
option, I want to show all the java agents that the enviorment is using.
On my linux machine I can write
ps -ax | grep java
and all the parameters are shown, and the java agent will be visible: -javaagent:/Path/Agent.jar
Is there any way to see the agent of the server?
Explanation: I am running my application on a web server, and I have a JSP page which runs on it, and I want to get the above parameters.
Edit2 : This is not a duplicate of the enviorment variable question since the javaagent doesnt appear in the enviorment variables, one way to add a java agent is via the JAVA_OPTS variable but its not the case here.