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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T05:16:44+00:00 2026-06-07T05:16:44+00:00

My situation is like this: Everytime before uploading war file to web-app folder, I

  • 0

My situation is like this:

Everytime before uploading war file to web-app folder, I stop Tomcat by calling sh shutdown.sh. It used to take about 30 seconds for a total shutdown. But now it doesn’t work well anymore.

Actually, it did some work, because when I access the application from web-page it throws 503 error (Under Maintenance). But when I use ps aux | grep tomcat to check, the tomcat process is still there. And it will be there for around 5 – 10 mins.

I understand that it may need to take extra times to complete all the tasks, but it is way too slow (5 – 10 minutes), before it is stop totally. I don’t understand why this happens, but there must be some reason. Maybe there’s something to do with the code, or the new script of deployment we used recently. I just have almost no clue about where to check.

This is important to our team because we are using “auto-deployment”, in which we use a script to auto-package war file, uploading and deploy on a specific time. If we started a new tomcat instance before the old one successfully shutdown, it will hang there for eternal, and cleaning up task by “kill -9” is daunting.

Is there anyone who has experimented this issue? Any clue would be appreciated.

  • 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-06-07T05:16:47+00:00Added an answer on June 7, 2026 at 5:16 am

    Hoàng Long –

    Thank you for the update.

    1) The fact that you see your Quartz jobs running, and the error message, are both significant:

    SEVERE: The web application [/project] appears to have started a
    thread named [Resource Destroyer in BasicResourcePool.close()] but has
    failed to stop it. This is very likely to create a memory leak.

    2) One suggestion is configuration:

    http://forum.springsource.org/showthread.php?17833-Spring-Quartz-Tomcat-no-shutdown

    I had the same problem. I fixed it by adding
    destroy-method="destroy" to the SchedulerFactoryBean definition.
    This way spring closes down the scheduler when the application is
    stopped.

    3) Another suggestion is to add a shutdown listener:

    http://forums.terracotta.org/forums/posts/list/15/4341.page

    Using a context listener and introducing a timeout on shutdown solves
    the issue for me. I just wait a second after shutting down:

      public void contextDestroyed(ServletContextEvent sce) {
        try {
          factory.getScheduler().shutdown();
          Thread.sleep(1000);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a situation like this. I have scrollpane whose viewportView is a JPanel
i have situation like this: class IData { virtual void get() = 0; virtual
I've got a situation like this: Table: FunTable ItemKey ItemName ItemPriceEffectiveDate ItemPrice 11 ItemA
I have situation like this: user submits form with action='/pay' in '/pay' I have
So I have a situation like this: A needs to call B service and
I have a situation like this: +------------------------------------------------------------------------------+ | | | +---------------------------------------------------+ | | |
I have a situation like this: start(); <Some code> end(); I want start() function
I haven't been able to find anything for a situation like this. I have
Situation is like this: There are independent 5 services. Each service consists of a
my situation is like this thread : ASP.NET Custom Validator + WebMethod + jQuery

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.