Way to push log info to remoting.jar log

25 views
Skip to first unread message

Michael Carter

unread,
Nov 12, 2024, 10:13:41 AM11/12/24
to Jenkins Developers
What class or how would I send info to the remoting.jar log on the remote agent?

Basically my issue the remoting.jar keeps crashing with an exit code 143 at random times, usually on a Monday.   What I want to do is have my plugin log start and stop of what its doing to that log so I can get an idea of what was running when it crashed.   Trying to match jobs, and lunch operations from the Jenkins log is becoming a bit difficult.

Jesse Glick

unread,
Nov 12, 2024, 5:48:46 PM11/12/24
to jenkin...@googlegroups.com
On Tue, Nov 12, 2024 at 10:14 AM Michael Carter <mikeyca...@gmail.com> wrote:
What class or how would I send info to the remoting.jar log on the remote agent?

Do you mean the system error of the agent process? (As opposed to the “agent launch log”, which is collected on the controller.) You could just write a `MasterToSlaveCallable` which does something with `java.util.logging`. 

Ivan Fernandez Calvo

unread,
Nov 13, 2024, 2:31:07 AM11/13/24
to Jenkins Developers
You can configure logging in the Agent when you launch it. The issue you describe used to be an OOM. If you can install something to monitor the memory usage of the Agents and send that data to somewhere you can review it, you will probably catch the problem.

Reply all
Reply to author
Forward
0 new messages