<div dir="ltr">Thanks all,<br><br>It was a module causing this. Although I was surprised why a module related caching issue would be called in update.php<br><br>The lighbox2 module was causing an abnormal size to be stored in the cache table, it seems this size is something around my memory limits which I should reduce now that the problem is solved (suggestions?). I did a quick search on the lighbox2 issues and found this, which details this issue. Word of caution, be careful if you&#39;re using imagecache with a large number of presets and lightbox2, it could potentially cripple your server.<br>
<br><a href="http://drupal.org/node/409354">http://drupal.org/node/409354</a><br><br>Best Regards,<br><br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br><div class="gmail_quote">On Fri, Jan 14, 2011 at 6:39 PM, Zareef Ahmed <span dir="ltr">&lt;<a href="mailto:zareef@zareef.net" target="_blank">zareef@zareef.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">To debug why your code is requesting this kind of memory you can try following steps.<br><br>

1. First increase the memory in your ini SO you can get rid of this memory allocation error, you can try to increase this to around 1 GB or something similar (depends how much memory you have on your machine)... If even increasing memory upto that HUGE level does not help you, then something is really really WRONG with your setup, which need to be looked upon within code for some loops or something like that.<br>


<br>2. If you are able to run your application by increasing Memory, please install APD on your server. see <a href="http://in.php.net/apd" target="_blank">http://in.php.net/apd</a><br>Use APD to track which functions are taking more memory to debug your application.<br>


<br><br>Also check if problem is  new on this server and application runs fine or other machine with different version of PHP, in some recent versions of PHP few functions behavior has been changed due to which few scripts or older module behave in unexpected way.. <br>


<br><br>Thanks and Regards<br>Zareef Ahmed<div><div></div><div><br><br><div class="gmail_quote">On Fri, Jan 14, 2011 at 7:12 PM, Pierre Rineau <span dir="ltr">&lt;<a href="mailto:pierre.rineau@makina-corpus.com" target="_blank">pierre.rineau@makina-corpus.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><br>
&gt; [Fri Jan 14 11:02:21 2011] [error] [client 1.2.3.4] PHP Fatal error:<br>
&gt; Allowed memory size of 335544320 bytes exhausted (tried to allocate<br>
&gt; 22175001 bytes) in /var/www/abc/includes/database.mysql-common.inc on<br>
&gt; line 34<br>
<br>
</div>Did you really allowed 320M of memory for PHP scripts execution or I<br>
miscalculated?!<br>
<br>
This is howfully huge!<br>
<br>
What are you trying to do here that could consume something like 10<br>
times the &quot;normal&quot; drupal memory consumption?<br>
<font color="#888888"><br>
Pierre.<br>
<br>
<br>
</font></blockquote></div><br><br clear="all"><br></div></div><font color="#888888">-- <br>Zareef Ahmed<br><a href="http://www.zareef.net" target="_blank">http://www.zareef.net</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Zareef Ahmed<br><a href="http://www.zareef.net" target="_blank">http://www.zareef.net</a><br>
<br><br>---------- Forwarded message ----------<br>From: Zareef Ahmed &lt;<a href="mailto:zareef@zareef.net">zareef@zareef.net</a>&gt;<br>To: <a href="mailto:development@drupal.org">development@drupal.org</a>, <a href="mailto:pierre.rineau@makina-corpus.com">pierre.rineau@makina-corpus.com</a><br>
Date: Fri, 14 Jan 2011 18:39:11 +0530<br>Subject: Re: [development] allowed memory size exhausted<br>To debug why your code is requesting this kind of memory you can try following steps.<br><br>1. First increase the memory in your ini for you can get rid of this memory allocation error, you can try to increase this to around 1 GB or something similar (depends how much memory you have on your machine)... If even increasing memory upto that HUGE level does not help you, then something is really really WRONG with your setup, which need to be looked upon within code for some loops or something like that.<br>

<br>2. If you are able to run your application by increasing Memory, please install APD on your server. see <a href="http://in.php.net/apd" target="_blank">http://in.php.net/apd</a><br>Use APD to track which functions are taking more memory to debug your application.<br>

<br><br>Also check if problem is  new on this server and application runs fine or other machine with different version of PHP, in some recent versions of PHP few functions behavior has been changed due to which few scripts or older module behave in unexpected way.. <br>

<br><br>Thanks and Regards<br>Zareef Ahmed<br><br><div class="gmail_quote">On Fri, Jan 14, 2011 at 7:12 PM, Pierre Rineau <span dir="ltr">&lt;<a href="mailto:pierre.rineau@makina-corpus.com" target="_blank">pierre.rineau@makina-corpus.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><br>
&gt; [Fri Jan 14 11:02:21 2011] [error] [client 1.2.3.4] PHP Fatal error:<br>
&gt; Allowed memory size of 335544320 bytes exhausted (tried to allocate<br>
&gt; 22175001 bytes) in /var/www/abc/includes/database.mysql-common.inc on<br>
&gt; line 34<br>
<br>
</div>Did you really allowed 320M of memory for PHP scripts execution or I<br>
miscalculated?!<br>
<br>
This is howfully huge!<br>
<br>
What are you trying to do here that could consume something like 10<br>
times the &quot;normal&quot; drupal memory consumption?<br>
<font color="#888888"><br>
Pierre.<br>
<br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Zareef Ahmed<br><a href="http://www.zareef.net" target="_blank">http://www.zareef.net</a><br>
<br><br>---------- Forwarded message ----------<br>From: Frederik Grunta &lt;<a href="mailto:fgrunta@gmail.com">fgrunta@gmail.com</a>&gt;<br>To: <a href="mailto:development@drupal.org">development@drupal.org</a><br>Date: Fri, 14 Jan 2011 13:22:36 +0000<br>
Subject: Re: [development] allowed memory size exhausted<br>Just because the stack trace doesn&#39;t show the error going through custom modules doesn&#39;t mean that it&#39;s not a custom modules fault.<br><br>An out of memory exception will be thrown the moment that a piece of code attempts to allocate an amount of memory which would put it over the memory limit. It does not mean that a piece of code is necessarily faulty. This means that module A could allocate 299 MB of memory, then when module B is called, it needs 1 MB, and the stack trace would show the call going via module B.<br>

<br>As Zereef has said, if worst comes to worst, a memory profiler should help you diagnose the problem.<br><br>- Frederik<br><br><div class="gmail_quote">On 14 January 2011 13:14, Zareef Ahmed <span dir="ltr">&lt;<a href="mailto:zareef@zareef.net" target="_blank">zareef@zareef.net</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">I believe you got the message .. as some sentence were not in flow due to my fast typing  .. :)<br>

<br><div class="gmail_quote"><div>On Fri, Jan 14, 2011 at 6:39 PM, Zareef Ahmed <span dir="ltr">&lt;<a href="mailto:zareef@zareef.net" target="_blank">zareef@zareef.net</a>&gt;</span> wrote:<br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div>To debug why your code is requesting this kind of memory you can try following steps.<br>

<br></div>
1. First increase the memory in your ini SO you can get rid of this memory allocation error, you can try to increase this to around 1 GB or something similar (depends how much memory you have on your machine)... If even increasing memory upto that HUGE level does not help you, then something is really really WRONG with your setup, which need to be looked upon within code for some loops or something like that.<div>

<div></div><div><br>

<br>2. If you are able to run your application by increasing Memory, please install APD on your server. see <a href="http://in.php.net/apd" target="_blank">http://in.php.net/apd</a><br>Use APD to track which functions are taking more memory to debug your application.<br>



<br><br>Also check if problem is  new on this server and application runs fine or other machine with different version of PHP, in some recent versions of PHP few functions behavior has been changed due to which few scripts or older module behave in unexpected way.. <br>



<br><br>Thanks and Regards<br>Zareef Ahmed<div><div></div><div><br><br><div class="gmail_quote">On Fri, Jan 14, 2011 at 7:12 PM, Pierre Rineau <span dir="ltr">&lt;<a href="mailto:pierre.rineau@makina-corpus.com" target="_blank">pierre.rineau@makina-corpus.com</a>&gt;</span> wrote:<br>



<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><br>
&gt; [Fri Jan 14 11:02:21 2011] [error] [client 1.2.3.4] PHP Fatal error:<br>
&gt; Allowed memory size of 335544320 bytes exhausted (tried to allocate<br>
&gt; 22175001 bytes) in /var/www/abc/includes/database.mysql-common.inc on<br>
&gt; line 34<br>
<br>
</div>Did you really allowed 320M of memory for PHP scripts execution or I<br>
miscalculated?!<br>
<br>
This is howfully huge!<br>
<br>
What are you trying to do here that could consume something like 10<br>
times the &quot;normal&quot; drupal memory consumption?<br>
<font color="#888888"><br>
Pierre.<br>
<br>
<br>
</font></blockquote></div><br><br clear="all"><br></div></div><font color="#888888">-- <br>Zareef Ahmed<br><a href="http://www.zareef.net" target="_blank">http://www.zareef.net</a><br>
</font></div></div></blockquote></div><div><div></div><div><br><br clear="all"><br>-- <br>Zareef Ahmed<br><a href="http://www.zareef.net" target="_blank">http://www.zareef.net</a><br>
</div></div></blockquote></div><br>
<br><br>---------- Forwarded message ----------<br>From: Blake Senftner &lt;<a href="mailto:bsenftner@earthlink.net">bsenftner@earthlink.net</a>&gt;<br>To: <a href="mailto:development@drupal.org">development@drupal.org</a><br>
Date: Fri, 14 Jan 2011 06:12:16 -0800<br>Subject: [development] image cache api to delete node images<br><div style="word-wrap: break-word;">Has anyone written logic to delete a single node&#39;s image cache entries upon that node&#39;s delete? <div>
<div>
<span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div style="word-wrap: break-word;">
<span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div>
<br>Sincerely,</div><div>-Blake</div><div><a href="mailto:bsenftner@earthlink.net" target="_blank">bsenftner@earthlink.net</a></div><div><a href="http://www.BlakeSenftner.com" target="_blank">www.BlakeSenftner.com</a></div>
<div><a href="http://www.MissingUbercartManual.com" target="_blank">www.MissingUbercartManual.com</a></div></span></span></div></span></span>
</div>
<br></div></div><br>--<br>
[ Drupal development list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br></blockquote></div><br><br clear="all"><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>