Thread dump on every launch

Answered

I'm using the newest version of Intellij Ultimate (2018.3.1) on Ubuntu 18.10. When I launching Java program, on console there is printed thread dump (see below example):

Full thread dump Java HotSpot(TM) 64-Bit Server VM (25.191-b12 mixed mode):

"Service Thread" #9 daemon prio=9 os_prio=0 tid=0x00007f4a481b7000 nid=0x6b6e runnable [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"C1 CompilerThread2" #8 daemon prio=9 os_prio=0 tid=0x00007f4a481b4800 nid=0x6b6d waiting on condition [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"C2 CompilerThread1" #7 daemon prio=9 os_prio=0 tid=0x00007f4a481b3000 nid=0x6b6c runnable [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"C2 CompilerThread0" #6 daemon prio=9 os_prio=0 tid=0x00007f4a481ac800 nid=0x6b6b runnable [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"Monitor Ctrl-Break" #5 daemon prio=5 os_prio=0 tid=0x00007f4a481ab000 nid=0x6b6a runnable [0x00007f4a23110000]
   java.lang.Thread.State: RUNNABLE
    at java.net.SocketInputStream.socketRead0(Native Method)
    at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
    at java.net.SocketInputStream.read(SocketInputStream.java:171)
    at java.net.SocketInputStream.read(SocketInputStream.java:141)
    at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284)
    at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326)
    at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
    - locked <0x00000000d9006c18> (a java.io.InputStreamReader)
    at java.io.InputStreamReader.read(InputStreamReader.java:184)
    at java.io.BufferedReader.fill(BufferedReader.java:161)
    at java.io.BufferedReader.readLine(BufferedReader.java:324)
    - locked <0x00000000d9006c18> (a java.io.InputStreamReader)
    at java.io.BufferedReader.readLine(BufferedReader.java:389)
    at com.intellij.rt.execution.application.AppMainV2$1.run(AppMainV2.java:64)

"Signal Dispatcher" #4 daemon prio=9 os_prio=0 tid=0x00007f4a48181000 nid=0x6b69 waiting on condition [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"Finalizer" #3 daemon prio=8 os_prio=0 tid=0x00007f4a4814e000 nid=0x6b66 in Object.wait() [0x00007f4a23af9000]
   java.lang.Thread.State: WAITING (on object monitor)
    at java.lang.Object.wait(Native Method)
    - waiting on <0x00000000d9008c48> (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:144)
    - locked <0x00000000d9008c48> (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:165)
    at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:216)

"Reference Handler" #2 daemon prio=10 os_prio=0 tid=0x00007f4a4814b800 nid=0x6b65 in Object.wait() [0x00007f4a23bfa000]
   java.lang.Thread.State: WAITING (on object monitor)
    at java.lang.Object.wait(Native Method)
    - waiting on <0x00000000d9006df8> (a java.lang.ref.Reference$Lock)
    at java.lang.Object.wait(Object.java:502)
    at java.lang.ref.Reference.tryHandlePending(Reference.java:191)
    - locked <0x00000000d9006df8> (a java.lang.ref.Reference$Lock)
    at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:153)

"main" #1 prio=5 os_prio=0 tid=0x00007f4a4800c800 nid=0x6b5f runnable [0x00007f4a4e2bb000]
   java.lang.Thread.State: RUNNABLE
[..]

"VM Thread" os_prio=0 tid=0x00007f4a48141800 nid=0x6b64 runnable

"GC task thread#0 (ParallelGC)" os_prio=0 tid=0x00007f4a48022800 nid=0x6b60 runnable

"GC task thread#1 (ParallelGC)" os_prio=0 tid=0x00007f4a48024000 nid=0x6b61 runnable

"GC task thread#2 (ParallelGC)" os_prio=0 tid=0x00007f4a48026000 nid=0x6b62 runnable

"GC task thread#3 (ParallelGC)" os_prio=0 tid=0x00007f4a48027800 nid=0x6b63 runnable

"VM Periodic Task Thread" os_prio=0 tid=0x00007f4a481ba000 nid=0x6b6f waiting on condition

JNI global references: 16

Heap
 PSYoungGen      total 36864K, used 6558K [0x00000000d7100000, 0x00000000db900000, 0x0000000100000000)
  eden space 31744K, 6% used [0x00000000d7100000,0x00000000d7329fa0,0x00000000d9000000)
  from space 5120K, 84% used [0x00000000d9000000,0x00000000d943d888,0x00000000d9500000)
  to   space 5120K, 0% used [0x00000000db400000,0x00000000db400000,0x00000000db900000)
 ParOldGen       total 84992K, used 8K [0x0000000085200000, 0x000000008a500000, 0x00000000d7100000)
  object space 84992K, 0% used [0x0000000085200000,0x0000000085202000,0x000000008a500000)
 Metaspace       used 7863K, capacity 7944K, committed 8064K, reserved 1056768K
  class space    used 979K, capacity 1052K, committed 1152K, reserved 1048576K

 

I checked my project on earlier version of Intellij (2018.1.7) and there wasn't that thread dump. I also checked program argument and there wasn't any option which enable thread dump. When I launched my program in terminal (copy&paste launching command from IJ) there wasn't that issue so I noticed this issue is related to Intellij 2018.3.

Is there is any way to disable printing that huge log with thread dump (there was added some new options to IJ)? Its generates mess in console when I want to get data from user from standard input...

1
10 comments

There is Dump Threads action in Run tool window which prints the dump into console. The default shortcut for it is Ctrl+Break. Could it be that you send this signal in Run tool window somehow?

Try also if it helps to disable `debugger.attach.to.process.action` registry key (Help | Find Action, type Registry, find the key and disable it).

2
Avatar
Permanently deleted user

Thanka @Andrey for answer!

I checked 'Dump Threads' action issue and checked launch option and I'm sure that I don't send any shortcut to print thread dump by that tool.

I found that key in registry, disabled it and that solved my issue, but I wonder if disabling that option can have any impact on other features of IJ ? I haven't googled any information about that registry key...

0

Do you use Punto Switcher? See https://youtrack.jetbrains.com/issue/IDEA-203172. As a workaround please update it to the latest version (and switch back the registry key).

0
Avatar
Permanently deleted user

No, I'm not using Punto Switcher.

Could you tell me what exactly that registry key/option is responsible for ?

0

This is https://youtrack.jetbrains.com/issue/IDEA-203543. Will be fixed in 2018.3.2 version. That registry property switches the Attach to Process functionality in IDE.

0
Avatar
Permanently deleted user

Okay, thank you for information and help! :)

0
Avatar
Permanently deleted user

I'm having this issue on both my laptop and PC, can anyone help me fix it?

I'm on Ubunutu 18.04 and using Idea 2019.2.

How can I disable full thread dump?

0

@saaniaki

Does it help to disable `debugger.attach.to.process.action` registry key (Help | Find Action, type Registry, find the key and disable it)? 

0
Avatar
Permanently deleted user

No, it did not. I removed all Intellij Idea and reinstalled it but it didn't help.

The last thing I did, I uninstalled it via Snap (yes, I have used Snap to install it), then I removed all of the configurations of previous versions located on the home directory and finally reinstalled via Snap. Fixed the problem.

But still, there should be something better to do.

0

@Saaniaki

 

Please report a bug at https://youtrack.jetbrains.com/issues/IDEA with steps to reproduce the issue and attach idea.log, see https://intellij-support.jetbrains.com/hc/articles/207241085.

0

Please sign in to leave a comment.