On 17 Jul 2002, Mark Pelillo wrote:

> Date: 17 Jul 2002 19:38:43 -0500
> From: Mark Pelillo <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: UID for Tomcat and startup script
>
> 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.
>

I typically create a user named "Tomcat" for this purpose.

> 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.

On my ancient history 266mHz laptop, Tomcat used to take less than 30
seconds to start.  On my current development box (Linux, 512mb, yadda
yadda) it takes about 5 seconds.

I would look at your application initialization code before pointing too
many fingers ...

>  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.
>

Unless you make your Apache startup script check that Tomcat is already
listening on the relevant port.

> Right now I have a startup script to start tomcat automatically, then
> start apache manually.  Obviously in a production environment that isn't
> going to work.
>

Craig


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

Reply via email to