Jenkins Remoting Library and JarCache

16 views
Skip to first unread message

Kristian

unread,
May 19, 2017, 9:25:42 AM5/19/17
to jenkins...@googlegroups.com
Hi,

I read, that the Remoting library of Jenkins has a so-called Cache dir
(https://github.com/jenkinsci/remoting/blob/master/docs/workDir.md).

Why is this cache dir needed? What is the purpose of it? And what is
concretely saved/cached in there? I only see a bunch of jar files...

Oleg Nenashev

unread,
May 22, 2017, 5:30:22 AM5/22/17
to Jenkins Users
Yes, it is a bunch of JAR Files and other resources like DLLs. In Jenkins Remoting agents are lightweight libraries (slave.jar), which do not contain much logic OOTB. This cache is required in order to save remoting data and to avoid high classloading traffic every time your agent connects to the master and executes builds.

Currently Jenkins core enforces FileSystem JAR cache in remoting though Remoting can probably work without it. If you want to have such mode, feel free to submit issue in JIRA. Pull requests will be also appreciated.

Hopefully it helps,
Oleg Nenashev

пятница, 19 мая 2017 г., 15:25:42 UTC+2 пользователь Kristian X написал:
Reply all
Reply to author
Forward
0 new messages