MANUAL INSTRUMENTATION
-
Navigate to the directory $Glassfish_Home/bin where the startup script is located
Example: /opt/glassfish-5.0-server\glassfish5\bin
Method 1:
-
Stop the GlassFish server if it is already running
-
asadmin stop-domain
-
-
Take a backup of the file asadmin
-
Append the content below to the file asadmin and save it
export JAVA_TOOL_OPTIONS="$JAVA_TOOL_OPTIONS -javaagent:/opt/virsec-web-mem/iae-java/instrumentation.jar -DVSP_HOME_WEB_MEM=/opt/virsec-web-mem -Dvirsec_appcontextpath=<AppCollectiveID>"
NOTE:
Ensure that <AppCollectiveID> mentioned above is replaced with the App Collective ID in the CMS Application Configuration section
-
Start the GlassFish server
-
asadmin start-domain
-
Method 2:
-
Start the GlassFish server using the command:
-
asadmin start-domain
-
-
Access the Glassfish admin-console URL: http://<Server-IP>:4848/
-
Stop the Glassfish Standalone instance
-
Add each VSP argument (in separate lines) under “ADD JVM Option” for the GlassFish instance
-javaagent:/opt/virsec-web-mem/iae-java/instrumentation.jar
-Dvirsec_appcontextpath=<AppCollectiveID>
NOTE:
Ensure that <AppCollectiveID> mentioned above is replaced with the App Collective ID in the CMS Application Configuration section
-
Start the GlassFish server Standalone instance