intellij-quarkus icon indicating copy to clipboard operation
intellij-quarkus copied to clipboard

When stopping application in debug mode process seems not be terminated

Open marceloverdijk opened this issue 2 years ago • 6 comments

When creating a Quarkus run configuration with default settings and starting it in Debug mode 2 sessions a started:

  • Quarkus (Gradle) - which runs quarkusDev
  • (Remote) - which attached the debug session

This works as expected and the application can be debugged.

Now when stopping the application (so terminating both sessions mentioned above) in IntelliJ these are terminated.

But the application still runs and is not terminated. E.g. executing a curl on a REST endpoint gives results...

Also netstart shows this:

❯ netstat -anv | grep 8080
tcp4       0      0  127.0.0.1.50758        127.0.0.1.8080         TIME_WAIT   408300 146988  50307      0 0x2131 0x00000008

Now it means I have to netstat everytime to find the process and kill it manually...

Is this expected or have I some misconfiguration on my end?

OS: Mac Intellij: Community Edition 2022.2

marceloverdijk avatar Aug 09 '22 19:08 marceloverdijk

That maybe a MacOS issue as I can't reproduce on Windows. Can try with only the Quarkus configuration and see what's the behaviour. Will try to find a MacOS machine to test

jeffmaury avatar Aug 10 '22 17:08 jeffmaury

Tested on Linux with no chance. Will ask a peer to reproduce on MacOS

jeffmaury avatar Aug 11 '22 07:08 jeffmaury

I cannot reproduce this using MacOS. After stopping both run configs via "Stop All", the app is not responding to curl localhost:8080 any more for me.

adietish avatar Aug 11 '22 13:08 adietish

Weird, for me - after clicking Stop All - I can still curl it :-( Don't know if I can provide some other details..

marceloverdijk avatar Aug 11 '22 13:08 marceloverdijk

Can you show a capture of the run command windows ?

jeffmaury avatar Aug 11 '22 13:08 jeffmaury

sorry for the confusion but with gradle (i was using maven) I can now reproduce it.

adietish avatar Aug 11 '22 13:08 adietish