If for any reason, a payara restart is required, run the command below as "strongkey" 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. Click here to view instructions for tailing payara logs
sudo systemctl restart payara
# For SKFS version 4.12 and below, use the following command instead: sudo service glassfishd restart
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.
Check for existing payara process
shell> ps -ef | grep glassfish
Sample output: strongk+ 162719 1 6 14:23 ? 00:01:36 /usr/lib/jvm/java-21-openjdk-21.0.3.0.9-1.el9.x86_64/bin/java -cp /usr/local/strongkey/payara6/glassfish/domains/domain1/lib/ext/*:/usr/local/strongkey/payara6/glassfish/modules/glassfish.jar
In the above example the process id isĀ 162719
If the command above shows a running payara process, kill the current running process using the command below
shell> kill -9 162719 (pid from the above command)
Once the running process has been killed/stopped, issue the command below to start glassfish
shell> sudo systemctl start payara