I have Drupal 5.x installed on three different Windows XP machines. There are several modules installed such as CCK, Views, TinyMCE, ImageCache, etc. All of my work at this point is local so I have no hosts involved. The problem is that I frequently get a white screen on any of the three machines. When I look at the error log I see the infamous "PHP Fatal error: Out of memory..." error. The strange thing though is that the white screen will randomly happen on any page. So it doesn't just happen on a views page, the modules page, etc. And my memory limit is set to 128 MB in my php.ini file (which I confirmed by using phpinfo). I've installed devel and the memory never goes near 128 MB on any given page. The allocated memory never goes near 128 MB in the error log either. Here are a few examples from the error log:
[01-Apr-2009 22:30:02] PHP Fatal error: Out of memory (allocated 524288) (tried to allocate 48 bytes) in C:\Apache2.2\htdocs\drupal-5.16\includes\bootstrap.inc on line 423
[07-Apr-2009 11:21:23] PHP Fatal error: Out of memory (allocated 6029312) (tried to allocate 24576 bytes) in C:\Apache2.2\htdocs\drupal-5.16\modules\system\system.module on line 2336
[07-Apr-2009 13:12:50] PHP Fatal error: Out of memory (allocated 19136512) (tried to allocate 840265 bytes) in C:\Apache2.2\htdocs\drupal-5.16\includes\database.mysql.inc on line 190
[07-Apr-2009 13:12:57] PHP Fatal error: Out of memory (allocated 3670016) (tried to allocate 98304 bytes) in C:\Apache2.2\htdocs\drupal-5.16\modules\comment\comment.module on line 1535
[07-Apr-2009 14:09:53] PHP Fatal error: Out of memory (allocated 11010048) (tried to allocate 24576 bytes) in C:\Apache2.2\htdocs\drupal-5.16\sites\all\modules\spam\spam.module on line 1969
[23-Apr-2009 19:06:23] PHP Fatal error: Out of memory (allocated 12058624) (tried to allocate 24576 bytes) in C:\Apache2.2\htdocs\drupal-5.16\sites\all\modules\imagecache\imagecache.module on line 465
[23-Apr-2009 20:53:19] PHP Fatal error: Out of memory (allocated 17563648) (tried to allocate 24576 bytes) in C:\Apache2.2\htdocs\drupal-5.16\sites\all\modules\fivestar\fivestar_field.inc on line 219
[23-Apr-2009 20:53:33] PHP Fatal error: Out of memory (allocated 17563648) (tried to allocate 24576 bytes) in C:\Apache2.2\htdocs\drupal-5.16\sites\all\modules\votingapi\votingapi_views.inc on line 39
[23-Apr-2009 20:53:54] PHP Fatal error: Out of memory (allocated 17301504) (tried to allocate 24576 bytes) in C:\Apache2.2\htdocs\drupal-5.16\sites\all\modules\views\views.module on line 1579
[24-Apr-2009 23:54:28] PHP Fatal error: Out of memory (allocated 6553600) (tried to allocate 24576 bytes) in C:\Apache2.2\htdocs\drupal-5.16\modules\taxonomy\taxonomy.module on line 1252
[29-Apr-2009 13:20:14] PHP Fatal error: Out of memory (allocated 12582912) (tried to allocate 98304 bytes) in C:\Apache2.2\htdocs\drupal-5.16\sites\all\modules\imagefield\imagefield.module on line 768
[30-Apr-2009 14:34:44] PHP Fatal error: Out of memory (allocated 8126464) (tried to allocate 24576 bytes) in C:\Apache2.2\htdocs\drupal-5.16\sites\all\modules\captcha\captcha.module on line 93
[30-Apr-2009 16:34:43] PHP Fatal error: Out of memory (allocated 16777216) (tried to allocate 24576 bytes) in C:\Apache2.2\htdocs\drupal-5.16\sites\all\modules\auto_nodetitle\auto_nodetitle.module on line 172
[30-Apr-2009 18:58:21] PHP Fatal error: Out of memory (allocated 19398656) (tried to allocate 98304 bytes) in C:\Apache2.2\htdocs\drupal-5.16\sites\all\modules\cck\content_admin.inc on line 837
As you can see this memory error randomly affects any module and not just contributed modules. The largest allocated memory size is around 18.5 MB so I don't see why it keeps crashing when my maximum limit is 128 MB in php.ini. And again I actually see the 128 MB when I display phpinfo so I know it's being set.
Any ideas what is going on here and how I can correct it? Thanks in advance!
Comments
That's a different error
It looks like you are getting a different error to the one you think you are getting.
yours:
PHP Fatal error: Out of memory (allocated X) (tried to allocate Y bytes)the common one that is fixed by allocating more memory
Fatal error: Allowed memory size of X bytes exhausted (tried to allocate Y bytes)And the fact that
(allocated X)changes quite a lot between requests, means that it isn't a fixed limit you are running up against.It sounds like your OS itself might actually running out of memory.
--
Anton
Thanks for your reply styro.
Thanks for your reply styro. Initially I thought it was the OS memory as well, but whenever I look at task manager in Windows when this happens I'm only utilizing at most half of my memory. And all of my other applications, such as my browser, are behaving normally.
No errors and no clues - white screen on windows with 128mb
Hello all,
I have the white screen blues too. My whole site is down. I'm running Drupal on Windows with 128mb of PHP memory as well. I am familiar with the typical white screen problem, due to memory limit, and I think this is not it.
Today, after disabling the Devel Themer module (from the devel block) my site wen blank (dunno if that's related). I went to the DB and made sure all devel modules are dissabled. Still white screen on EVERY page. I'm really not sure what's causing the problem.
I can't seem to make sense of the log file Plesk gives to me, nothing useful like above. I think it's just an access log. I pasted the code from this article (http://www.ubercart.org/faq/2246) into my index.php to print all errors to the screen. No errors are printed, and still blank white screen.
I wonder, if I were to see an error report, would it look like this (above)?
@jkocsis - Have you found a solution to your errors?
Please share...
Thanks,
M.M.