I use jenkins master-slave configuration for capturing Performance metrics of a product. We have observed that jenkins-slave tends to accumulate memory and thus influences the P
If you still need an answer: https://wiki.apache.org/general/Jenkins#How_do_I_restart_a_Jenkins_Unix_Slave.3F
Although, I just did a disconnect and then I saw that the processes died in the slave. I did not have to kill them manually. Then launch the slave again and that's it.
This is good from web UI. I have not searched for CLI for this yet.