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 7627075
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:24:40+00:00 2026-05-31T05:24:40+00:00

Can Tomcat tell mod_jk’s load balancer to use another worker when overloaded? If so,

  • 0

Can Tomcat tell mod_jk’s load balancer to use another worker when overloaded? If so, how?

I use Kodo JDO for my persistence layer of a multi-tenant application and a big factor in memory usage is the schema information loaded per database. Every organization who uses my application has their own database. The application does not support clustering or session serialization. Retrofitting it to support those is out of scope for this project.

Each instance of Tomcat is limited to 4GB of heap to keep the garbage collector from choking. No single instance of Tomcat has enough memory to load the schema of all the databases needed for all organizations.

Tomcat’s load balancing is typically done by session. Doing balancing by session can lead to one instance loading more schemas than its memory can hold and it will die a slow and painful death ending in a GC Overhead Limit.

My current workaround is to use multiple explicitly separate instances with separate host names. Each organization is given access to one of these host names.

One option would be for a “full” Tomcat to signal that it can’t serve the user.

Can Tomcat tell mod_jk’s load balancer to use another worker when overloaded? If so, how?

  • 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. Editorial Team
    Editorial Team
    2026-05-31T05:24:41+00:00Added an answer on May 31, 2026 at 5:24 am

    Interesting question (+1). If you find an answer, do pass it on 🙂

    The only way I know of doing this is via a load balancer.

    Another cool feature of using a load balancer is that you can setup http health checks, so if anyone of your instances stops responds, it will move on to the next healthy server.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can i use Tomcat to serve image files from a public folder outside
Is there an open source filter that I can use on Tomcat to prevent
I have configured Tomcat to use LDAP / AD. How can I get more
Can anyone tell me if they know how to use the Google Chart API
Is there any Tomcat API or configuration available which can tell an application (probably
How can I set Tomcat to automatically redirect to www? I want that if
Is there anyway we can add the tomcat eclipse plugin to Adobe Flex Builder
I'm using Tomcat 6.0, and I want to know how can I configure Tomcat's
Can I set timeouts for JSP pages in tomcat either on a per page
I understand that I can specify system properties to Tomcat by passing arguments with

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.