<div class="gmail_quote">On Sun, Feb 28, 2010 at 9:54 AM, Shai Gluskin <span dir="ltr">&lt;<a href="mailto:shai@content2zero.com">shai@content2zero.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;">

When I clear cache via Drush, I get a memory error:<div><br></div><blockquote style="margin: 0pt 0pt 0pt 40px; border: medium none; padding: 0px;"><div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">


<font face="&#39;courier new&#39;, monospace">Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 19456 bytes) in /dev/sites/all/modules/better_formats/better_formats.install on line 99</font></blockquote>


</div></blockquote><div><br></div><div>The same error comes up over and over but references different modules, so I think the module listed here is irrelevant.</div><div><br></div><div>I have a dedicated server and I do not experience this problem on other sites installed on the same server. The php.ini file sets the memory limit at 256M for this site.</div>


<div><br></div><div>Cache clears via the Drupal UI but, takes a really long time (like 30 sec).</div><div><br></div><div>Turning Views and modules dependent on it OFF fixes the problem. But of course the site is useless without Views. I&#39;m using Views 2.8.</div>


<div><br></div><div>I have no idea if it is related... but all the theming goes away when I turn on &quot;optimize css.&quot;</div><div><br></div><div>Any ideas about the problem or how I should go about troubleshooting it would be most appreciated.</div>


<div><br></div><font color="#888888"><div>Shai</div><div><br></div>
</font><br>--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br></blockquote></div><br><br>1. Disable Gzip Compression of pages by PHP. Use mod_deflate<br>2. Enable mod_cache &amp; mod_disk_cache<br>

3. Use xcache/apc/eaccelerator.<br>4. Use mod_fcgi or mod_fastcgi instead of mod_php.<br><br>This is do with site problems.<br><br>Now, come to drush problem.<br><br>I was facing something similar.<br><br>Some solutions I found was -<br>

<br>Compile PHP with CFLAGS &amp; CXXFLAGS=&quot;-O3 -march i686&quot; (i686 or relevant)<br><br>Same CFLAGS and CXXFLAGS for mysql/pgsql.<br><br>This enables PHP to run faster.<br><br>Set vm.swappniess = 100 (default is 60).<br>

<br>This will NOT degrade performance, but increase it by a little. If you set higher values then it WILL DEGRADE.<br><br>Report back.<br clear="all"><br>-- <br>Nilesh Govindarajan<br>Site &amp; Server Administrator<br><a href="http://www.itech7.com">www.itech7.com</a><br>

<br>