-
Bug
-
Resolution: Cannot Reproduce
-
Minor
-
None
-
Platform: All, OS: Linux
After downgrading to 1.0.11 of the perforce plugin, we are occasionally getting
the following non fatal Exception.
com.tek42.perforce.PerforceException: Failed to open connection to: p4
at com.tek42.perforce.process.CmdLineExecutor.exec(CmdLineExecutor.java:63)
at
com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(AbstractPerforceTemplate.java:184)
at com.tek42.perforce.parse.Workspaces.getWorkspace(Workspaces.java:26)
at hudson.plugins.perforce.PerforceSCM.pollChanges(PerforceSCM.java:345)
at hudson.model.AbstractProject.pollSCMChanges(AbstractProject.java:633)
at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:253)
at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:285)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.io.IOException: java.io.IOException: Too many open files
at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
at java.lang.ProcessImpl.start(ProcessImpl.java:65)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
at com.tek42.perforce.process.CmdLineExecutor.exec(CmdLineExecutor.java:58)
... 12 more
lsof shows that the file count is jumping between high 200s to over 1000 which
is when we start getting this error.
Most of the file handles are pipes.
java 1313 platot 206r FIFO 0,7 101871703 pipe
java 1313 platot 207r FIFO 0,7 101876010 pipe
java 1313 platot 212r FIFO 0,7 101871708 pipe
java 1313 platot 305r FIFO 0,7 101689401 pipe