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

Problems with the Windows version of XAMPP, questions, comments, and anything related.

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

Postby garycarlyle » 05. October 2016 17:18

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
garycarlyle
 
Posts: 5
Joined: 12. August 2016 23:57
XAMPP version: newest
Operating System: win10

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

Postby Nobbie » 05. October 2016 20:34

Did you already increase max_memory in php.ini? Thats what i would do.
Nobbie
 
Posts: 8761
Joined: 09. March 2008 13:04

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

Postby garycarlyle » 06. October 2016 01:02

Yes, I have even set it to infinite.
garycarlyle
 
Posts: 5
Joined: 12. August 2016 23:57
XAMPP version: newest
Operating System: win10

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

Postby Nobbie » 06. October 2016 10:54

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.
Nobbie
 
Posts: 8761
Joined: 09. March 2008 13:04

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

Postby garycarlyle » 07. October 2016 19:47

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.
garycarlyle
 
Posts: 5
Joined: 12. August 2016 23:57
XAMPP version: newest
Operating System: win10

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

Postby Nobbie » 07. October 2016 19:54

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.
Nobbie
 
Posts: 8761
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 48 guests