So I was getting some WSOD on an ubercart site in development.
PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 523331 bytes) in …
The hosting site limits the PHP memory to 32M, no matter what you put in the .htaccess file, so I can't increase the memory limit.
I've enabled devel module's “Display memory usage†functionality (on the dev site with a copy of the live db, not the live site with the memory limit) and I'm seeing:
Memory used at devel_init(): 36.43 MB
Memory used at devel_shutdown(): 37.11 MB
This is a complex site with lots of modules…
block
contact
content (cck)
date (cck)
date_api (cck)
devel
extlink
fieldgroup (cck)
filter
googleanalytics
help
htmlbox
imagefield (cck)
inline
jquery_update
ksite (custom)
menu
menu_block
node
nodequeue
nodereference (cck)
number (cck)
optionwidgets (cck)
path
path_redirect
search
securepages
system
tapir
teachers (custom)
test_gateway
text (cck)
token
ubrowser
uc_attribute
uc_cart
uc_cart_links
uc_credit
uc_donate
uc_donation
uc_googleanalytics
uc_notify
uc_order
uc_payment
uc_product
uc_reports
uc_stock
uc_store
upload
user
views
views_rss
views_theme_wizard
views_ui
watchdog
workflow_ng
workflow_ng_ui
xmlsitemap
xmlsitemap_node
I've already disabled modules to try to get this as lean as possible.
When I disable UC and its dependencies, the memory usage drops dramatically.
Memory used at devel_init(): 21.69 MB
Memory used at devel_shutdown(): 22.41 MB
That's nearly 15MB for Ubercart by itself (and I'm only using a select list of UC modules.)
Any suggestions on how I can get a UC site's PHP memory usage under 32M?


I don't have anything helpful to add to the thread atm, but hopefully we can work on these memory troubles w/ D6 and the new menu system. I'm not a great memory optimizer, but if you know of any things routinely used in PHP that eat up resources, I can let you know where we might be biting you and how we can improve.
Same for the Views Theme Wizard. Also, does your memory comparison include disabling Workflow-ng?


Depending on your web host you might have to set the php memory in a php.ini file and not .htaccess.