Parameters to Handle Large Number of Events
Anchor
There are mainly two reasons due to which an event may not fire at its scheduled time:
- No thread available (refer to org.quartz.threadPool.threadCount property in the Administrator guide)
- System is busy
If an event is not fired at its scheduled time, the event is considered as a delayed event. When the thread and system become available, the delayed event will be fired. This will happen as long as delay is not more than misfire threshold. If the delay is more than misfire threshold, the event is considered as a misfired event.
Depending upon the number of events running at a time, you need to adjust the value of two parameters to avoid delay of the scheduled event.
- Go to the …/AdeptiaServer/ServerKernel/etc folder.
Open quartz.properties file in Notepad.
- Adjust the value of the parameters - threadCount and misfireThreshold.
org.quartz.jobStore.misfireThreshold = 60000, where 60000 is the default value.
org.quartz.threadPool.threadCount = 50
misfireThreshold: Time interval (in milliseconds) to consider an event as misfire event.
...