Today I have deployed an app to our production application server GlassfishV3 through Jenkins CI to the autodeploy folder. The app server went down, and I cannot bring it back up.
My goal is to have the server up and running the same as prior to deploying the application. This is what I have done:
- First find the PID of the process running at port 4848: nestat -nlept
- Then kill the PID by doing kill -9 PID
- Remove the war file that Jenkinks just put in the autodeploy directory just in case if that is the problem.
- Start the server again by doing ./asadmin start-domain domain1
- The server takes FOREVER to start !!! In fact it never starts successfully as I cannot access the admin console at 4848 or any of the other apps that were already running. However, it leaves a process running at 4848.
- I looked at the jvm.log and server.log and I found a java.net.BindException:No free port within range.........
So my questions are as follows:
- Do you know what is going on?
- Do you know how to fix it?
- Do you know of a way to speed up the ./asadmin start-domain domain1 process?
Note: In our QA app server (Same version, same OS, Same Java, Same Grails) it does not happen. Really frustrated with this issue.
Thanks a lot for your help. Any help would be very much appreciated as this is a production issue that has several applications down for a few hours already.
- Dario