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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T12:31:22+00:00 2026-06-07T12:31:22+00:00

I have the following problem: I deploy a web application in Tomcat (Linux) and

  • 0

I have the following problem:
I deploy a web application in Tomcat (Linux) and after shutdown of Tomcat, if I do ps -ef I still can see the java process running.
I believe this happens due to some hanging thread but I don’t know how can I track this thread down.
How can I debug this issue?

  • 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-07T12:31:24+00:00Added an answer on June 7, 2026 at 12:31 pm

    You can generate 4-5 thread dumps as described below and then analyze them using tools like Samurai.

    What you want to check is when a stuck thread or long running transaction happens, all the thread dumps will show a certain thread id is at the same line in your java stack trace. In simpler terms, the transaction is spanning across multiple thread dumps and hence needs more investigation.

    Now when you run these through Samurai, it will highlight these in Red colour so you can quickly click on it and get to the lines showing issues.

    See an example of this here. Look at the Samurai output image in that link. The Green cells are fine. Red and Grey cells need looking at.

    Generating a Thread Dump:

    (Linux)

    If the JVM is running in a console then simply press Ctrl-\.
    If the JVM is running in the background then send it the QUIT signal:

    kill -QUIT process_id

    There process_id is the process number of the running Java process. The thread dump will be sent to wherever standard out is redirected too.
    You can generally get the process numbers of of all running Java processes with the command:

    ps axf | grep java

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

Sidebar

Related Questions

I have following problem: I have built a tabbar application with 4 tabs. I
I am using GWT/JAVA for development. I have following problem: I want to remove
I have the following problem, from c++ I send huge string[] to java. huge
My problem is that if I use Eclipse to deploy my Web Application (via
We have following problem. Developers frequently need to make small changes to our web
I have the following problem. I am trying to customize default TFS build process
I have the following problem. When I deploy my ear file to server\default\deploy folder
I have a problem deploying an Axis 2 web application. I'm using Jboss 4.2.0,
I have the following problem. When I developed my application locally I was deploying
I have a web service project in eclipse, and i deploy it to Tomcat

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.