too may open files

I'm running TeamCity with both agent and server running on Solaris.

When trying to build a fairly large project, I get the following in tbe build log:
Error while applying patch: Too many open files

I happen to have my max open files set pretty low on this machine, but the same machine was doing the same build fine using CruiseControl.

I'm going to try reconfiguring a more generous open file limit, but I'm a little concerned that TeamCity might be keeping an excessive number of file handles open at the same time.

Is there any point in filing a jira issue on this? It isn't necessarily a fatal issue if the number of file handles stays below some reasonable number.

0
10 comments
Avatar
Permanently deleted user

Hello Joannes,
what version do you use in the project, configured in the TC project?


--
Olesya Smirnova
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


"Johannes Graham" <no_reply@jetbrains.com> wrote in message
news:12779867.1159440863186.JavaMail.itn@is.intellij.net...

I'm running TeamCity with both agent and server running on Solaris.

>

When trying to build a fairly large project, I get the following in tbe
build log:
Error while applying patch: Too many open files

>

I happen to have my max open files set pretty low on this machine, but the
same machine was doing the same build fine using CruiseControl.

>

I'm going to try reconfiguring a more generous open file limit, but I'm a
little concerned that TeamCity might be keeping an excessive number of
file handles open at the same time.

>

Is there any point in filing a jira issue on this? It isn't necessarily a
fatal issue if the number of file handles stays below some reasonable
number.



0

I believe it was 1611, however I upgraded to 1615 at about the same time, so I could be wrong.

And by the way, increasing my allowed file descriptors allowed my build to complete.

0
Avatar
Permanently deleted user

Sorry, I missed the word 'control' in my question. I meant what version
control do you use in the project?

--
Olesya Smirnova
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


"Johannes Graham" <no_reply@jetbrains.com> wrote in message
news:32085373.1159447824249.JavaMail.itn@is.intellij.net...
>I believe it was 1611, however I upgraded to 1615 at about the same time,
>so I could be wrong.
>

And by the way, increasing my allowed file descriptors allowed my build to
complete.



0
Avatar
Permanently deleted user

I'm getting this too, now. I'm using 1615 and CVS.

--Tim

0
Avatar
Permanently deleted user

My whole build log:

Checking for changes (5m:28s)
Building in /home/dev/TeamCity/buildAgent/work/Apex
Getting project sources (4m:20s)
Error while applying patch: java.io.IOException: Too many open files

According to the Changes tab, there was just a single file change.

Another project is getting similar errors. Specifically:

jetbrains.buildServer.RunBuildException: jetbrains.buildServer.RunBuildException: Cannot run process: java.io.IOException: Too many open files jetbrains.buildServer.RunBuildException: jetbrains.buildServer.RunBuildException: Cannot run process: java.io.IOException: Too many open files at jetbrains.buildServer.agent.runner.GenericProgramRunner.run(GenericProgramRunner.java:66) at jetbrains.buildServer.agent.impl.BuildAgentImpl$5.run(BuildAgentImpl.java:432) at java.lang.Thread.run()V(Unknown Source) Caused by: jetbrains.buildServer.RunBuildException: Cannot run process: java.io.IOException: Too many open files at jetbrains.buildServer.agent.runner.GenericProgramRunner.run(GenericProgramRunner.java:146) at jetbrains.buildServer.agent.runner.GenericProgramRunner.run(GenericProgramRunner.java:62) ... 2 more Caused by: com.intellij.execution.process.ProcessNotCreatedException: java.io.IOException: Too many open files at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:113) at jetbrains.buildServer.agent.runner.GenericProgramRunner.run(GenericProgramRunner.java:105) ... 3 more

--Tim

0
Avatar
Permanently deleted user

Please submit bug request into JIRA. Thanks!

--
Olesya Smirnova
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


"Johannes Graham" <no_reply@jetbrains.com> wrote in message
news:13857037.1159450031810.JavaMail.itn@is.intellij.net...

Subversion



0

This is perhaps a little off topic, but when I had this problem, there was only a single file changed, yet the "getting project sources" had taken close to 10 minutes by the time it failed. Am I correct in assuming that only the changed files are actually checked out of version control and transferred to the agent? If so, this amount of time seems unusual.

0
Avatar
Permanently deleted user

Could you please create an issue and attach agent logs?
Thanks!

--
Olesya Smirnova
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


"Tim McNerney" <intellij@oneofus.org> wrote in message
news:32756617.1162213418618.JavaMail.itn@is.intellij.net...

I'm getting this too, now. I'm using 1615 and CVS.

>

--Tim



0

Please sign in to leave a comment.