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

apache tomcat performance tuning (caching)

shivani vidit
Greenhorn

Joined: Oct 11, 2007
Posts: 14
Hi all,
I am using apache tomcat container to deploy my application. Now i have to monitor the performance of the system(network usage) bu changin the cache levels. I am new to the apche and tomcat therfore i don'thave any idea , where and what to change to moniotr the performance. what i understood till now is, there is httpd.conf file , where we can change the caching values. but i can not find that file in tomcat which is inside "apache software foundation" folder.
do i need to install apache as a server and intergate it wiht tomcat manullay?
or what to do?
what should be the approch if perfomance has to be monitoed?

Please help...
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
How is network usage related to performance, and how are either of these related to caching? What are those caches you're talking about?

As an aside, httpd.conf is related to Apache httpd, not Apache Tomcat.
shivani vidit
Greenhorn

Joined: Oct 11, 2007
Posts: 14
In that case i rebuilt the question:

We belive caching and https compression will rediuce the amount of data transfer between client and the server . To achieve this, we need to configue apache tomcat to enable caching in http compressio. Please suggest how it can be done in apach etomcat 5.5.27.


Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
GZIP compression is configured in conf/server.xml; search for "gzip".

So by "caching", you're referring to the browser cache? If so, be sure to set the cache headers appropriately; see http://faq.javaranch.com/java/NoCacheHeaders for which ones those are.
shivani vidit
Greenhorn

Joined: Oct 11, 2007
Posts: 14
Nope...

We are reffering to server caching....
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
We are reffering to server caching....

If you're using Apache httpd, then you can resort to mod_cache or something like it.

If you want to do this with just Tomcat, then this might be a starting point: http://tim.oreilly.com/pub/a/onjava/2003/11/19/filters.html?page=3
shivani vidit
Greenhorn

Joined: Oct 11, 2007
Posts: 14
to use Apache httpd:, do we first need to install apache server and manually connecti it to tomcat?
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
Yes. There's ample documentation on the Tomcat site on how to hook it up to httpd.
shivani vidit
Greenhorn

Joined: Oct 11, 2007
Posts: 14
Hi,

I have installed apache and copied mod_jk.dll into modules folder of apche.
now i am adding follwing entries into hhtpd.conf file

LoadModule jk_module modules/mod_jk.dll
AddModule mod_jk.c
JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel info

but apche is not starting up...afetr making these entries...

please suggest what could be the reason?

Thanks in anticipation..
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
I'm sure there are error messages in one of the log files, or maybe on the console; start by finding those.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: apache tomcat performance tuning (caching)