Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm using Apache 2 as my load balancer (mod_jk).

I've 2 Tomcat servers behind my load balancer.

What I'm trying to do is to enable caching of my static pages in my load balancer using mod_cache but nothing seems to be working. I confirmed this by creating a simple JSP page that prints out current date time and I always get the latest date time (indicating that the JSP page is not cached).

OS: Ubuntu

mem_cache directive:

<IfModule mod_mem_cache.c>
        CacheEnable mem /
        MCacheSize 4096
        MCacheMaxObjectCount 100
        MCacheMinObjectSize 1
        MCacheMaxObjectSize 2048
</IfModule>
share|improve this question
    
What does your current mod_cache directive look like? –  에이바 Mar 26 '12 at 17:22
    
hi, please take a look at my question. I just added the directive there. –  tommi Mar 26 '12 at 17:50
    
Let's start with the simplest solution, do you have mod_cache.so installed? –  에이바 Mar 26 '12 at 17:58
    
Yes. I followed instructions from here, howtoforge.com/caching-with-apaches-mod_cache-on-ubuntu-10.04. For mem cache. –  tommi Mar 26 '12 at 18:36
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.