What is the purpose of Unexporter.retainOrigin from Remoting Component?

283 views
Skip to first unread message

Łukasz Zachulski

unread,
Jun 6, 2017, 8:20:29 AM6/6/17
to Jenkins Developers
Hello,

Analyzing Jenkins' Remoting Component source code and agents' log files I've found a lot of warnings regarding "reportStats".


In logs:
2017-06-05 23:58:55.789+0200 [id=28820] WARNING h.r.RemoteInvocationHandler$Unexporter#reportStats: The 5 minute average rate is 309.5±87.0/sec. At the 95% c
onfidence level this is above 100.0/sec. If this message is repeated often in the logs then seriously consider setting system property 'hudson.remoting.Remote
InvocationHandler.Unexporter.retainOrigin' to 'false' to trade debug diagnostics for reduced memory pressure.
2017-06-06 00:02:25.393+0200 [id=28835] INFO    h.r.RemoteInvocationHandler$Unexporter#reportStats: rate(1min) = 187.4±166.4/sec; rate(5min) = 278.4±122.9/s
ec; rate(15min) = 281.8±122.3/sec; rate(total) = 18.4±83.2/sec; N = 84,223


I source code:
            if (m15Std > 1 && 100 < m15Avg - 2 * m15Std) {
                if (tStd > 1 && 100 < tAvg - 2 * tStd) {
                    logger.log(Level.SEVERE,
                            retainOrigin ?
                                    "The all time average rate is {0,number,0.0}±{1,number,0.0}/sec. "
                                    + "The 15 minute average rate is {2,number,0.0}±{3,number,0.0}/sec. "
                                            + "At the 95% confidence level both are above 100.0/sec. "
                                            + "If this message is repeated often in the logs then PLEASE "
                                            + "seriously consider setting system property ''hudson.remoting"
                                            + ".RemoteInvocationHandler.Unexporter.retainOrigin'' to "
                                            + "''false'' to trade debug diagnostics for reduced memory "
                                            + "pressure."
                                    : "The all time average rate is {0,number,0.0}±{1,number,0.0}/sec. "
                                                    + "The 15 minute average rate is {2,number,0.0}±{3,number,0.0}/sec. "
                                                    + "At the 95% confidence level both are above 100.0/sec. ",
new Object[]{tAvg, tStd, m15Avg, m15Std})




But I haven't find anything about on Remoting Configuration page where "Unexporter.retainOrigin" is not mentioned at all.

For what purpose does "RemoteInvocationHandler$Unexporter#reportStats" report this data?
What does "retainOrigin" flag do?
When should I explicitly disable "retainOrigin" as asked.


With Regards,
Lukasz.

Stephen Connolly

unread,
Jun 6, 2017, 8:27:52 AM6/6/17
to jenkin...@googlegroups.com
This is typically either a canary in the coal mine or the point where your master is so highly loaded that you need to turn off some of the diagnostics that are run automatically.

If you do not have remoting issues, and your master is heavy usage (100's of concurrent builds) then turn it off

HTH 


--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/8fa770c3-458d-4d78-8287-38f9795a25d5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Sent from my phone

Oleg Nenashev

unread,
Jun 7, 2017, 2:16:47 AM6/7/17
to Jenkins Developers
Please raise a JIRA ticket for this missing option (and probably others of such kind). Some options may be missing, because there was no strict requirement to document them on Jenkins Wiki. I will make sure the option is documented.

Generally you should not need this reporting when everything goes well. But there were bugs with object unexporting, so I would not recommend turning it off unless your instance is really overloaded

вторник, 6 июня 2017 г., 14:27:52 UTC+2 пользователь Stephen Connolly написал:
Reply all
Reply to author
Forward
0 new messages