1) Installed drupal 5.1 + views 5.x-1.6-beta5
2) PHP memory_limit set to 16M (Internet provider preset; cannot change).
3) After installing Views module PHP uses too much memory. Fatal error: Allowed memory size of 16777216 bytes exhausted in /customers/liljeholmensfolkhogskola.se/liljeholmensfolkhogskola.se/httpd.www/modules/views/views_cache.inc on line 73
An easy way to solve this would, of course, to set PHP memory_limit to 32M, but it is a problem that Views uses so much memory. It makes the drupal + views module not working on many "Web hotels". PHP memory_limit set to 16M is quite a common limit. If this could not be optimized, it must be much clearer that Views will not work unless at least 32M memory limit on the PHP.
Thanks/
Carl Carlstein
Comments
Comment #1
nancydruI have sites at 8M and Views works on them. But then I don't have any realy complex Views.
Comment #2
merlinofchaos commentedWhat other modules do you have? Views can use a bit of memory, but the amount of memory that's really used is a combination of the whole site's worth of modules, plus the modules you're using that utilize Views.
It's been found that lots of CCK fields really crank up the amount of memory that gets used. This is partly a flaw in Views, but it's not natively Views using that memory.
Comment #3
kalle commentedThanks for your replies.
I use CCK + Views. So CCK is part of the problem. But isn't there any optimization that could be done from in View to solve the View-part of this problem?
Thanks,
Carl
Comment #4
dvsouza commentedhttp://drupal.org/node/147583#comment-259230
Comment #5
jarea commentedI too am getting allowed memory exhausted, but not on a consistent basis. I can replicate it most reliably when I try to edit forums in admin/content/forum, where it occurs about every other time I load the page, but I also get it on admin/build/modules and perhaps some other places. I suspect something is flying off the wheel somewhere in views_cache.
Looking at the page source, I do note that there is a block view on the page, it's export is listed below
This is the version info on my views module:
; $Id: views.info,v 1.2.2.4 2007/06/18 23:07:13 dww Exp $
name = Views
description = The views module creates customized views of node lists.
package = Views
; Information added by drupal.org packaging script on 2007-07-14
version = "5.x-1.6"
project = "views"
datestamp = "1184451606"
Hope this might help.
Comment #6
catchduplicate of this: http://drupal.org/node/83490