English 中文(简体)
Quartz.Net 零SizeThread 邮联高使用率
原标题:Quartz.Net ZeroSizeThreadPool high CPU usage
  • 时间:2011-01-04 17:15:51
  •  标签:
  • quartz.net

出于某种原因,在我召集并启动以下零SizeThreadPool Quartz.net列表器时,CPU的使用率非常高,使计算机反应不灵。 是否有人想为什么会发生这种情况以及如何解决问题? TIA.

        var properties = new NameValueCollection();
        properties["quartz.scheduler.instanceName"] = "MyScheduler";
        properties["quartz.scheduler.instanceId"] = "instance_myscheduler";
        properties["quartz.threadPool.type"] = "Quartz.Simpl.ZeroSizeThreadPool, Quartz";            
        properties["quartz.jobStore.type"] = "Quartz.Impl.AdoJobStore.JobStoreTX, Quartz";
        properties["quartz.jobStore.useProperties"] = "true";
        properties["quartz.jobStore.dataSource"] = "default";
        properties["quartz.jobStore.tablePrefix"] = "QRTZ_";
        properties["quartz.jobStore.clustered"] = "false";
        properties["quartz.dataSource.default.connectionString"] = "Server=(local);Database=mydb;Uid=user;Pwd=pass;";
        properties["quartz.dataSource.default.provider"] = "SqlServer-20";
        schedFact = new StdSchedulerFactory(properties);
        Scheduler = schedFact.GetScheduler();
        Scheduler.Start();
最佳回答

没有理由启动零SizeThreadPool机。 它可以安排工作,而不必开始,仅仅不采用“起步”方法,而《工会组织法》的使用不会增加。

问题回答

暂无回答




相关问题
In which format Quartz.net stores the times

Does anybody know in which format quartz.net stores the times in the QUARTZ_TRIGGERS table. For example I have seen 634019848980000000 in NEXT_FIRE_TIME column, but I am unable to get the exact date ...

Quartz.net and Common.Logging - Using Log4Net

I m using Quartz.net within a windows service. Currently, the trigger is not firing - I d like to use the logging to find out why. I have edited my config file for the windows service: <...

How to handle a recurrent job with a reminder in Quartz.NET

I m using Quartz.NET and am facing the following task: Schedule a job to be fired every 10 minutes, with a reminder 1 minute before each occurrence. Do you know if it s possible to design a trigger ...

Quartz.Net Thread Pools

I have quartz.net set up to run several scheduled jobs and several polling jobs. The polling jobs can consist of running code that can take 10 minutes. These jobs are queued from user actions (and so ...

Schedule setup string without using CRON string

Currently we are using cron strings for setting Quartz jobs in our project. But it seems to be either overkill or little confusing to set by a admin guy who is not a developer. So, we try to use a ...

How to set Quartz.net worker thread name?

How can I set name of the worker thread in Quartz.net? [2009-12-15 08:56:25] [DefaultQuartzScheduler_Worker-1] INFO I wanted to see some meaningful information in the logs. I tried using JobDetail ...

热门标签