Howdy,

>Who do most people run Tomcat as?  Because I am working on a
development
>system, I can run Tomcat as root, but when I go to production I am sure
>that will cause problems.  I am running under Solaris.

We have a designated user for tomcat servers.  Essentially, we've
created the equivalent of the standard unix "nobody" user.  But we can
log in as our user, create and run shell scripts, etc.  

>I also wonder how you make sure Tomcat is completed started before
>starting apache.  I know on my development box ( Dual 360Mhz with 1 gig
>of memory) Tomcat takes 15 minutes to start.  If tomcat has to be
>started first, then just putting a startup script in rc2.d for tomcat
>and rc3.d for Apache doesn't work.

15 minutes???? What are you doing on startup???

Tomcat (v4.0.1 and 4.0.4) takes less than 30sec to start, including the
init events for all our load-on-startup servlets which initialize DB
connections and pools, set up some other stuff.

Anyways, you can have a servlet loaded on startup such that it's the
last one loaded on startup (include
<load-on-startup>999</load-on-startup> in the web.xml for that servlet).
At the end of its init() method, you can send out some statements to log
file or email or whatever, saying startup is complete.

Hopefully this helps,

Yoav Shapira
Millennium ChemInformatics

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to