wyona / yanel

http://www.yanel.org
Apache License 2.0
10 stars 5 forks source link

Configure thread priority of quartz scheduler #54

Open michaelwechner opened 11 years ago

michaelwechner commented 11 years ago

Balz suggests a very small improvement for Yanel's standard configuration: In the quartz.properties (/conf/quartz.properties), the following line should be added:

org.quartz.threadPool.threadPriority=1

This will ensure that scheduled jobs will never make your application slow.

Docu: http://quartz-scheduler.org/documentation/quartz-1.x/configuration/ConfigThreadPool

michaelwechner commented 11 years ago

I think we should change the configuration as follows:

diff --git a/conf/quartz.properties b/conf/quartz.properties index 54b14c1..460e7bc 100644 --- a/conf/quartz.properties +++ b/conf/quartz.properties @@ -3,7 +3,9 @@ org.quartz.scheduler.instanceId = 1 org.quartz.scheduler.rmi.export = false org.quartz.scheduler.rmi.proxy = false

+# http://quartz-scheduler.org/documentation/quartz-1.x/configuration/ConfigThreadPool org.quartz.threadPool.class = org.quartz.simpl.SimpleThreadPool org.quartz.threadPool.threadCount = 3 +org.quartz.threadPool.threadPriority=1

org.quartz.jobStore.class = org.quartz.simpl.RAMJobStore