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

Is Tomcat stable?

Mark Lau
Ranch Hand

Joined: Dec 15, 2001
Posts: 120
I kinda think that Tomcat is unstable. The same code works sometimes, but not some other time.
And, if you recompile a servlet, Tomcat sometimes reports that the class has been updated, sometimes, it does not.
Sometimes, tomcat gives you tons of exceptions in the browser, saying that it has an internal error which prohibits it from compeleting the request. Does this also mean it's a tomcat problem instead of my code?
What do you people think?
Any other better alternatives than Tomcat for servlet and JSP containers? Has any of you tried Orion? How is it?
[ March 18, 2002: Message edited by: Gene Chao ]
Ravi Veera
Ranch Hand

Joined: Jun 23, 2001
Posts: 127
what version of Tomcat are you running? And what version of the JDK? I have a tomcat 4.0.1 working on JDK1.4 pretty nicely. It was on JDK1.3 till recently and it ran pretty well.
Mark Lau
Ranch Hand

Joined: Dec 15, 2001
Posts: 120
Mine is Tomcat 4.0.3, JDK1.4.0, Window 2000 Pro. I notice that when it says internal error, it is my code problem. But why doesn't tomcat always report class update?
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
You can try servletexec from NewAtlanta. They charge about $600-$700 per CPU. The 3 concurrent user development license is free. We used it at Avis-Rent-A-Car and were very happy with it.
http://www.newatlanta.com/


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16250
    
  21

It sounds like the "instability" has more to do with whether or not Tomcat picks up properly on dynamic changes to the webapps. Certainly I've never seen any recent Tomcat just arbitrarily start to malfunction unless I was modifying app components on it.
Detection of system changes is tricky since multiple classloaders can be involved. Indirect changes may be done that require considerable detective work to get right. These are considerations that any appserver has to deal with.
For myself, I just follow a rule that JSP changes I do "hot", but changes to Java classes I cycle Tomcat down and back up. It doesn't take that long, and that way I know everything's in sync.


Customer surveys are for companies who didn't pay proper attention to begin with.
Ravi Veera
Ranch Hand

Joined: Jun 23, 2001
Posts: 127
For myself, I just follow a rule that JSP changes I do "hot", but changes to Java classes I cycle Tomcat down and back up. It doesn't take that long, and that way I know everything's in sync.

I do the same thing too. I guess years of working on DOS/windows makes it kind of automatic . You can also use the manager application to force a reload of the classes for a webapp. Maybe someone can tell us how effective the manage app is.
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Re: the manager app.

Not so good. Kinda flakey. Doesn't always perform as advertised. This was on a Solaris box running Tomcat 4.0.1, and I'd make a change, use the manager app to restart the app, but the changes were not reflected.

Bottom line solution is a restart of Tomcat.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is Tomcat stable?