Just because the stack trace doesn't show the error going through custom modules doesn't mean that it'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"><<a href="mailto:zareef@zareef.net">zareef@zareef.net</a>></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 class="im">On Fri, Jan 14, 2011 at 6:39 PM, Zareef Ahmed <span dir="ltr"><<a href="mailto:zareef@zareef.net" target="_blank">zareef@zareef.net</a>></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 class="im">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 class="h5"><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"><<a href="mailto:pierre.rineau@makina-corpus.com" target="_blank">pierre.rineau@makina-corpus.com</a>></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>
> [Fri Jan 14 11:02:21 2011] [error] [client 1.2.3.4] PHP Fatal error:<br>
> Allowed memory size of 335544320 bytes exhausted (tried to allocate<br>
> 22175001 bytes) in /var/www/abc/includes/database.mysql-common.inc on<br>
> 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 "normal" 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 class="h5"><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>