Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have 4 Tomcat instances I wish to start when the server (Cent OS 2.6.9) restarts.

After all other services have started I would like to start these up - but I am a bit worried about the load of starting all 4 at the same time, so maybe a short delay would be necessary.

How should I go about this?

share|improve this question
    
How are they being started up now? /etc/init.d/ ? cron ? –  pjz May 27 '10 at 18:22
    
Currently they require manual starting, ie I have to log in and run the startup script. –  Nick May 31 '10 at 15:29

2 Answers 2

up vote 1 down vote accepted

I have more than 15 tomcat instances in the same server and all started at once.

I have a startup script for everyone (i think you have it too, no?).

I create a startup_ALL_tomcat.sh script that execute all the startups (you can put a "sleep 60" command for delay) and create a link in /etc/rc3.d/S99tomcat.

share|improve this answer

What are you worried will happen with the increased load? If it's just that the servers will take a little longer to start up, then... I wouldn't worry about it. That said, any details on how to make them start up a little later will depend on how they're being started up now.

share|improve this answer
    
Currently I start one at a time and wait for the CPU to reduce, after about a minute. –  Nick May 31 '10 at 15:31

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.