We are currently deploying our in house program on two different servers. Both of these servers built within Cisco Openstack. OS Centos 7.
The issue is, that with every redeploy of the app, we need to restart tomcat; shutting down tomcat is behaving as expected. When we start tomcat, the server is unresponsive for 10+ minutes.
Here is my process:
- shutdown tomcat using $TomcatHome/bin/shutdown.sh
- Deploy the two war files
- Start tomcat using $TomcatHome/bin/startup.sh
If I navigate to the URL associated with the webpage, the loading bar spins for about 10 or more minutes until the page suddenly comes up.
I also tried using a wget on the app's home page. I get an waiting for response error as seen below:
[vagrant@host-10-105-5-51 Gen]$ !w
wget 10.105.5.47:8080/am
--2016-09-10 11:34:51-- http://10.105.5.47:8080/am
Connecting to 10.105.5.47:8080... connected.
HTTP request sent, awaiting response...
I am not really sure how to approach this problem besides googling it.
I should add a few more details to this issue:
- I run the app/tomcat on my local vm and it starts a few seconds after the startup script has been called.
- Looking at the catalina out file in the logs Dir. There appears to be an error involving the phrase "Address is already in use"