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

Tomcat

Ramaswamy Srinivasan
Ranch Hand

Joined: Aug 31, 2004
Posts: 295
Hi all,

Am using Apache Tomcat 4.1.18. I find it to be dead slow. Takes a long time to load pages and execute. Any idea, apart from freeing the work folder?

Thanks in advance.

Cheers,
Swamy
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
integrate tomcat with apache web server or IIS. the performance will definitly improve.
Ramaswamy Srinivasan
Ranch Hand

Joined: Aug 31, 2004
Posts: 295
Hi Adeel,

Could u plz expand on this? Like how do i go about this?

Cheers,
Swamy
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12823
    
    5
Tomcat 5 is supposed to be faster, in addition to having improved management capabilities. I am surprised you find Tomcat 4 "dead slow" - my timing tests with my mock exam servlet shows responses done within 10 milliseconds. Perhaps you are just seeing the initial compile time of a JSP?
Bill
Barbara Norway
Ranch Hand

Joined: Sep 30, 2003
Posts: 150
Ramaswamy,

Start here:

tomcat

and here:

jk connector

and here:

connector config how-to

and finally, here:



Apache web server and

here:
another apache connectors help page.

Not necessarily in this order.

Read a lot, try things (not on a live server), read some more, try more things, come back here and ask specific questions, etc.

Good luck and hope this helps.

Getting the right combination of versions of Apache, Tomcat, and the connector is half the battle.

Barbara


farmkitty
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17259
    
    6

We actually have a Tomcat forum.

Moving this thread to that forum.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Ramaswamy Srinivasan
Ranch Hand

Joined: Aug 31, 2004
Posts: 295
Hi Mark,

Sorry, I didn't notice the Tomcat Forum. Sorry for the Inconvenience.

Hi Barbara,

Thanks a lot for the links. I am going thru them and shall get back to you.
By the way, could you clarify on more thing?, like, I have a web application. That contains several JSPs. If i want to make the default page, to be loaded when the application is called,say Login.jsp must be loaded. What am i supposed to do?

My Folder Structure:

c:\Tomcat\webapps\Track - jsp's
c:\Tomcat\webapps\Track\web-inf\classes\ -Servlets and Beans.

Now my point is to load the Login.jsp when i call
localhost:8080/Track

Kindly help.....

Thanks in advance........
Ramaswamy Srinivasan
Ranch Hand

Joined: Aug 31, 2004
Posts: 295
Hi ppl,

This is to remind you, to kindly provide some inputs on my previous post in this topic.

Cheers,
Swamy
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12823
    
    5
My interpretation of your problem is that you want login.jsp to automatically be displayed if the URL ends in /Track without naming a page. For this, Tomcat uses the welcome-file-list - see this typical entry in the default web.xml.

Bill
Ramaswamy Srinivasan
Ranch Hand

Joined: Aug 31, 2004
Posts: 295
Hi Bill....

Thanks a lot. Shall try it out and tell you.

Cheers,
Swamy
Ramaswamy Srinivasan
Ranch Hand

Joined: Aug 31, 2004
Posts: 295
Hi Bill,

Thanks a lot for you help man, that's really working fine....Thanks......

 
Don't get me started about those stupid light bulbs.
 
subject: Tomcat