Our background application which is built using Quartz causes Services and Controller App (services.exe)
to use a high CPU. The application itself uses an acceptable range of CPU (0-1% when idle, 3-4% when jobs triggered) and memory (max 200MB). But whenever jobs are triggered, services.exe
CPU usage gets increased and causes problems on the server such prevents other services to restart.
Some insights from the application:
- Around 75 jobs, 5-10 of them are 2 mins interval, the rest to run at midnight. (Issue happens all the time)
quartz.threadPool.threadCount = 10
quartz.scheduler.batchTriggerAcquisitionMaxCount = 100
- Uses RAMJobStore
- Used singleton pattern with IoC Container.
Any help appreciated.