Limiting cpu usage when running cronjobs

Author Message

Gaetano Giunta

Thursday 18 March 2010 6:20:36 am

Egg when noptification-sending cronjob is run for the 1st time after being disabled, the cronjob can take quite a lot of resources. Indexing too.

I found out the "cpulimit" command that could be helpful in such a case.

Has anybody ever used it? What are the alternatives?

Principal Consultant International Business
Member of the Community Project Board

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 05:06:47
Script start
Timing: Jan 18 2025 05:06:47
Module start 'layout'
Timing: Jan 18 2025 05:06:47
Module start 'content'
Timing: Jan 18 2025 05:06:47
Module end 'content'
Timing: Jan 18 2025 05:06:47
Script end

Main resources:

Total runtime0.6731 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 589.4766152.6406
Module start 'layout' 0.00730.0031 742.117239.4766
Module start 'content' 0.01030.6613 781.5938462.5781
Module end 'content' 0.67170.0014 1,244.17198.1250
Script end 0.6731  1,252.2969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4803160.0002
Check MTime0.00130.1938160.0001
Mysql Total
Database connection0.00090.135510.0009
Mysqli_queries0.628393.3499460.0137
Looping result0.00040.0615440.0000
Template Total0.633294.120.3166
Template load0.00210.311320.0010
Template processing0.631193.761720.3156
Template load and register function0.00010.011610.0001
states
state_id_array0.00120.174110.0012
state_identifier_array0.00080.117820.0004
Override
Cache load0.00160.241270.0002
Sytem overhead
Fetch class attribute can translate value0.00050.076510.0005
Fetch class attribute name0.00080.115320.0004
XML
Image XML parsing0.00030.049210.0003
class_abstraction
Instantiating content class attribute0.00000.000620.0000
General
dbfile0.00580.8679160.0004
String conversion0.00000.001540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 5
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs