dbremner / testability-explorer

Automatically exported from code.google.com/p/testability-explorer
Apache License 2.0
0 stars 0 forks source link

Running on large project keep getting: java.io.FileNotFoundException - Too many open files #39

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
running on a larger project (some 3.5 million lines of code, about 3500
classes) (JAVA - build 14.0-b16, Ubuntu 9.04 64bit)

quite quickly I will get

 java.io.FileNotFoundException - Too many open files

in the stacktrace below i took out the name of my file and replaced it with
... 

It does look like its opening the same files many many many times..

 "main" java.lang.RuntimeException: java.io.FileNotFoundException: ... (Too
many open files)
    at
com.google.classpath.DirectoryClassPath.getResourceAsStream(DirectoryClassPath.j
ava:82)
    at
com.google.classpath.CompositeClassPath.getResourceAsStream(CompositeClassPath.j
ava:67)
    at
com.google.test.metric.JavaClassRepository.inputStreamForClass(JavaClassReposito
ry.java:59)
    at
com.google.test.metric.JavaClassRepository.getClass(JavaClassRepository.java:47)
    at
com.google.test.metric.asm.ClassInfoBuilderVisitor.visit(ClassInfoBuilderVisitor
.java:41)
    at com.google.test.org.objectweb.asm.ClassReader.accept(Unknown Source)
    at com.google.test.org.objectweb.asm.ClassReader.accept(Unknown Source)
    at
com.google.test.metric.JavaClassRepository.parseClass(JavaClassRepository.java:7
7)
    at
com.google.test.metric.JavaClassRepository.getClass(JavaClassRepository.java:47)
    at
com.google.test.metric.TestabilityVisitor$Frame.recordMethodCall(TestabilityVisi
tor.java:360)
    at
com.google.test.metric.method.op.turing.MethodInvokation.visit(MethodInvokation.
java:67)
    at
com.google.test.metric.TestabilityVisitor$Frame.applyMethodOperations(Testabilit
yVisitor.java:333)
    at
com.google.test.metric.TestabilityVisitor$Frame.recordMethodCall(TestabilityVisi
tor.java:348)
    at
com.google.test.metric.TestabilityVisitor$Frame.recordNonOveridableMethodCall(Te
stabilityVisitor.java:388)
    at
com.google.test.metric.TestabilityVisitor$CostRecordingFrame.applyImplicitCost(T
estabilityVisitor.java:144)
    at
com.google.test.metric.MetricComputer.addSetterInjection(MetricComputer.java:94)
    at com.google.test.metric.MetricComputer.compute(MetricComputer.java:82)
    at com.google.test.metric.MetricComputer.compute(MetricComputer.java:56)
    at com.google.test.metric.Testability.execute(Testability.java:272)
    at com.google.test.metric.Testability.main(Testability.java:142)
    at com.google.test.metric.Testability.main(Testability.java:135)
Caused by: java.io.FileNotFoundException: .... (Too many open files)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:106)
    at
com.google.classpath.DirectoryClassPath.getResourceAsStream(DirectoryClassPath.j
ava:80)

Original issue reported on code.google.com by martin.c...@gmail.com on 13 Aug 2009 at 6:08