<< PREVIOUS

 

 

MANUAL INSTRUMENTATION

  1. Navigate to the directory $Glassfish_Home/bin where the startup script is located

    Example: /opt/glassfish-5.0-server\glassfish5\bin

Method 1:

  1. Stop the GlassFish server if it is already running

    1. asadmin stop-domain

       

       

  2. Take a backup of the file asadmin

  3. 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

     

  4. Start the GlassFish server

    1. asadmin start-domain

       

       

Method 2:

  1. Start the GlassFish server using the command:

    1. asadmin start-domain

       

       

  2. Access the Glassfish admin-console URL: http://<Server-IP>:4848/

  3. Stop the Glassfish Standalone instance

    Graphical user interface, application
Description automatically generated

  4. 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

     

    Picture 8

  5. Start the GlassFish server Standalone instance

    Graphical user interface, application
Description automatically generated

 

<< PREVIOUS