Hello.
My hosting let me set memory_limit to a maximum of 96M.
The problem is what to do when this limit is reached? How could I reduce the memory requirements?
When I manually run the cron task, It begin to load the page but some seconds after this the page stop the reload and it shows nothing (no messages, no page, nothing at all). I think It could be due to memory limit, couldn't it?

Comments

pbarnett’s picture

You should check your web server error log for the cause of the error, but yes, it could be due to a memory limit issue.

abhishek sawant’s picture

You can also increase memory_limit in settings.php file, please go through below mentioned link :
http://drupal.org/node/207036

Abhishek Sawant
Drupal Developer

briantes’s picture

Thanks for your answer.
I can't change the memory limit to an upper value. My hosting has blocked it to 96M.
The web log of the server confirm my suspicious:
[Fri Jul 22 11:07:16 2011] [warn] mod_fcgid: stderr: PHP Fatal error: Allowed memory size of 100663296 bytes exhausted (tried to allocate 567310 bytes) in /usr/home/...../www/includes/database.mysqli.inc on line 151

abhishek sawant’s picture

If you dont have an access to server you need to raise a ticket to your server hosting guys, might they help you..

Abhishek Sawant
Drupal Developer

briantes’s picture

They have replied me. It can't be upper than 96M.
How could I reduce the requested memory?

jerry.drupal’s picture

open your .htaccess file

Add the memory limit value like this

# Override PHP settings. More in sites/default/settings.php
# but the following cannot be changed at runtime.
php_value memory_limit 64M

(OR)

Add the following line in settings.php
ini_set('memory_limit', '64M');

verify whether it affected or not by using

phpinfo();