> | | > Quartz.NET Tip: Logging and Troubleshooting

Quartz.NET Tip: Logging and Troubleshooting

Posted on Monday, September 21, 2015 | No Comments

On one of my projects, we are using Quartz.net for scheduling jobs. There is a lot of documentation, blogs, and forums available for the same but some things you only learn by experience.

For the past few days, I have been troubleshooting memory leaks in the WCF service that is using Quartz.NET and one important learning from all that was to turn the Quartz.NET logging on whenever there is an issue. It takes some time to configure, download the Nuget packages, and fight though the dll hell of Log4Net, which, unfortunately, may be being used in other projects of your solution sharing the same bin. But once configured,it solves a lot of mysteries - the thread pool size being used, whether correct settings are being picked or not, whether any unhandled exceptions were thrown by any of the jobs, when jobs are being loaded and prepared for execution etc.

Quartz.net can be configured to log in a separate file, or inline in the application's own log4net appender.

One caveat though, if there are a lot of jobs. the log file size would increase swiftly so this should not be turned on permanently unless there is server space available, specially for continuous running services with cleanup/archiving disabled or occurring rarely.

Leave a Reply

Powered by Blogger.