Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How do I resolve the Jenkins error: "Process leaked file descriptors" when using the lscm command?

We have a Jenkins job that calls the lscm Windows batch script to log in to RTC. When running the Jenkins job however, we receive the error: "Process leaked file descriptors". This error also appears when running any other lscm command like logout and load. I've tried putting the lscm commands into a separate batch file but I get the same result. Any help would be appreciated. Thanks.

0 votes

Comments

Based on some comment about how this error gets generated, it seems the behavior is expected?
https://wiki.jenkins-ci.org/display/JENKINS/Spawning+processes+from+build
Basically when you run lscm, it does spawn a process (the daemon). This may make Jenkins to believe it is a "problem", hence the error.
To verify this, you can try replace "lscm" with "scm". The difference between these two commands is mainly the daemon - no daemon for "scm".

Using the "scm" command seems to work now, thanks. Are there any downsides to using "scm" rather than "lscm"? 

scm is slower, because it needs to reload all the eclipse libraries to execute the command (instead of sending the request to a running daemon, as is done by lscm).  But otherwise, the functionality is identical.



One answer

Permanent link
Hi Donald,
It seems to be Jenkins issue. I found similar issue here: http://stackoverflow.com/questions/17024441/process-leaked-file-descriptors-error-on-jenkins which refers to https://wiki.jenkins-ci.org/display/JENKINS/Spawning+processes+from+build

Let us know if it helps.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 158
× 151

Question asked: Oct 01 '13, 7:13 p.m.

Question was seen: 23,164 times

Last updated: Oct 03 '13, 11:41 a.m.

Confirmation Cancel Confirm