- Notifications
You must be signed in to change notification settings - Fork1.1k
Description
Problem Description
The JetBrains Active Connections counter in the Coder UI is perpetually stuck at0, even when users are actively connected via JetBrains Toolbox or Gateway. This issue has been observed across multiple customers for at least six months.
Current Behavior
- The connection counter remains at
0despite confirmed active usage - The tracking mechanism relies on a string match (
idea.vendor.name=JetBrains) in the forwarded process name, which appears to no longer be used by newer JetBrains processes - In some workspaces, even with JetBrains running, no "discovered forwarded JetBrains process" log entry appears
Investigation Results
Based on process analysis in a workspace with active JetBrains usage:
# Active JetBrains processes found:$ jps -lv3607 com.jetbrains.toolbox.MainKt -ea -Dfile.encoding=UTF8 ...11004 com.intellij.idea.Main abort vfprintf -XX:ErrorFile=/home/coder/java_error_in_goland_%p.log ...The processes are running as:
- JetBrains Toolbox CLI:
com.jetbrains.toolbox.MainKt - GoLand IDE:
com.intellij.idea.Main
However, these processes may not contain the expectedidea.vendor.name=JetBrains property that Coder's detection logic relies on.
Potential Solutions
Update detection logic to recognize modern JetBrains process patterns:
- Look for
com.jetbrains.toolbox.MainKtprocesses - Look for
com.intellij.idea.Mainprocesses - Check for JetBrains-specific JVM arguments or classpath patterns
- Look for
Leverage existing experimental flag: The
--usage-type=JetBrainsflag seems to work ondev.coder.com, suggesting this could be formalized as the default detection methodImplement fallback detection strategies when legacy string matching fails
Expected Behavior
Active JetBrains sessions (via Gateway/Toolbox) should be accurately reflected in the Coder UI's Active Connections metric.
Environment
- Coder Version: [Current production version]
- JetBrains Toolbox: 2.6.3.43718
- IDE: GoLand (via
com.intellij.idea.Main) - Platform: Linux