Jenkins slave restart

2,076 views
Skip to first unread message

pra...@gmail.com

unread,
Apr 22, 2015, 10:08:47 AM4/22/15
to jenkins...@googlegroups.com
Hi,
 
We have recently adopted Jenkins to manage performance testing lab which comprises of many performance testing servers.
 
A little background of the problem we have:
 
Lately we have been observing some discrepancy in the readings due to memory consumption of Jenkins slave - memory usage goes up and down.
 
For reliability we need same readings when a single test is executed multiple times. But that doesn't seem to happen now after adopting Jenkins.
 
We have observed that Jenkins slave memory usage increases gradually over a period of time and suspecting that this could be affecting the stability of the performance tests.
 
Question:
 
So now we want to figure out a way to restart Jenkins slave after every performance test we perform on the server. Using Jenkins slave as a service is preventing us to access some network shares so we were forced to start Jenkins slave using the java -jar option.
Is there a way we can restart Jenkins slaves after every test run on the slave?
 
I have also attached herewith the list of plugins I have installed. Please advise if any of these plugins could be causing the increasing memory usage of Jenkins slave.
I can share more details about my setup if it helps.
 
Thank you for your time and advice.
 
Regards,
Praneeth
 
 
 
 
 
Jenkins plugins installed list April 22 2015.txt

Dunnigan, Terrence J

unread,
Apr 22, 2015, 2:17:09 PM4/22/15
to jenkins...@googlegroups.com

Two thoughts.

 

1)      When running Jenkins as a service, can you run as a user, instead of local system? And can you give that user permissions to your share?

2)      From a command window, “shutdown /r /t 0” will restart the machine. If you’re not running as a service you’ll need to log in before the slave reconnects.

 

Terry

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/799ea334-37b4-4475-b317-37e8f4d6952c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mark Waite

unread,
Apr 22, 2015, 7:17:49 PM4/22/15
to jenkins...@googlegroups.com
If you're running performance tests, isn't the presence of any other processes a risk to the repeatability of your performance test?

Wouldn't it be better to use a Jenkins slave (or master) to launch the target program from a remote machine, without a Jenkins slave agent on the machine running  the tests?

Mark Waite

pra...@gmail.com

unread,
Apr 24, 2015, 12:40:28 PM4/24/15
to jenkins...@googlegroups.com
Hi Mark,
 
Thanks for your suggestion. We thought it was convenient to run Jenkins slave on the machine running the tests because Jenkins would show us the progress of the job while it is running and other nice to have information.
 
Are you suggesting that we launch the target program using psexec from within Jenkins master? This definitely looks like a promising solution. We will give it a try if other options fail.
 
For now we are using task scheduler to run Jenkins slave.jar. it seems to work.
 
Thanks

Mark Waite

unread,
Apr 24, 2015, 1:15:03 PM4/24/15
to jenkins...@googlegroups.com
Yes, that was what I was suggesting.

If your performance tests need enough consistency that the Jenkins slave agent growth is a real problem, then it seems like you should consider not executing the slave on the target node at all.  It seems like you may also want to reboot the computer before starting the performance tests, and take other measures to assure the computer is not affected by other programs running on the machine unnecessarily (like virus scanners and corporate administrative jobs and ...).

Mark Waite

Reply all
Reply to author
Forward
0 new messages