You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Brian Le <sp...@yahoo.com> on 2008/02/11 15:43:32 UTC

Apache Tomcat takes 3 to 4 browser request clicks to "wake up" after being idle for 1-2 hours

Hello,

Issue:
Apache Tomcat takes 3-4 browser request clicks to "wake up" after being idle for 1-2 hours.

Tomcat is very responsive after Apache and Tomcat server startup also after doing my 3-4 browser request clicks to the website to "wake up" Tomcat.
However, after 1-2 hours of being idle (having no bowser requests or visits), it seem like Tomcat require me to click 3-4 browser request clicks  to "wake it up" then it will become very responsive again.

I just developed the website and just started to promote it, so the traffic to the website is very very low.  Every website visitor is very important, I don't want any users who visit the website and thinking the website is down.

Question:
So how do I make Tomcat responsive to website visitors after 1-2 hours of no visitors?

I have being searching and googling for a solution to this issue for a long time but could not find a solution.

Web server setup:
Suse Linux 10.3 - text based, minimal install
Apache 2.2.8 - mpm_worker, compiled front end using mod_jk 1.2.26 Tomcat connector, default configuration
Tomcat 6.0.16 - JSF 1.2
JDK 1.6.0_04 - 1.5gig heap

Thank you for any help and sorry if I am not clear,
-Brian





      ____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/newsearch/category.php?category=shopping

RE: Apache Tomcat takes 3 to 4 browser request clicks to "wake up" after being idle for 1-2 hours

Posted by Peter Crowther <Pe...@melandra.com>.
> From: Brian Le [mailto:spacemanx2006@yahoo.com]
> So how do I make Tomcat responsive to website visitors after
> 1-2 hours of no visitors?

> Web server setup:
> Suse Linux 10.3 - text based, minimal install
> Apache 2.2.8 - mpm_worker, compiled front end using mod_jk
> 1.2.26 Tomcat connector, default configuration
> Tomcat 6.0.16 - JSF 1.2
> JDK 1.6.0_04 - 1.5gig heap

Run vmstat (or your preferred performance monitor) on the box (vmstat 1 might be appropriate for you).  Leave it idle.  Watch vmstat as the box "wakes up" Tomcat.  What's happening - disk i/o?  CPU?  Paging traffic?

My first guess is that some other process has caused large chunks of Tomcat's heap to be paged out, and the delay is due to paging issues.  If you use a back-end database, this could also happen to the database.

                - Peter

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Apache Tomcat takes 3 to 4 browser request clicks to "wake up" after being idle for 1-2 hours

Posted by Len Popp <le...@gmail.com>.
Are there any errors in the Tomcat logs? Are the requests even getting
to the Tomcat server? You can have Apache, Tomcat and mod_jk log all
requests to see if they're getting lost somewhere. Also check if
there's a problem with the database (if you're using one).

As a stop-gap, you could write a little program to "ping" the site
with an HTTP request every few minutes, to keep it awake.
-- 
Len

On Feb 11, 2008 9:43 AM, Brian Le <sp...@yahoo.com> wrote:
> Hello,
>
> Issue:
> Apache Tomcat takes 3-4 browser request clicks to "wake up" after being idle for 1-2 hours.
>
> Tomcat is very responsive after Apache and Tomcat server startup also after doing my 3-4 browser request clicks to the website to "wake up" Tomcat.
> However, after 1-2 hours of being idle (having no bowser requests or visits), it seem like Tomcat require me to click 3-4 browser request clicks  to "wake it up" then it will become very responsive again.
>
> I just developed the website and just started to promote it, so the traffic to the website is very very low.  Every website visitor is very important, I don't want any users who visit the website and thinking the website is down.
>
> Question:
> So how do I make Tomcat responsive to website visitors after 1-2 hours of no visitors?
>
> I have being searching and googling for a solution to this issue for a long time but could not find a solution.
>
> Web server setup:
> Suse Linux 10.3 - text based, minimal install
> Apache 2.2.8 - mpm_worker, compiled front end using mod_jk 1.2.26 Tomcat connector, default configuration
> Tomcat 6.0.16 - JSF 1.2
> JDK 1.6.0_04 - 1.5gig heap
>
> Thank you for any help and sorry if I am not clear,
> -Brian
>
>
>
>
>
>       ____________________________________________________________________________________
> Looking for last minute shopping deals?
> Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/newsearch/category.php?category=shopping



-- 
Len

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org