Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 176157
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T13:49:36+00:00 2026-05-11T13:49:36+00:00

I have a single Tomcat 6 instance that frequently needs to be rebooted because

  • 0

I have a single Tomcat 6 instance that frequently needs to be rebooted because of PermGen issues after multiple WAR deployments.

In a Production environment it’s clearly bad practice to take down the site, leaving any visitors with nothing but a connection failure. The big picture is to set up a fail-over Tomcat cluster of one or two more instances, but for now I’d like a simple solution:

When Tomcat is down, all requests are forwarded to an Apache HTTP server running 1 simple ‘Site is under maintenance’ type page.

I assume I need some small, super fast proxy to sit in front of Tomcat, feeding it requests and monitoring its health. If it dies, it simply sends those requests to Apache HTTP.

Ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T13:49:36+00:00Added an answer on May 11, 2026 at 1:49 pm

    You could just generally use Apache in front of your tomcat install. Set up a redirect proxying rule to your tomcat. If that doesn’t work, apache will send a ‘503 Service Temporarily Unavailable’ which you could configure to be your maintenance page.

    The apache application file would look somewhat like this

    <VirtualHost *>     ServerName example.com     ServerAlias *.example.com     ServerAdmin admin@example.com      RewriteEngine on     RewriteRule ^/static/(.*) /some/path/for/static/files/static/$1 [L]     RewriteRule ^(.*) http://127.0.0.1:8080$1 [P]      ErrorLog /var/log/apache2/example/error.log      # Possible values include: debug, info, notice, warn, error, crit,     # alert, emerg.     LogLevel warn      CustomLog /var/log/apache2/example/access.log combined     ServerSignature On      ErrorDocument 503 /static/site_down.html </VirtualHost> 

    The first rewrite rule changes all files in below a certain URI ( /static/ ) to a directory from which those static files are served directly without proxying. You could use this to serve all static resources from your website, too, which would somewhat make up for the general (small) performance loss of having an apache in front of your tomcat.

    The ErrorDocument directive changes the normal 503 response to the document site_down.html lying in this static path.

    For this to work you need to enable mod_rewrite and mod_proxy/mod_proxy_http and enable the proxy in your apache2 config

    <Proxy *>         Order Deny,Allow         Deny from all         Allow from all </Proxy> 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 112k
  • Answers 112k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer It is very possible. You just have to make sure… May 11, 2026 at 9:55 pm
  • Editorial Team
    Editorial Team added an answer You can use a VisualBrush : <Button Content="Hello"> <Button.Background> <VisualBrush>… May 11, 2026 at 9:55 pm
  • Editorial Team
    Editorial Team added an answer If you think about the Greek roots of the term,… May 11, 2026 at 9:55 pm

Related Questions

I have inherited a Java application (servlets) that runs under Tomcat. For historical reasons,
Hey all, I'm pulling my hair out on this one. I've checked all my
I'm running tomcat and have some jsp pages that display a subset of a
I have a single user java program that I would like to have store

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.