-
Improvement
-
Resolution: Fixed
-
Major
-
None
In order to diagnose a Jenkins master that developed a remoting related problem (such as channel clogging), we want remoting to be able to provide detailed statistics for a channel, and support core plugin to be able to pull this information into a bundle.
Code changed in jenkins
User: Kohsuke Kawaguchi
Path:
src/main/java/hudson/remoting/Channel.java
src/test/java/hudson/remoting/ChannelTest.java
http://jenkins-ci.org/commit/remoting/522a022ae961d31b7b4346f90d04c3d08115e7f7
Log:
JENKINS-39150expose diagnostics across all the channelsTo be used by support-core, we need to be able to enumerate all active
channels. We do this via WeakHashMap so that references get
automatically garbage collected.
Unclosed channel will remain in memory forever, which also helps us find
those leaks.