This forum is no longer active. Please post your questions to our new community site

Forums MAMPStack

http 500 error

Subscribe to http 500 error 13 post(s), 2 voice(s)

 
Avatar gd 56 post(s)

I am using the current version of MAMP with wordpress 2.7.1 module. The server seems not quite responsive and I get the http 500 error frequently. Do you have any idea?

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Could you post the Apache log file last entries?

Cheers.

 
Avatar gd 56 post(s)

The last entries are :
Tue Apr 21 22:14:31 2009 [client 116.49.106.171] PHP Fatal error: Out of memory (allocated 0) (tried to allocate 8192 bytes) in Unknown on line 0, referer: http://gwabc.dyndns.org:8080/wordpress/wp-admin/edit.php
httpd(387) malloc: * vm_allocate(size=20480) failed (error code=268451844)
httpd(387) malloc:
error: can’t allocate region
httpd(387) malloc:
set a breakpoint in szone_error to debug
Tue Apr 21 22:14:44 2009 [client 116.49.106.171] PHP Fatal error: out of dynamic memory in yy_create_buffer() in Unknown on line 0, referer: http://gwabc.dyndns.org:8080/wordpress/wp-admin/admin.php?page=nggallery-manage-gallery
httpd(387) malloc:
error for object 0×1722000: Can’t deallocate_pages region
httpd(387) malloc:
set a breakpoint in szone_error to debug
httpd(387) malloc:
vm_allocate(size=262144) failed (error code=-301)
httpd(387) malloc:
error: can’t allocate region
httpd(387) malloc:
set a breakpoint in szone_error to debug
Tue Apr 21 22:14:44 2009 [client 116.49.106.171] PHP Fatal error: Out of memory (allocated 0) (tried to allocate 8192 bytes) in Unknown on line 0, referer: http://gwabc.dyndns.org:8080/wordpress/wp-admin/admin.php?page=nggallery-manage-gallery
httpd(316) malloc:
vm_allocate(size=20480) failed (error code=268451844)
httpd(316) malloc:
error: can’t allocate region
httpd(316) malloc:
set a breakpoint in szone_error to debug
Tue Apr 21 22:14:47 2009 [client 116.49.106.171] PHP Fatal error: out of dynamic memory in yy_create_buffer() in Unknown on line 0
httpd(316) malloc:
error for object 0×1722000: Can’t deallocate_pages region
httpd(316) malloc:
set a breakpoint in szone_error to debug
httpd(316) malloc:
vm_allocate(size=262144) failed (error code=-301)
httpd(316) malloc:
error: can’t allocate region
httpd(316) malloc:
set a breakpoint in szone_error to debug
Tue Apr 21 22:14:47 2009 [client 116.49.106.171] PHP Fatal error: Out of memory (allocated 0) (tried to allocate 8192 bytes) in Unknown on line 0
httpd(314) malloc:
error for object 0×1776000: Can’t deallocate_pages region
httpd(314) malloc:
set a breakpoint in szone_error to debug
httpd(314) malloc:
vm_allocate(size=20480) failed (error code=-301)
httpd(314) malloc:
error: can’t allocate region
httpd(314) malloc:
set a breakpoint in szone_error to debug
Tue Apr 21 22:14:52 2009 [client 116.49.106.171] PHP Fatal error: out of dynamic memory in yy_create_buffer() in /Applications/mampstack-1.1-2/apps/wordpress/htdocs/wp-admin/admin.php on line 19
httpd(314) malloc:
error for object 0×1722000: Can’t deallocate_pages region
httpd(314) malloc:
set a breakpoint in szone_error to debug
httpd(314) malloc:
vm_allocate(size=262144) failed (error code=-301)
httpd(314) malloc:
error: can’t allocate region
httpd(314) malloc:
set a breakpoint in szone_error to debug
httpd(316) malloc:
error for object 0×177b000: Can’t deallocate_pages region
httpd(316) malloc:
set a breakpoint in szone_error to debug
httpd(316) malloc:
vm_allocate(size=20480) failed (error code=-301)
httpd(316) malloc:
error: can’t allocate region
httpd(316) malloc:
set a breakpoint in szone_error to debug
Tue Apr 21 22:15:25 2009 [client 116.49.106.171] PHP Fatal error: out of dynamic memory in yy_create_buffer() in /Applications/mampstack-1.1-2/apps/wordpress/htdocs/wp-content/plugins/nextgen-gallery/admin/showmeta.php on line 4, referer: http://gwabc.dyndns.org:8080/wordpress/wp-admin/admin.php?page=nggallery-manage-gallery&mode=edit&gid=1&_wpnonce=322df22be2
httpd(316) malloc:
error for object 0×1722000: Can’t deallocate_pages region
httpd(316) malloc:
set a breakpoint in szone_error to debug
httpd(316) malloc:
vm_allocate(size=262144) failed (error code=-301)
httpd(316) malloc:
error: can’t allocate region
httpd(316) malloc:
set a breakpoint in szone_error to debug
httpd(314) malloc:
error for object 0×17bb000: Can’t deallocate_pages region
httpd(314) malloc:
set a breakpoint in szone_error to debug
httpd(314) malloc:
vm_allocate(size=20480) failed (error code=-301)
httpd(314) malloc:
error: can’t allocate region
httpd(314) malloc:
set a breakpoint in szone_error to debug
Tue Apr 21 22:15:51 2009 [client 116.49.106.171] PHP Fatal error: out of dynamic memory in yy_create_buffer() in /Applications/mampstack-1.1-2/apps/wordpress/htdocs/wp-admin/admin.php on line 19
httpd(314) malloc:
error for object 0×1722000: Can’t deallocate_pages region
httpd(314) malloc:
set a breakpoint in szone_error to debug
httpd(314) malloc:
vm_allocate(size=262144) failed (error code=-301)
httpd(314) malloc:
error: can’t allocate region
httpd(314) malloc:
set a breakpoint in szone_error to debug
httpd(387) malloc:
error for object 0×2ee6000: Can’t deallocate_pages region
httpd(387) malloc:
set a breakpoint in szone_error to debug
httpd(316) malloc:
error for object 0×17c0000: Can’t deallocate_pages region
httpd(316) malloc:
set a breakpoint in szone_error to debug
httpd(316) malloc:
vm_allocate(size=20480) failed (error code=-301)
httpd(316) malloc:
error: can’t allocate region
httpd(316) malloc:
set a breakpoint in szone_error to debug
Tue Apr 21 22:16:55 2009 [client 116.49.106.171] PHP Fatal error: out of dynamic memory in yy_create_buffer() in /Applications/mampstack-1.1-2/apps/wordpress/htdocs/wp-admin/admin.php on line 19, referer: http://gwabc.dyndns.org:8080/wordpress/wp-admin/admin.php?page=nggallery-manage-gallery&mode=edit&gid=1&_wpnonce=322df22be2
httpd(316) malloc:
error for object 0×1722000: Can’t deallocate_pages region
httpd(316) malloc:
set a breakpoint in szone_error to debug
httpd(316) malloc:
vm_allocate(size=262144) failed (error code=-301)
httpd(316) malloc:
error: can’t allocate region
httpd(316) malloc:
set a breakpoint in szone_error to debug
httpd(314) malloc:
error for object 0×2c2b000: Can’t deallocate_pages region
httpd(314) malloc:
set a breakpoint in szone_error to debug
httpd(314) malloc:
vm_allocate(size=20480) failed (error code=-301)
httpd(314) malloc:
error: can’t allocate region
httpd(314) malloc:
set a breakpoint in szone_error to debug
Tue Apr 21 22:17:45 2009 [client 116.49.106.171] PHP Fatal error: out of dynamic memory in yy_create_buffer() in /Applications/mampstack-1.1-2/apps/wordpress/htdocs/wp-admin/admin.php on line 19, referer: http://gwabc.dyndns.org:8080/wordpress/wp-admin/admin.php?page=nggallery-roles
httpd(314) malloc:
error for object 0×1722000: Can’t deallocate_pages region
httpd(314) malloc:
set a breakpoint in szone_error to debug
httpd(314) malloc:
vm_allocate(size=262144) failed (error code=-301)
httpd(314) malloc:
error: can’t allocate region
httpd(314) malloc: *
set a breakpoint in szone_error to debug

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi,

It seems a memory issue. Could you post your current RAM memory, your OS X version and the swap memory? It would be also useful the header information of the “top” command.

Cheers.

 
Avatar gd 56 post(s)

Thanks for your help.

The current memory is 512M.

System Software Overview:

System Version:    Mac OS X 10.4.11 (8S165)
Kernel Version:    Darwin 8.11.0

Top command:

Processes: 67 total, 2 running, 65 sleeping… 197 threads 09:19:48
Load Avg: 0.65, 0.44, 0.27 CPU usage: 11.0% user, 15.6% sys, 73.4% idle
SharedLibs: num = 152, resident = 31.7M code, 3.90M data, 11.5M LinkEdit
MemRegions: num = 7165, resident = 97.6M + 11.8M private, 137M shared
PhysMem: 62.8M wired, 143M active, 209M inactive, 415M used, 96.4M free
VM: 3.98G + 95.2M 25259(1) pageins, 0(0) pageouts

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

You can try to increase the PHP memory limit in the <instaldir>/php/etc/php.ini file:

memory_limit = 128M

Cheers.

 
Avatar gd 56 post(s)

Hi, beltran,

I have increased the memory_limit to 256M. Similar error occurs:
Wed Apr 22 20:48:28 2009 Digest: generating secret for digest authentication …
Wed Apr 22 20:48:28 2009 Digest: done
Wed Apr 22 20:48:28 2009 Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8i DAV/2 PHP/5.2.8 configured—resuming normal operations
httpd(327) malloc: * error for object 0×17fb000: Can’t deallocate_pages region
httpd(327) malloc:
set a breakpoint in szone_error to debug
httpd(327) malloc:
vm_allocate(size=20480) failed (error code=-301)
httpd(327) malloc:
error: can’t allocate region
httpd(327) malloc:
set a breakpoint in szone_error to debug
Wed Apr 22 20:49:39 2009 [client 116.49.106.171] PHP Fatal error: out of dynamic memory in yy_create_buffer() in /Applications/mampstack-1.1-2/apps/wordpress/htdocs/wp-settings.php on line 301, referer: http://gwabc.dyndns.org:8080/wordpress/wp-admin/
httpd(327) malloc:
error for object 0×2ce6000: Can’t deallocate_pages region
httpd(327) malloc:
set a breakpoint in szone_error to debug
httpd(327) malloc:
vm_allocate(size=262144) failed (error code=-301)
httpd(327) malloc:
error: can’t allocate region
httpd(327) malloc: *
set a breakpoint in szone_error to debug
Wed Apr 22 20:49:39 2009 [client 116.49.106.171] PHP Fatal error: Out of memory (allocated 0) (tried to allocate 8192 bytes) in Unknown on line 0, referer: http://gwabc.dyndns.org:8080/wordpress/wp-admin/

Do you think it is a problem of the wordpress extension?

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi,

I’m not sure. It seems a memory issue and this error is difficult to be produced by a php code (if this error is due a wrong php code, this issue will be a security error). So I do not think so.

 
Avatar gd 56 post(s)

Hi,

Yes I agree with your observation. It seems it breaks into the memory allocation which very likely to be a security issue. Anything I can do?

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Mmmm Could you check if you can see the same error using other BitNami Stack (which use PHP)? If you can not reproduce this issue it is probably that this error is due to a wordpress issue. If you can reproduce it probably you need to check it your RAM or increase it.

Cheers.

 
Avatar gd 56 post(s)

Hi,

I guess this is an issue related to the PHP written by wordpress extensions such as theme. When I use some complex themes, this kind of error happened again. If I use the basic theme provided by wordpress, it seems OK.

 
Avatar gd 56 post(s)

Hi, Beltran, this kind of error still happens when using Joomla. It seems the current installation of MAMP is not quite stable. Any change in configuration can I do?

/>httpd(799) malloc: * error for object 0x1722000: Can't deallocate_pages region
httpd(799) malloc:
set a breakpoint in szone_error to debug
httpd(799) malloc:
vm_allocate(size=262144) failed (error code=-301)
httpd(799) malloc:
error: can't allocate region
httpd(799) malloc:
set a breakpoint in szone_error to debug
Tue May 19 17:14:38 2009 [client 116.49.106.135] File does not exist: /Applications/mampstack-1.1-2/apache2/htdocs/favicon.ico, referer: http://<sitename>/joomla/administrator/index.php?option=com_menus&task=view&menutype=mainmenu
httpd(799) malloc:
error for object 0x2c2b000: Can't deallocate_pages region
httpd(799) malloc:
set a breakpoint in szone_error to debug
httpd(799) malloc:
vm_allocate(size=20480) failed (error code=-301)
httpd(799) malloc:
error: can't allocate region
httpd(799) malloc:
set a breakpoint in szone_error to debug
Tue May 19 17:17:47 2009 [client 116.49.106.135] PHP Fatal error: out of dynamic memory in yy_create_buffer() in /Applications/mampstack-1.1-2/apps/joomla/htdocs/administrator/index.php on line 21, referer: http://<sitename>/joomla/administrator/index.php?option=com_menus&task=edit&type=component&url[option]=com_wrapper&url[view]=wrapper&menutype=mainmenu
httpd(799) malloc:
error for object 0x1722000: Can't deallocate_pages region
httpd(799) malloc:
set a breakpoint in szone_error to debug
httpd(799) malloc:
vm_allocate(size=262144) failed (error code=-301)
httpd(799) malloc:
error: can't allocate region
httpd(799) malloc:
set a breakpoint in szone_error to debug
Tue May 19 17:17:47 2009 [client 116.49.106.135] File does not exist: /Applications/mampstack-1.1-2/apache2/htdocs/favicon.ico, referer: http://<sitename>/joomla/administrator/index.php
httpd(799) malloc:
error for object 0x2c70000: Can't deallocate_pages region
httpd(799) malloc:
set a breakpoint in szone_error to debug
httpd(799) malloc:
vm_allocate(size=20480) failed (error code=-301)
httpd(799) malloc:
error: can't allocate region
httpd(799) malloc:
set a breakpoint in szone_error to debug
Tue May 19 17:20:44 2009 [client 116.49.106.135] PHP Fatal error: out of dynamic memory in yy_create_buffer() in /Applications/mampstack-1.1-2/apps/joomla/htdocs/administrator/index.php on line 21, referer: http://<sitename>/joomla/administrator/index.php?option=com_menus&task=edit&type=component&url[option]=com_wrapper&url[view]=wrapper&menutype=mainmenu
httpd(799) malloc:
error for object 0x1722000: Can't deallocate_pages region
httpd(799) malloc:
set a breakpoint in szone_error to debug
httpd(799) malloc:
vm_allocate(size=262144) failed (error code=-301)
httpd(799) malloc:
error: can't allocate region
httpd(799) malloc: *
* set a breakpoint in szone_error to debug
 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi,

It seems a PHP bug, take a look this post We can not reproduce on our OS X machines and it seems a memory issue.

Forums MAMPStack