Forums / Install & configuration / Notification cronjob timeouts

Notification cronjob timeouts

Author Message

Piotrek Karaś

Saturday 08 August 2009 2:53:54 am

Hello there,

We have a site based on 4.1.3 that has around 30-40 thousand of objects published. So far the notifications haven't been used on that site (even though we have notification experiences from other sites, no special problems). Now, when I start to run notification.php cronjob, I get an error:

self:/home/pd/www/pd# php runcronjobs.php notification
Running cronjob part 'notification'
Running cronjobs/notification.php
Starting notification event processing

Fatal error: Allowed memory size of 314572800 bytes exhausted 
(tried to allocate 491520 bytes) 
in /home/pd/www/pd/var/site/cache/template/compiled/plain-392b702a566fdd19849d50eb6bdecacb.php on line 335

Fatal error: eZ Publish did not finish its request
The execution of eZ Publish was abruptly ended, the debug output is present belo                                              w.
self:/home/pd/www/pd#

This is already 300MB of memory assigned to CLI, still no success.

1) How much memory should we except to be enough?
2) How do the notifications really work in terms of performance? Will that much memory be required each time the notification cronjob is run? OR do we have this problem only because of running it for the very first time on a larger amount of objects?

Thanks,
Piotrek

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

André R.

Monday 10 August 2009 6:53:38 am

1) Depends on whats being done in the notification templates, like the one you have some issues with there (open the file mentioned to see witch template this is).

2) again, depends on whats being done in templates. But if this is first time you run it, there might be a lot of pending notifications waiting to be sent out.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Piotrek Karaś

Monday 10 August 2009 1:56:20 pm

Hello Andre,

Thanks for your reply.
Isn't there (or shouldn't there be) a way to buffer or limit the range of the cronjob per run?
If not, what if someone had 500000 objects with notifications never on, and then decides otherwise? ;)

Anyway, I will try with some more memory...

Cheers,
Piotrek

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

eZ debug

Timing: Jan 18 2025 15:15:08
Script start
Timing: Jan 18 2025 15:15:08
Module start 'content'
Timing: Jan 18 2025 15:15:09
Module end 'content'
Timing: Jan 18 2025 15:15:09
Script end

Main resources:

Total runtime0.8455 sec
Peak memory usage4,096.0000 KB
Database Queries194

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 588.9609180.8281
Module start 'content' 0.00520.7097 769.7891559.0391
Module end 'content' 0.71480.1306 1,328.8281336.7578
Script end 0.8454  1,665.5859 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.4427210.0002
Check MTime0.00140.1642210.0001
Mysql Total
Database connection0.00060.075110.0006
Mysqli_queries0.777691.96641940.0040
Looping result0.00200.23221920.0000
Template Total0.822397.320.4111
Template load0.00220.259020.0011
Template processing0.820096.989920.4100
Template load and register function0.00010.011810.0001
states
state_id_array0.00060.065810.0006
state_identifier_array0.00180.209920.0009
Override
Cache load0.00180.2176250.0001
Sytem overhead
Fetch class attribute can translate value0.00170.195530.0006
Fetch class attribute name0.00120.141850.0002
XML
Image XML parsing0.00120.141030.0004
class_abstraction
Instantiating content class attribute0.00000.001460.0000
General
dbfile0.00250.3008350.0001
String conversion0.00000.000730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs