Too many open files during report-execution

0 views
Skip to first unread message

Tobias Horsmann

unread,
Feb 12, 2016, 10:54:54 AM2/12/16
to dkpro-lab-user
Hi,

I have a project that uses N Pos-Tagger to tag N Corpora. Each pair of tagger-corpus produces a handful of result-files. When my reports are executed I get an exception saying I have too many files open:

I have three or four reports each reading in some of those files. It seems like Lab keeps the file permanently open in the background?

As far as I am concerned, I don't want those file to be kept open. I could try to increase the OS limit of open files, but I would prefer when Lab would close the files? Is this somehow possible?

16:43:09,934  INFO DefaultLoggingService:34 - [DefaultBatchTask-74942f6a-d19c-11e5-831d-85bc7455531d] Shut down task

Exception in thread "main" de.tudarmstadt.ukp.dkpro.lab.engine.LifeCycleException: java.io.FileNotFoundException: /Users/toobee/Desktop/de.tudarmstadt.ukp.dkpro.lab/repository/RunTaggerTask-2e74a6e2-d19f-11e5-831d-85bc7455531d/corpus.txt (Too many open files in system)

at de.tudarmstadt.ukp.dkpro.lab.engine.impl.DefaultLifeCycleManager.complete(DefaultLifeCycleManager.java:154)

at de.tudarmstadt.ukp.dkpro.lab.engine.impl.BatchTaskEngine.run(BatchTaskEngine.java:159)

at de.tudarmstadt.ukp.dkpro.lab.engine.impl.DefaultTaskExecutionService.run(DefaultTaskExecutionService.java:53)

at de.tudarmstadt.ukp.dkpro.lab.Lab.run(Lab.java:108)

at de.unidue.ltl.tagger.lab.TaggerEvaluationLab.main(TaggerEvaluationLab.java:130)

Caused by: java.io.FileNotFoundException: /Users/toobee/Desktop/de.tudarmstadt.ukp.dkpro.lab/repository/RunTaggerTask-2e74a6e2-d19f-11e5-831d-85bc7455531d/corpus.txt (Too many open files in system)

at java.io.FileInputStream.open0(Native Method)

at java.io.FileInputStream.open(FileInputStream.java:195)

at java.io.FileInputStream.<init>(FileInputStream.java:138)

at de.unidue.ltl.tagger.lab.report.ReportUtils.getCorpusDomainName(ReportUtils.java:93)

at de.unidue.ltl.tagger.lab.report.DomainDetailReport.getResults(DomainDetailReport.java:134)

at de.unidue.ltl.tagger.lab.report.DomainDetailReport.execute(DomainDetailReport.java:34)

at de.tudarmstadt.ukp.dkpro.lab.engine.impl.DefaultLifeCycleManager.complete(DefaultLifeCycleManager.java:147)

Tobias Horsmann

unread,
Feb 12, 2016, 11:08:43 AM2/12/16
to dkpro-lab-user
My bad,sorry, I found the issue.
Reply all
Reply to author
Forward
0 new messages