My java processes don't terminate so I need to kill -9 them!

Answered

When I run or debug my programs from IDE (Ultimate 2017.3.1 build 173.3942.27) I need to open a terminal an do `ps -fea` and `kill -9 nnnn` because although I terminate run from Idea the program is still running in the background.

This didn't happen before on Community edition!

May you please help? 

thanks a lot , 

PD: happy new year

3
14 comments

What OS do you use? How do you start IntelliJ IDEA on your OS?

Does it happen with any application you run, even some hello world one?

Does it happen with the current version available at http://www.jetbrains.com/idea/download/index.html?

0
  • MacOS (10.13.2)
  • Running from dock 
  • spring boot app > didn't test more apps, I will try
  • Updated to last now: still happens

More info:

when running I have this, could be a problem?

objc[3514]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/bin/java (0x1022ab4c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x1023364e0). One of the two will be used. Which one is undefined.

1

No, it's unrelated: http://stackoverflow.com/a/43003231/104891 .

Your Spring Boot app may create some threads that are not properly shut down which is causing a problem, so it could be specific to the app you are developing.

Your Java build is way too old and I'd try a more recent one anyway.

0

Ok, that was REALLY my fault, I had 152 JDK but JAVA_HOME was wrong...

:(

I am now on 1.8.0_152 but still this happens. 

May you please wait I test on other apps and will let you know if this is a more general behaviour, or happens only in 1 application.

Thanks for great support

1

Hi,

sorry for delay in continue this issue

This happens in all apps (Spring Boot) applications I have.

Actually I don't know what information to send but, well, just ask

1

Please report at https://youtrack.jetbrains.com/issues/IDEA, provide the following:

- sample project to reproduce
- the exact steps you perform to reproduce the problem
- idea.log (https://intellij-support.jetbrains.com/hc/articles/207241085)
- thread dump of the process that can't be stopped (use jstack: https://intellij-support.jetbrains.com/hc/articles/206544899)

2

Ok, thanks I will do that.

0

i just updated to the last version 2018.2 and this issue appeared very annoying! any solution yet?

1

Please report the issue as described above.

0
Avatar
Permanently deleted user

Same issue here... and I am quite doubtful that the problem lies in the application code. Other devs on my Team are pulling from the same repo (for a Spring Boot micro service) and do NOT experience the problem. I am out of time today, but I will try to pull the pieces you need tomorrow and submit them at the link provided. 

I am on OSX 10.12.6, running some build of Java 1.8 and am using CE. 

1

I have the exact same problem.  Some of my colleagues don't have the problem.

Mac OS Mojave 10.14

Intelij 2018.3, Ultimate

Java 8

Spring boot application in a docker container.

3

Hello Sabrina,

Please report issue on YouTrack as described above.

 

0

I have the exact same problem.  Since Intellij 2018.x. Ultimate

Sometimes project is terminated, sometimes it continues to "run" (just stuck).

Ubuntu16.04 OS.

What is hard for me understand is why "Terminate" option does not "kill" the process (stop it forcibly)? And if it is not "terminate" then maybe introduce such.

Very annoying to kill it manually from terminal every time.

1

Please report as described at https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000763924/comments/115000662250. Comments for this thread are closed to avoid duplicate reports.

0

Post is closed for comments.