Page 1 of 1

VirtualAlloc() failed: [0x00000008] Not enough storage

PostPosted: 05. October 2016 17:18
by garycarlyle
I keep getting the error below. I have tried different settings both in wp-config and the defaults constants but I keep getting this error. It is really frustrating and starting to make me ill.

Mostly the error seems to pertain to wp-db.php but not always. It is quite random seeming actually.

It will be fine for usually about 20 minutes then the site and phpmyadmin will be all ERROR 500.

Seems to be ok again for a bit when I reset Xampp but then occurs again several times a day.

Please help. I am at my wits end!

Code: Select all
VirtualAlloc() failed: [0x00000008] Not enough storage is available to process this command.


VirtualAlloc() failed: [0x00000008] Not enough storage is available to process this command.

[Wed Oct 05 17:01:44.137200 2016] [:error] [pid 5048:tid 916] [client 173.245.55.204:26688] PHP Fatal error:  Out of memory (allocated 2097152) (tried to allocate 32768 bytes) in C:\\xampp\\htdocs\\mywbsite\\wordpress\\wp-includes\\wp-db.php on line 2875

Re: VirtualAlloc() failed: [0x00000008] Not enough storage

PostPosted: 05. October 2016 20:34
by Nobbie
Did you already increase max_memory in php.ini? Thats what i would do.

Re: VirtualAlloc() failed: [0x00000008] Not enough storage

PostPosted: 06. October 2016 01:02
by garycarlyle
Yes, I have even set it to infinite.

Re: VirtualAlloc() failed: [0x00000008] Not enough storage

PostPosted: 06. October 2016 10:54
by Nobbie
And you restartet Apache? And run a phpinfo() in order to check the setting.

Last not least, it could be overwritten by PHP at runtime (i.e. either in a WordPress plugin or WordPress config), ask in a WordPress forum if it is known. Last not least you can edit the WordPress source and find out, if they are manipuling the setting of max_memory.

Re: VirtualAlloc() failed: [0x00000008] Not enough storage

PostPosted: 07. October 2016 19:47
by garycarlyle
I have been but nobody seems to know what is causing it.

Especially why it would crash Xampp if it was a WP problem.

I have tried changing all different memory configs with Wordpress but nothing seems to stop it. Although I have improve it from crashing every 20 mins to about ever hour.

I was thinking to try 64 bit Xampp but there doesnt seem to be one for Windows.

Re: VirtualAlloc() failed: [0x00000008] Not enough storage

PostPosted: 07. October 2016 19:54
by Nobbie
garycarlyle wrote:Especially why it would crash Xampp if it was a WP problem.


Simply dont use Xampp. Install Apache / PHP / MySQL manually on yourself and find it out.

garycarlyle wrote:I was thinking to try 64 bit Xampp but there doesnt seem to be one for Windows.


No, there still lacks Apache 64bit. Nobody is involved to build an Apache 64bit for Windows. Feel free to deliver a 64bit Apache built for WIndows.

As i do not like Windows, i recommend to use Linux instead. I do not use Windows anymore.