java.io.IOException: java.io.IOException: Too many open files

Atlassian JIRA | Riaz Khanmohamed | 10 years ago
  1. 0

    [BAM-608] too many files open error - Atlassian JIRA

    atlassian.com | 7 months ago
    java.io.IOException: java.io.IOException: Too many open files
  2. 0

    Not sure how close it relates, but it would seem we get a lot of {quote} java.io.IOException: Too many open files {quote} which consequently cause the build to fail 10 times then disable itself. Happened in version 0.7 as well, not in 0.3 and 0.5. Only happens on our linux box, not the two windows machines (different error has occurred on windows, logged separately) So the latest error in the logs would be {quote} 2006-12-27 14:16:22,908 INFO [BAM::BuildChangeDetector] [DefaultBuildChangeDetector] Detected that build "XXX" needs building. 2006-12-27 14:16:22,926 INFO [BAM::BuildPipeline::BuildExecutor] [AbstractBuilder] Starting to build 'XXX' <br /> ... running command line: [ant loc] -f build.xml continuous-build <br /> ... in : [location] <br /> ... using java: [location] <br /> ... using environment variables: 2006-12-27 14:16:22,932 WARN [BAM::BuildPipeline::BuildExecutor] [Command] Failed to execute command java.io.IOException: java.io.IOException: Too many open files at java.lang.UNIXProcess.<init>(UNIXProcess.java:143) at java.lang.Runtime.execInternal(Native Method) at java.lang.Runtime.exec(Runtime.java:566) at sun.reflect.GeneratedMethodAccessor486.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:834) at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:435) at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:449) at com.atlassian.bamboo.command.Command.executeCommand(Command.java:53) at com.atlassian.bamboo.builder.AbstractBuilder.build(AbstractBuilder.java:191) at com.atlassian.bamboo.builder.DefaultBuildExecutor.build(DefaultBuildExecutor.java:187) at com.atlassian.bamboo.builder.DefaultBuildExecutor.doTask(DefaultBuildExecutor.java:103) at com.atlassian.bamboo.container.BambooTask.run(BambooTask.java:33) at java.lang.Thread.run(Thread.java:534) 2006-12-27 14:16:22,933 INFO [BAM::BuildPipeline::BuildExecutor] [Command] err>java.io.IOException: Too many open files 2006-12-27 14:16:22,933 INFO [BAM::BuildPipeline::BuildExecutor] [AbstractBuilder] Completed building build "XXX" return code = -1 {quote} clean build with no checked out files throws same error after checking out all files: {quote} [all other files checked out] 2006-12-27 14:13:53,656 INFO [BAM::BuildChangeDetector] [UpdateEventHandler] AU build.xml 2006-12-27 14:13:53,668 INFO [BAM::BuildChangeDetector] [UpdateEventHandler] AU continuous-build.properties 2006-12-27 14:13:53,703 INFO [BAM::BuildChangeDetector] [UpdateEventHandler] U 2006-12-27 14:13:53,706 INFO [BAM::BuildChangeDetector] [UpdateEventHandler] At revision 13524 2006-12-27 14:13:55,129 INFO [BAM::BuildPipeline::BuildExecutor] [AbstractBuilder] Starting to build 'XXX' <br /> ... running command line: [ant loc] -f build.xml continuous-build <br /> ... in : [checkout dir] <br /> ... using java: [java loc] <br /> ... using environment variables: 2006-12-27 14:13:55,134 WARN [BAM::BuildPipeline::BuildExecutor] [Command] Failed to execute command java.io.IOException: java.io.IOException: Too many open files at java.lang.UNIXProcess.<init>(UNIXProcess.java:143) at java.lang.Runtime.execInternal(Native Method) at java.lang.Runtime.exec(Runtime.java:566) at sun.reflect.GeneratedMethodAccessor486.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:834) at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:435) at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:449) at com.atlassian.bamboo.command.Command.executeCommand(Command.java:53) at com.atlassian.bamboo.builder.AbstractBuilder.build(AbstractBuilder.java:191) at com.atlassian.bamboo.builder.DefaultBuildExecutor.build(DefaultBuildExecutor.java:187) at com.atlassian.bamboo.builder.DefaultBuildExecutor.doTask(DefaultBuildExecutor.java:103) at com.atlassian.bamboo.container.BambooTask.run(BambooTask.java:33) at java.lang.Thread.run(Thread.java:534) 2006-12-27 14:13:55,135 INFO [BAM::BuildPipeline::BuildExecutor] [Command] err>java.io.IOException: Too many open files 2006-12-27 14:13:55,135 INFO [BAM::BuildPipeline::BuildExecutor] [AbstractBuilder] Completed building build "XXX" return code = -1 {quote} Admittedly the checkout folder is /apps/WebSphere/Portal/bamboo-data/xml-data/build-dir/XXX which it may be having issues with, so I'll try a shorter address and see if that helps, but file length isn't the error here...

    Atlassian JIRA | 10 years ago | Riaz Khanmohamed
    java.io.IOException: java.io.IOException: Too many open files
  3. 0

    Not sure how close it relates, but it would seem we get a lot of {quote} java.io.IOException: Too many open files {quote} which consequently cause the build to fail 10 times then disable itself. Happened in version 0.7 as well, not in 0.3 and 0.5. Only happens on our linux box, not the two windows machines (different error has occurred on windows, logged separately) So the latest error in the logs would be {quote} 2006-12-27 14:16:22,908 INFO [BAM::BuildChangeDetector] [DefaultBuildChangeDetector] Detected that build "XXX" needs building. 2006-12-27 14:16:22,926 INFO [BAM::BuildPipeline::BuildExecutor] [AbstractBuilder] Starting to build 'XXX' <br /> ... running command line: [ant loc] -f build.xml continuous-build <br /> ... in : [location] <br /> ... using java: [location] <br /> ... using environment variables: 2006-12-27 14:16:22,932 WARN [BAM::BuildPipeline::BuildExecutor] [Command] Failed to execute command java.io.IOException: java.io.IOException: Too many open files at java.lang.UNIXProcess.<init>(UNIXProcess.java:143) at java.lang.Runtime.execInternal(Native Method) at java.lang.Runtime.exec(Runtime.java:566) at sun.reflect.GeneratedMethodAccessor486.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:834) at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:435) at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:449) at com.atlassian.bamboo.command.Command.executeCommand(Command.java:53) at com.atlassian.bamboo.builder.AbstractBuilder.build(AbstractBuilder.java:191) at com.atlassian.bamboo.builder.DefaultBuildExecutor.build(DefaultBuildExecutor.java:187) at com.atlassian.bamboo.builder.DefaultBuildExecutor.doTask(DefaultBuildExecutor.java:103) at com.atlassian.bamboo.container.BambooTask.run(BambooTask.java:33) at java.lang.Thread.run(Thread.java:534) 2006-12-27 14:16:22,933 INFO [BAM::BuildPipeline::BuildExecutor] [Command] err>java.io.IOException: Too many open files 2006-12-27 14:16:22,933 INFO [BAM::BuildPipeline::BuildExecutor] [AbstractBuilder] Completed building build "XXX" return code = -1 {quote} clean build with no checked out files throws same error after checking out all files: {quote} [all other files checked out] 2006-12-27 14:13:53,656 INFO [BAM::BuildChangeDetector] [UpdateEventHandler] AU build.xml 2006-12-27 14:13:53,668 INFO [BAM::BuildChangeDetector] [UpdateEventHandler] AU continuous-build.properties 2006-12-27 14:13:53,703 INFO [BAM::BuildChangeDetector] [UpdateEventHandler] U 2006-12-27 14:13:53,706 INFO [BAM::BuildChangeDetector] [UpdateEventHandler] At revision 13524 2006-12-27 14:13:55,129 INFO [BAM::BuildPipeline::BuildExecutor] [AbstractBuilder] Starting to build 'XXX' <br /> ... running command line: [ant loc] -f build.xml continuous-build <br /> ... in : [checkout dir] <br /> ... using java: [java loc] <br /> ... using environment variables: 2006-12-27 14:13:55,134 WARN [BAM::BuildPipeline::BuildExecutor] [Command] Failed to execute command java.io.IOException: java.io.IOException: Too many open files at java.lang.UNIXProcess.<init>(UNIXProcess.java:143) at java.lang.Runtime.execInternal(Native Method) at java.lang.Runtime.exec(Runtime.java:566) at sun.reflect.GeneratedMethodAccessor486.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:834) at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:435) at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:449) at com.atlassian.bamboo.command.Command.executeCommand(Command.java:53) at com.atlassian.bamboo.builder.AbstractBuilder.build(AbstractBuilder.java:191) at com.atlassian.bamboo.builder.DefaultBuildExecutor.build(DefaultBuildExecutor.java:187) at com.atlassian.bamboo.builder.DefaultBuildExecutor.doTask(DefaultBuildExecutor.java:103) at com.atlassian.bamboo.container.BambooTask.run(BambooTask.java:33) at java.lang.Thread.run(Thread.java:534) 2006-12-27 14:13:55,135 INFO [BAM::BuildPipeline::BuildExecutor] [Command] err>java.io.IOException: Too many open files 2006-12-27 14:13:55,135 INFO [BAM::BuildPipeline::BuildExecutor] [AbstractBuilder] Completed building build "XXX" return code = -1 {quote} Admittedly the checkout folder is /apps/WebSphere/Portal/bamboo-data/xml-data/build-dir/XXX which it may be having issues with, so I'll try a shorter address and see if that helps, but file length isn't the error here...

    Atlassian JIRA | 10 years ago | Riaz Khanmohamed
    java.io.IOException: java.io.IOException: Too many open files
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Problem in creating win installer in i

    Stack Overflow | 7 years ago | Jagadesh
    java.io.IOException: Cannot run program "makensis" (in directory "C:\Program Files\NetBeans 6.5.1\iReport-3.7.2-src"): CreateProcess error=2, The system cannot find the file specified
  6. 0

    Re: Can't get selenium server to start the browser

    Google Groups | 7 years ago | daScientist
    java.io.IOException: Cannot run program "/usr/lib/firefox/firefox-bin": java.io.IOException: error=12, Cannot allocate memory

    4 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.IOException

      java.io.IOException: Too many open files

      at java.lang.UNIXProcess.<init>()
    2. Java RT
      Method.invoke
      1. java.lang.UNIXProcess.<init>(UNIXProcess.java:143)
      2. java.lang.Runtime.execInternal(Native Method)
      3. java.lang.Runtime.exec(Runtime.java:566)
      4. sun.reflect.GeneratedMethodAccessor486.invoke(Unknown Source)
      5. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      6. java.lang.reflect.Method.invoke(Method.java:324)
      6 frames
    3. Ant
      Execute.execute
      1. org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:834)
      2. org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:435)
      3. org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:449)
      3 frames
    4. com.atlassian.bamboo
      BambooTask.run
      1. com.atlassian.bamboo.command.Command.executeCommand(Command.java:53)
      2. com.atlassian.bamboo.builder.AbstractBuilder.build(AbstractBuilder.java:191)
      3. com.atlassian.bamboo.builder.DefaultBuildExecutor.build(DefaultBuildExecutor.java:187)
      4. com.atlassian.bamboo.builder.DefaultBuildExecutor.doTask(DefaultBuildExecutor.java:103)
      5. com.atlassian.bamboo.container.BambooTask.run(BambooTask.java:33)
      5 frames
    5. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:534)
      1 frame