Product Documentation

If for any reason, Payara restart is required, run the command below as "strongauth" user to restart the web server. Make sure that the Payara server logs are running in a separate terminal to view any errors that might show up. 

sudo systemctl restart payara

Once the command successfully returns, run the following command to verify if the server is listening on port 8181

netstat -an | grep LISTEN | grep 8181

or

nfn 8181

If for some reason, Payara does not restart successfully, check to see if there is an existing (zombie) Payara process running and kill it before trying to start Payara again.

  1. Check for existing Payara process

    shell> ps -ef | grep glassfish
    Sample output:
    strongauth+ 3488 1 2 11:32 ? 00:04:06 /usr/lib/jvm/java-11-openjdk-11.0.17.0.8-2.el7_9.x86_64/bin/java -cp /usr/local/strongauth/payara6/glassfish/modules/glassfish.jar 

    In the above example the process id is 3488

  2. If the command above shows a running Payara process, kill the current running process using the command below

    shell> kill -9 3488 (pid from the above command)
  3. Once the running process has been killed/stopped, issue the command below to restart Payara:

    shell> sudo systemctl restart payara