aspose file tools*
The moose likes Tomcat and the fly likes Run Tomcat in production mode Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Run Tomcat in production mode" Watch "Run Tomcat in production mode" New topic
Author

Run Tomcat in production mode

Manish Hatwalne
Ranch Hand

Joined: Sep 22, 2001
Posts: 2579

Which all things do I need to do to make sure that I run my application in tomcat under production mode. In short I want to do this -

(1) Make sure that only my app is deployed in tomca (removed other apps, done)
(2) Reloadable=true removed.
(3) I want to make sure that no admin interfaces are open to this production tomcat - How to ensure this???
(4) Are there any config settings taht I need to tweak so that Tomcat is tuned for max permoformance under this production mode and no other unnecessary service/feature is running except my application.

Any links/pointers/inputs will e highly appreciated!

TIA,
- Manish
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12825
    
    5
(3) I want to make sure that no admin interfaces are open to this production tomcat - How to ensure this???
(4) Are there any config settings taht I need to tweak so that Tomcat is tuned for max permoformance under this production mode and no other unnecessary service/feature is running except my application.

3. The admin interfaces require a user in a role - in the default Tomcat, if tomcat-users.xml does not have entries for admin and manager roles, nobody can get into admin functions.
Personally I find the manager role / properly password protected / to be very helpful in monitoring a production tomcat.
4. Be sure that you are using the server version of the JVM, by default you get the client version. Be sure you give it enough memory.

Bill
Manish Hatwalne
Ranch Hand

Joined: Sep 22, 2001
Posts: 2579

Thanks William!

Is there an article or document somewhere that explains/discusses all such issue with Tomcat in production mode?

What we hae ais a 64-bit system, not sure what version of Java in server mode would be required there.

- Manish
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12825
    
    5
I found the Wrox publication "Professional Apache Tomcat 5" to be an excellent resource for all sorts of questions like this. Sure, you can search the web and find these resources, but this book puts it all together.

I think the group would be interested in hearing more about your 64 bit system. Sun has a beta version of Java 5.0 for the AMD 64bit processor - is that what you are running?

Bill
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

there's plenty of posts on tomcat-user that seem to say using the -server version of the JVM is not a good idea. It leads to instability and decreased performance.

Your mileage will of course, vary.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12825
    
    5
There's plenty of posts on tomcat-user that seem to say using the -server version of the JVM is not a good idea. It leads to instability and decreased performance.

Thats rather surprising since Sun suggests the server version for long running applications. Is there a particular version of the JVM that is supposed to be unstable?
Bill
Manish Hatwalne
Ranch Hand

Joined: Sep 22, 2001
Posts: 2579

Yes, we do indeed have AMD 64 bit machine with 1GB RAM!!!

As of now, I think we have IBM's Java 1.4 there, but need to migrate to 1.5 I believe.

Thouh, now I am confused if I should use server version or not. I did have this copy of worxs Professional Apache omcat lying here somewhere, maybe it's time to hunt for it....

- Manish
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12825
    
    5
Please keep us up to date on your progress with the AMD 64 bit machine so we can appear knowledgable if a client mentions it.
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

I've searched for one reference:
http://marc.theaimsgroup.com/?l=tomcat-user&m=109457642606181&w=2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Run Tomcat in production mode