-
Task
-
Resolution: Done
-
Minor
-
None
-
Ubuntu 14.04.5
Openjdk 8u141
Jenkins core: 2.60.3
ssh-slave plugin: 1.16
I recently upgraded Jenkins core from 2.46.2 to 2.60.3 along with some other Jenkins plugins.
After the upgrade,
I noticed under the slave node's log,
the slave node would call "hudson.remoting.RemoteInvocationHandler$Unexporter reportStats" every minute.
[01/03/18 12:56:17] [SSH] Checking java version of java
[01/03/18 12:56:17] [SSH] java -version returned 1.8.0_141.
[01/03/18 12:56:17] [SSH] Starting sftp client.
[01/03/18 12:56:17] [SSH] Copying latest slave.jar...
[01/03/18 12:56:18] [SSH] Copied 719,269 bytes.
Expanded the channel window size to 4MB
[01/03/18 12:56:18] [SSH] Starting slave process: cd "/home/devops/jenkins_slave_robot" && java -jar slave.jar
<===[JENKINS REMOTING CAPACITY]===>channel started
Slave.jar version: 3.7
This is a Unix agent
Evacuated stdout
Agent successfully connected and online
Jan 03, 2018 1:44:28 PM hudson.remoting.RemoteInvocationHandler$Unexporter reportStats
INFO: rate(1min) = 108.5±158.0/sec; rate(5min) = 112.7±187.8/sec; rate(15min) = 100.9±206.8/sec; rate(total) = 76.1±201.5/sec; N = 573
Jan 03, 2018 1:45:28 PM hudson.remoting.RemoteInvocationHandler$Unexporter reportStats
INFO: rate(1min) = 99.1±158.2/sec; rate(5min) = 108.7±182.8/sec; rate(15min) = 100.3±203.9/sec; rate(total) = 76.4±200.6/sec; N = 585
Jan 03, 2018 1:46:28 PM hudson.remoting.RemoteInvocationHandler$Unexporter reportStats
INFO: rate(1min) = 98.4±150.5/sec; rate(5min) = 107.1±177.2/sec; rate(15min) = 100.2±200.8/sec; rate(total) = 76.8±199.8/sec; N = 597
Jan 03, 2018 1:47:28 PM hudson.remoting.RemoteInvocationHandler$Unexporter reportStats
INFO: rate(1min) = 104.5±156.7/sec; rate(5min) = 108.3±175.0/sec; rate(15min) = 101.2±198.8/sec; rate(total) = 77.6±199.2/sec; N = 609
Jan 03, 2018 1:49:28 PM hudson.remoting.RemoteInvocationHandler$Unexporter reportStats
INFO: rate(1min) = 106.3±150.0/sec; rate(5min) = 104.2±166.1/sec; rate(15min) = 100.3±192.9/sec; rate(total) = 78.2±197.5/sec; N = 633
Is there anyway I could disable this "hudson.remoting.RemoteInvocationHandler$Unexporter reportStats"?
or do you know which Jenins core version I need to downgrade back to get rid of this feature?
or do you know this "hudson.remoting.RemoteInvocationHandler$Unexporter reportStats" is called/triggered by what plugins that I can downgrade or uninstall?
- relates to
-
JENKINS-25858 java.io.IOException: Unexpected termination of the channel
-
- Resolved
-
-
JENKINS-48850 Random java.io.IOException: Unexpected termination of the channel
-
- Closed
-
The message comes from here: https://github.com/jenkinsci/remoting/blob/master/src/main/java/hudson/remoting/RemoteInvocationHandler.java#L697 . You have a pretty high request rate on the agent, so that it reports the issue. This diagnostics has been introduced in remoting 2.58, which is pretty old now. So this message should be happening in all Jenkins 2 versions, it's not directly related to your upgrade.
In order to disable the logging, you need to set lower logging level (e.g. WARNING) in RemoteInvocationHandler or Jenkins globally.
Generally I think that such diagnostics is valid for the INFO level, but it would be possible to add a system property flag to disable that. It would be a feature request, not a bug