<div dir="ltr">Hello all,<br><br>I've been working on this problem since two days without avail. I have a Drupal site that, for some reason or the other, tries to allocate more than 300 MB of memory on request calls to not only the index.php, but to files such as update.php. The server itself has three live sites and non of them is experiencing any problems.<br>
<br>Also note that depending on which page I'm trying to access, I get a different stack trace. And as you can see below, none of them are passing through any custom modules... To get to the point, here's the error and the stack trace to update.php (one of possible backtraces with same problem), any hints or ideas are more than welcome.<br>
<br>[Fri Jan 14 11:02:21 2011] [error] [client 1.2.3.4] PHP Fatal error: Allowed memory size of 335544320 bytes exhausted (tried to allocate 22175001 bytes) in /var/www/abc/includes/database.mysql-common.inc on line 34<br>
[Fri Jan 14 11:02:21 2011] [error] [client 1.2.3.4] PHP Stack trace:<br>[Fri Jan 14 11:02:21 2011] [error] [client 1.2.3.4] PHP 1. {main}() /var/www/abc/index.php:0<br>[Fri Jan 14 11:02:21 2011] [error] [client 1.2.3.4] PHP 2. drupal_not_found() /var/www/abc/index.php:24<br>
[Fri Jan 14 11:02:21 2011] [error] [client 1.2.3.4] PHP 3. theme() /var/www/abc/includes/common.inc:391<br>[Fri Jan 14 11:02:21 2011] [error] [client 1.2.3.4] PHP 4. init_theme() /var/www/abc/includes/theme.inc:606<br>
[Fri Jan 14 11:02:21 2011] [error] [client 1.2.3.4] PHP 5. _init_theme() /var/www/abc/includes/theme.inc:59<br>[Fri Jan 14 11:02:21 2011] [error] [client 1.2.3.4] PHP 6. _theme_load_registry() /var/www/abc/includes/theme.inc:179<br>
[Fri Jan 14 11:02:21 2011] [error] [client 1.2.3.4] PHP 7. _theme_save_registry() /var/www/abc/includes/theme.inc:226<br>[Fri Jan 14 11:02:21 2011] [error] [client 1.2.3.4] PHP 8. cache_set() /var/www/abc/includes/theme.inc:235<br>
[Fri Jan 14 11:02:21 2011] [error] [client 1.2.3.4] PHP 9. db_query() /var/www/abc/includes/cache.inc:109<br>[Fri Jan 14 11:02:21 2011] [error] [client 1.2.3.4] PHP 10. _db_query() /var/www/abc/includes/database.mysql-common.inc:42<br>
[Fri Jan 14 11:02:21 2011] [error] [client 1.2.3.4] PHP 11. trigger_error() /var/www/abc/includes/database.mysql.inc:136<br>[Fri Jan 14 11:02:21 2011] [error] [client 1.2.3.4] PHP 12. drupal_error_handler() /var/www/abc/includes/common.inc:0<br>
[Fri Jan 14 11:02:21 2011] [error] [client 1.2.3.4] PHP 13. watchdog() /var/www/abc/includes/common.inc:663<br>[Fri Jan 14 11:02:21 2011] [error] [client 1.2.3.4] PHP 14. module_invoke() /var/www/abc/includes/bootstrap.inc:966<br>
[Fri Jan 14 11:02:21 2011] [error] [client 1.2.3.4] PHP 15. call_user_func_array() /var/www/abc/includes/module.inc:462<br>[Fri Jan 14 11:02:21 2011] [error] [client 1.2.3.4] PHP 16. dblog_watchdog() /var/www/abc/includes/module.inc:0<br>
[Fri Jan 14 11:02:21 2011] [error] [client 1.2.3.4] PHP 17. db_query() /var/www/abc/modules/dblog/dblog.module:147<br>[Fri Jan 14 11:02:21 2011] [error] [client 1.2.3.4] PHP 18. func_get_args() /var/www/abc/includes/database.mysql-common.inc:34<br>
<br>-- <br>Ashraf Amayreh<br>CEO | O-Minds<br>Cell. 962 78 8099997<br>Tel. 962 6 5655150<br>Fax. 962 6 5675150<br>Skype: aamayreh<br><br><a href="http://www.o-minds.com">www.o-minds.com</a><br>web development | web design<br>
user experience | branding design<br><br>Connect with us on Twitter<br><a href="http://twitter.com/ominds">http://twitter.com/ominds</a><br><br>Connect with us on LinkedIn<br><a href="http://www.linkedin.com/in/aamayreh">http://www.linkedin.com/in/aamayreh</a><br>
</div>