Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
[QTZ-68] NativeJob: Too many open files Created: 20/Aug/10 Updated: 25/Mar/11 Resolved: 24/Aug/10 Status: Project: Component/s: Affects Version/s: Fix Version/s: Closed Quartz Scheduler (Historical - Do Not File New Issues Here - See GitHub) Jobs 1.8.3 Type: Reporter: Resolution: Labels: Remaining Estimate: Time Spent: Original Estimate: Environment: Bug Rolf Kaiser Not a Bug None Not Specified Terracotta Target: Fremantle 2.0 Priority: Assignee: Votes: 2 Major James House 0 Not Specified Not Specified java version "1.6.0_20", Linux operating system (Gentoo) Description We are using Quartz 1.8.3 with the Job Initialization Plugin. After a few weeks of runtime we get an exception (see stacktrace below). The exception seems to be caused by a Java bug: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6462165 Stacktrace: [INFO] 2010-08-19 18:06:00 CEST CronScheduler_Worker-1 [org.quartz.core.JobRunShell] Job trilobit.Mailingliste threw a JobExecutionException: org.quartz.JobExecutionException: Error launching native command: [See nested exception: java.io.IOException: Cannot run program "/bin/sh": java.io.IOException: error=24, Too many open files] at org.quartz.jobs.NativeJob.runNativeCommand(NativeJob.java:196) at org.quartz.jobs.NativeJob.execute(NativeJob.java:131) at org.quartz.core.JobRunShell.run(JobRunShell.java:216) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) Caused by: java.io.IOException: Cannot run program "/bin/sh": java.io.IOException: error=24, Too many open files at java.lang.ProcessBuilder.start(ProcessBuilder.java:460) at java.lang.Runtime.exec(Runtime.java:593) at java.lang.Runtime.exec(Runtime.java:466) at org.quartz.jobs.NativeJob.runNativeCommand(NativeJob.java:179) ... 3 more Caused by: java.io.IOException: java.io.IOException: error=24, Too many open files at java.lang.UNIXProcess.<init>(UNIXProcess.java:148) at java.lang.ProcessImpl.start(ProcessImpl.java:65) at java.lang.ProcessBuilder.start(ProcessBuilder.java:453) ... 6 more Comments Comment by James House [ 24/Aug/10 ] This is not a problem with Quartz. It is either a bug (as noted above) with the JVM, and or the operating system's setting for max file handles (i.e. ulimit). This can be resolved in various ways on different OSs. For example: http://www.cyberciti.biz/faq/linux-increase-the-maximum-number-of-open-files/ Comment by James House [ 24/Aug/10 ] it could also be a bug in your application not properly closing the files it opens. Generated at Fri May 12 03:19:01 PDT 2017 using JIRA 6.2.4#6261sha1:4d2e6f6f26064845673c8e7ffe9b6b84b45a6e79.