ThePrez / Manzan

GNU Lesser General Public License v2.1
8 stars 1 forks source link

File watch event throws (Too many open files ) error #167

Open jonnyz32 opened 2 weeks ago

jonnyz32 commented 2 weeks ago

This is due to an issue in dependent package JFileTail https://github.com/ThePrez/JFileTail/issues/10. We either need to move off this package, or the issue needs to get resolved.

Excerpt from manzan log

[mel-1) thread #1 - timer://foo] TimerConsumer                  WARN  Error processing exchange. Exchange[A95F838AAA144A7-0000000000004303]. Caused by: [java.io.FileNotFoundException - /Users/zakjonat/.jtailor/.92815644.filename (Too many open files)]
java.io.FileNotFoundException: /Users/zakjonat/.jtailor/.92815644.filename (Too many open files)
    at java.io.FileOutputStream.open0(Native Method) ~[?:?]
    at java.io.FileOutputStream.open(FileOutputStream.java:270) ~[?:?]
    at java.io.FileOutputStream.<init>(FileOutputStream.java:213) ~[?:?]
    at java.io.FileOutputStream.<init>(FileOutputStream.java:162) ~[?:?]
    at java.io.FileWriter.<init>(FileWriter.java:90) ~[?:?]
    at io.github.theprez.jfiletail.OffsetFile.<init>(OffsetFile.java:20) ~[jfiletail-0.0.3.jar:?]
    at io.github.theprez.jfiletail.FileNewContentsReader.<init>(FileNewContentsReader.java:37) ~[jfiletail-0.0.3.jar:?]
    at com.github.theprez.manzan.routes.event.FileEvent.lambda$0(FileEvent.java:49) ~[classes/:?]
    at org.apache.camel.support.processor.DelegateSyncProcessor.process(DelegateSyncProcessor.java:65) ~[camel-support-3.14.8.jar:3.14.8]
    at org.apache.camel.processor.errorhandler.RedeliveryErrorHandler$SimpleTask.run(RedeliveryErrorHandler.java:477) ~[camel-core-processor-3.14.8.jar:3.14.8]
    at org.apache.camel.impl.engine.DefaultReactiveExecutor$Worker.schedule(DefaultReactiveExecutor.java:193) ~[camel-base-engine-3.14.8.jar:3.14.8]
    at org.apache.camel.impl.engine.DefaultReactiveExecutor.scheduleMain(DefaultReactiveExecutor.java:64) ~[camel-base-engine-3.14.8.jar:3.14.8]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:185) ~[camel-core-processor-3.14.8.jar:3.14.8]
    at org.apache.camel.impl.engine.CamelInternalProcessor.process(CamelInternalProcessor.java:398) ~[camel-base-engine-3.14.8.jar:3.14.8]
    at org.apache.camel.impl.engine.DefaultAsyncProcessorAwaitManager.process(DefaultAsyncProcessorAwaitManager.java:83) ~[camel-base-engine-3.14.8.jar:3.14.8]
    at org.apache.camel.support.AsyncProcessorSupport.process(AsyncProcessorSupport.java:41) ~[camel-support-3.14.8.jar:3.14.8]