How to Check why JVM is not able to terminateWhat is reflection and why is it useful?What is a serialVersionUID and why should I use it?How do I read / convert an InputStream into a String in Java?Why is subtracting these two times (in 1927) giving a strange result?Why don't Java's +=, -=, *=, /= compound assignment operators require casting?Why is char[] preferred over String for passwords?How to fix java.lang.UnsupportedClassVersionError: Unsupported major.minor versionWhy is processing a sorted array faster than processing an unsorted array?What are the -Xms and -Xmx parameters when starting JVM?Why is printing “B” dramatically slower than printing “#”?

antonym of "billable"

Why did MS-DOS applications built using Turbo Pascal fail to start with a division by zero error on faster systems?

Start from ones

Prove your innocence

Is using a hyperlink to close a modal a poor design decision?

Is it safe to remove the bottom chords of a series of garage roof trusses?

Efficiently pathfinding many flocking enemies around obstacles

Is there any practical application for performing a double Fourier transform? ...or an inverse Fourier transform on a time-domain input?

Why is my Earth simulation slower than the reality?

How would one country purchase another?

how do you harvest carrots in creative mode

See details of old sessions

What is the difference between true neutral and unaligned?

for loop not working in bash

Why is Boris Johnson visiting only Paris & Berlin if every member of the EU needs to agree on a withdrawal deal?

Did the British navy fail to take into account the ballistics correction due to Coriolis force during WW1 Falkland Islands battle?

How to find multiple values on the same line in any permutation using Notepad++?

Was there ever a treaty between 2 entities with significantly different translations to the detriment of one party?

What is the best option for High availability on a data warehouse?

Avoiding racist tropes in fantasy

What is this symbol: semicircles facing eachother

Fried gnocchi with spinach, bacon, cream sauce in a single pan

Does travel insurance for short flight delays exist?

Why isn't "I've" a proper response?



How to Check why JVM is not able to terminate


What is reflection and why is it useful?What is a serialVersionUID and why should I use it?How do I read / convert an InputStream into a String in Java?Why is subtracting these two times (in 1927) giving a strange result?Why don't Java's +=, -=, *=, /= compound assignment operators require casting?Why is char[] preferred over String for passwords?How to fix java.lang.UnsupportedClassVersionError: Unsupported major.minor versionWhy is processing a sorted array faster than processing an unsorted array?What are the -Xms and -Xmx parameters when starting JVM?Why is printing “B” dramatically slower than printing “#”?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















I have a program which has reached the end of the spring boot run method but it still won't terminate. Here's a list of threads running when seen in Eclipse Debug:



enter image description here



Here's what I can see after pausing the Threads:



enter image description here



Here's the Thread dump



enter image description here



My program reads from a message stream which is shutdown properly and also uses H2 db which I believe shutsdown when program terminates normally. I am not able to understand what is preventing JVM to shutdown and how to go ahead in tackling this situation be seeing the list of threads running.










share|improve this question


























  • Looks like "Catalina-utility-1" and "container-0" are busy doing stuff. Can you pause those threads and see what's going on? They're possibly keeping your VM alive; the DestroyJavaVM thread will be able to forcefully kill the daemon threads without regret.

    – Not a JD
    Mar 27 at 17:01











  • @NotaJD updated question

    – KCK
    Mar 27 at 17:06












  • Womp I mis-spoke. Looks like DestroyJavaVM takes care of joining to all the non-daemon threads and the VM itself takes care of the daemons. That aside: are you doing anything funky with the container configuration or DispatcherServlet configuration?

    – Not a JD
    Mar 27 at 17:24











  • I haven't touched container configuration or Dispatcher servlet configuration. will be interested in checking though.

    – KCK
    Mar 28 at 5:43

















1















I have a program which has reached the end of the spring boot run method but it still won't terminate. Here's a list of threads running when seen in Eclipse Debug:



enter image description here



Here's what I can see after pausing the Threads:



enter image description here



Here's the Thread dump



enter image description here



My program reads from a message stream which is shutdown properly and also uses H2 db which I believe shutsdown when program terminates normally. I am not able to understand what is preventing JVM to shutdown and how to go ahead in tackling this situation be seeing the list of threads running.










share|improve this question


























  • Looks like "Catalina-utility-1" and "container-0" are busy doing stuff. Can you pause those threads and see what's going on? They're possibly keeping your VM alive; the DestroyJavaVM thread will be able to forcefully kill the daemon threads without regret.

    – Not a JD
    Mar 27 at 17:01











  • @NotaJD updated question

    – KCK
    Mar 27 at 17:06












  • Womp I mis-spoke. Looks like DestroyJavaVM takes care of joining to all the non-daemon threads and the VM itself takes care of the daemons. That aside: are you doing anything funky with the container configuration or DispatcherServlet configuration?

    – Not a JD
    Mar 27 at 17:24











  • I haven't touched container configuration or Dispatcher servlet configuration. will be interested in checking though.

    – KCK
    Mar 28 at 5:43













1












1








1








I have a program which has reached the end of the spring boot run method but it still won't terminate. Here's a list of threads running when seen in Eclipse Debug:



enter image description here



Here's what I can see after pausing the Threads:



enter image description here



Here's the Thread dump



enter image description here



My program reads from a message stream which is shutdown properly and also uses H2 db which I believe shutsdown when program terminates normally. I am not able to understand what is preventing JVM to shutdown and how to go ahead in tackling this situation be seeing the list of threads running.










share|improve this question
















I have a program which has reached the end of the spring boot run method but it still won't terminate. Here's a list of threads running when seen in Eclipse Debug:



enter image description here



Here's what I can see after pausing the Threads:



enter image description here



Here's the Thread dump



enter image description here



My program reads from a message stream which is shutdown properly and also uses H2 db which I believe shutsdown when program terminates normally. I am not able to understand what is preventing JVM to shutdown and how to go ahead in tackling this situation be seeing the list of threads running.







java jvm daemon shutdown






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 28 at 5:42







KCK

















asked Mar 27 at 16:57









KCKKCK

1,3861 gold badge6 silver badges20 bronze badges




1,3861 gold badge6 silver badges20 bronze badges















  • Looks like "Catalina-utility-1" and "container-0" are busy doing stuff. Can you pause those threads and see what's going on? They're possibly keeping your VM alive; the DestroyJavaVM thread will be able to forcefully kill the daemon threads without regret.

    – Not a JD
    Mar 27 at 17:01











  • @NotaJD updated question

    – KCK
    Mar 27 at 17:06












  • Womp I mis-spoke. Looks like DestroyJavaVM takes care of joining to all the non-daemon threads and the VM itself takes care of the daemons. That aside: are you doing anything funky with the container configuration or DispatcherServlet configuration?

    – Not a JD
    Mar 27 at 17:24











  • I haven't touched container configuration or Dispatcher servlet configuration. will be interested in checking though.

    – KCK
    Mar 28 at 5:43

















  • Looks like "Catalina-utility-1" and "container-0" are busy doing stuff. Can you pause those threads and see what's going on? They're possibly keeping your VM alive; the DestroyJavaVM thread will be able to forcefully kill the daemon threads without regret.

    – Not a JD
    Mar 27 at 17:01











  • @NotaJD updated question

    – KCK
    Mar 27 at 17:06












  • Womp I mis-spoke. Looks like DestroyJavaVM takes care of joining to all the non-daemon threads and the VM itself takes care of the daemons. That aside: are you doing anything funky with the container configuration or DispatcherServlet configuration?

    – Not a JD
    Mar 27 at 17:24











  • I haven't touched container configuration or Dispatcher servlet configuration. will be interested in checking though.

    – KCK
    Mar 28 at 5:43
















Looks like "Catalina-utility-1" and "container-0" are busy doing stuff. Can you pause those threads and see what's going on? They're possibly keeping your VM alive; the DestroyJavaVM thread will be able to forcefully kill the daemon threads without regret.

– Not a JD
Mar 27 at 17:01





Looks like "Catalina-utility-1" and "container-0" are busy doing stuff. Can you pause those threads and see what's going on? They're possibly keeping your VM alive; the DestroyJavaVM thread will be able to forcefully kill the daemon threads without regret.

– Not a JD
Mar 27 at 17:01













@NotaJD updated question

– KCK
Mar 27 at 17:06






@NotaJD updated question

– KCK
Mar 27 at 17:06














Womp I mis-spoke. Looks like DestroyJavaVM takes care of joining to all the non-daemon threads and the VM itself takes care of the daemons. That aside: are you doing anything funky with the container configuration or DispatcherServlet configuration?

– Not a JD
Mar 27 at 17:24





Womp I mis-spoke. Looks like DestroyJavaVM takes care of joining to all the non-daemon threads and the VM itself takes care of the daemons. That aside: are you doing anything funky with the container configuration or DispatcherServlet configuration?

– Not a JD
Mar 27 at 17:24













I haven't touched container configuration or Dispatcher servlet configuration. will be interested in checking though.

– KCK
Mar 28 at 5:43





I haven't touched container configuration or Dispatcher servlet configuration. will be interested in checking though.

– KCK
Mar 28 at 5:43












0






active

oldest

votes










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55382691%2fhow-to-check-why-jvm-is-not-able-to-terminate%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes




Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.







Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.



















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55382691%2fhow-to-check-why-jvm-is-not-able-to-terminate%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript