intellij-quarkus
intellij-quarkus copied to clipboard
When stopping application in debug mode process seems not be terminated
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
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
Tested on Linux with no chance. Will ask a peer to reproduce on MacOS
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.
Weird, for me - after clicking Stop All - I can still curl it :-( Don't know if I can provide some other details..
Can you show a capture of the run command windows ?
sorry for the confusion but with gradle (i was using maven) I can now reproduce it.