• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

apache tomcat performance tuning (caching)

 
shivani vidit
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nope...

We are reffering to server caching....
 
Lester Burnham
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
to use Apache httpd:, do we first need to install apache server and manually connecti it to tomcat?
 
Lester Burnham
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. There's ample documentation on the Tomcat site on how to hook it up to httpd.
 
shivani vidit
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm sure there are error messages in one of the log files, or maybe on the console; start by finding those.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic