Skip to content

Instantly share code, notes, and snippets.

@jatin-lab49
Created June 22, 2020 20:40
Show Gist options
  • Save jatin-lab49/a04ea3f338066f2e6b7de1bef5585e25 to your computer and use it in GitHub Desktop.
Save jatin-lab49/a04ea3f338066f2e6b7de1bef5585e25 to your computer and use it in GitHub Desktop.
TIL-Lab49/Stop IntelliJ printing Java thread dump to console

On a new Ubuntu VM, I noticed my fresh install of IntelliJ was printing a lot of logs to the console. After playing around with the existing projects logging configuration etc, I still could not squelch logs that began with:

2020-06-18 16:07:08
Full thread dump OpenJDK 64-Bit Server VM (25.252-b09 mixed mode):

I finally realized IntelliJ was attaching itself to the process, and this issue helped me figure out how to stop that: https://youtrack.jetbrains.com/issue/IDEA-203543

The trick is to disable the debugger.attach.to.process.action registry key in IntelliJ. You can do this as follows:

  1. Open IntelliJ Help menu and click on Find Action...
  2. In the window that opens, type Registry and press enter.
  3. In the Registry window that opened, find the key with name debugger.attach.to.process.action and uncheck the checkbox in the Value column.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment