Post date: Feb 25, 2019 6:46:05 AM
Hi All,
Below are the process and commands for Glassfish server restart.
Login to WinSCP of required instance(with write access credentials).
Open putty and cd to $GLASSFISH_HOME/bin (for Ex: cd /home/glassfish/glassfish4/bin).
Stop the Glassfish server.
If SSL Certificate's implementation was done on the server, use the below command:
authbind --deep sh asadmin stop-domain <domain_name>
If SSL Certificate's implementation was not done on the server, use the below command:
sh asadmin stop-domain <domain_name>
Check if there are any processes still running on the server. Use the below command to check the running processes:
ps -ef | grep java | grep <user_name>| grep <domain_name>
If there are any processes still running, kill them using the below command:
kill -9 <Process_Id>
below highlighted is the <Process_Id>
Take the logs backup and clear the logs by executing below shellscript file:
sh $TRINITI_HOME/MigBuild/CopyRemoveLogs.sh
Start the Glassfish server.
If SSL Certificate's implementation was done on the server, use the below command:
authbind --deep sh asadmin start-domain <domain_name>
If SSL Certificate's implementation was not done on the server, use the below command:
sh asadmin start-domain <domain_name>
Sometimes we might get the following message while starting the glassfish application server:
In the above case, one of below steps should be followed:
Identify the process which is using 4848 port and kill that process if not needed
Run the glassfish in another admin port
Reboot the server machine if none of the above steps resolve the problem