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

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

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

Postby connersz » 22. February 2021 15:05

Hi,

I'm new to Xampp. I'm running it on my Windows PC with a Wordpress copy from my production server.

The site mostly works, but if I switch between pages, after a few clicks I will get a blank screen or critical Wordpress error.

The error log shows:


[Mon Feb 22 13:59:27.880280 2021] [php7:error] [pid 8032:tid 1792] [client ::1:52051] PHP Fatal error: Out of memory (allocated 41943040) (tried to allocate 3252768 bytes) in C:\\xampp3\\htdocs\\wp-content\\plugins\\autoptimize\\classes\\external\\php\\minify-html.php on line 150, referer: http://localhost:8080/reviews-testimonials/
[Mon Feb 22 13:59:27.881277 2021] [php7:error] [pid 8032:tid 1792] [client ::1:52051] PHP Fatal error: Unknown: Cannot use output buffering in output buffering display handlers in Unknown on line 0, referer: http://localhost:8080/reviews-testimonials/

I know a plugin is mentioned here, but that's a red herring. This error will show over and over with numerous plugins/scripts. The error appears at random, on any webpage after clicking around the site.

I've tried increasing the memory_limit in the php.ini file to lots of different values including '-1' and it's currently set to- memory_limit=1996M but this never fixes the issue and sadly, this is the only pointer I can seem to find when searching online.

Can anyone help with this?
connersz
 
Posts: 5
Joined: 22. February 2021 14:59
XAMPP version: 3.2.2
Operating System: Windows 10

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

Postby Altrea » 22. February 2021 17:42

Hi,

Seems that PHP cannot allocate more than 42MB RAM on your machine.
if the memory_limit setting in the php.ini will not fix the issue, you are overriding this setting somewhere in your application or .htaccess file.
If you know the precise part of code the error occurs you could check by outputting phpinfo() which the current value for memoy_limit is.

Or your physical RAM is the problem.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 10730
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

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

Postby connersz » 22. February 2021 18:31

Altrea wrote:Hi,

Seems that PHP cannot allocate more than 42MB RAM on your machine.
if the memory_limit setting in the php.ini will not fix the issue, you are overriding this setting somewhere in your application or .htaccess file.
If you know the precise part of code the error occurs you could check by outputting phpinfo() which the current value for memoy_limit is.

Or your physical RAM is the problem.



Thanks for the response.

I've searched through all website files for the memory limit and can't find any other instances. It definitely isn't in the htaccess or wp-config. Could it be a configuration issue with Xampp?

With regards to the precise area of code, it happens on various scripts at different times, seemingly at random so I'm not sure I can pre-judge where it's going to occur next.

I don't think my PC is an issue. It's brand new and running 32gb or RAM.

Any other ideas?
connersz
 
Posts: 5
Joined: 22. February 2021 14:59
XAMPP version: 3.2.2
Operating System: Windows 10

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

Postby connersz » 22. February 2021 18:42

Update- I've tried de-activation some of the named plugins listed in the error file but then I just get the same errors on other ones:

VirtualFree() failed: [0x000001e7] Attempt to access invalid address.

[Mon Feb 22 17:41:42.241197 2021] [php7:error] [pid 528:tid 1876] [client ::1:64213] PHP Fatal error: Out of memory (allocated 10485760) (tried to allocate 131072 bytes) in C:\\xampp3\\htdocs\\wp-includes\\pomo\\mo.php on line 297, referer: http://localhost:8080/family-photo-shoot-gift-cards-evouchers/

VirtualAlloc() failed: [0x00000008] Not enough memory resources are available to process this command.


VirtualFree() failed: [0x000001e7] Attempt to access invalid address.

[Mon Feb 22 17:41:42.242194 2021] [php7:error] [pid 528:tid 1876] [client ::1:64213] PHP Fatal error: Out of memory (allocated 10485760) (tried to allocate 28672 bytes) in C:\\xampp3\\htdocs\\wp-includes\\pomo\\streams.php on line 173, referer: http://localhost:8080/family-photo-shoot-gift-cards-evouchers/

VirtualAlloc() failed: [0x00000008] Not enough memory resources are available to process this command.


VirtualFree() failed: [0x000001e7] Attempt to access invalid address.

[Mon Feb 22 17:41:42.495488 2021] [php7:error] [pid 528:tid 1876] [client ::1:64236] PHP Fatal error: Out of memory (allocated 2097152) (tried to allocate 2097152 bytes) in C:\\xampp3\\htdocs\\wp-content\\plugins\\quick-pagepost-redirect-plugin\\page_post_redirect_plugin.php on line 1211, referer: http://localhost:8080/family-photo-shoot-gift-cards-evouchers/

VirtualAlloc() failed: [0x00000008] Not enough memory resources are available to process this command.


VirtualFree() failed: [0x000001e7] Attempt to access invalid address.

[Mon Feb 22 17:41:43.072122 2021] [php7:error] [pid 528:tid 1876] [client ::1:64239] PHP Fatal error: Out of memory (allocated 23068672) (tried to allocate 4096 bytes) in C:\\xampp3\\htdocs\\wp-content\\plugins\\webappick-product-feed-for-woocommerce\\includes\\classes\\class-woo-feed-default-attributes.php on line 2276

VirtualAlloc() failed: [0x00000008] Not enough memory resources are available to process this command.


VirtualFree() failed: [0x000001e7] Attempt to access invalid address.


VirtualAlloc() failed: [0x00000008] Not enough memory resources are available to process this command.


VirtualFree() failed: [0x000001e7] Attempt to access invalid address.

[Mon Feb 22 17:41:43.075115 2021] [php7:error] [pid 528:tid 1876] [client ::1:64239] PHP Fatal error: Out of memory (allocated 23068672) (tried to allocate 102400 bytes) in C:\\xampp3\\htdocs\\wp-includes\\pomo\\streams.php on line 118

VirtualAlloc() failed: [0x00000008] Not enough memory resources are available to process this command.


VirtualAlloc() failed: [0x00000008] Not enough memory resources are available to process this command.

[Mon Feb 22 17:41:46.178590 2021] [php7:error] [pid 528:tid 1780] [client ::1:64250] PHP Fatal error: Out of memory (allocated 4194304) (tried to allocate 4194304 bytes) in C:\\xampp3\\htdocs\\wp-content\\plugins\\facebook-for-woocommerce\\vendor\\skyverge\\wc-plugin-framework\\woocommerce\\class-sv-wp-admin-message-handler.php on line 382
connersz
 
Posts: 5
Joined: 22. February 2021 14:59
XAMPP version: 3.2.2
Operating System: Windows 10

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

Postby Altrea » 22. February 2021 19:46

[Mon Feb 22 17:41:42.241197 2021] [php7:error] [pid 528:tid 1876] [client ::1:64213] PHP Fatal error: Out of memory (allocated 10485760) (tried to allocate 131072 bytes)
[Mon Feb 22 17:41:42.242194 2021] [php7:error] [pid 528:tid 1876] [client ::1:64213] PHP Fatal error: Out of memory (allocated 10485760) (tried to allocate 28672 bytes)
[Mon Feb 22 17:41:42.495488 2021] [php7:error] [pid 528:tid 1876] [client ::1:64236] PHP Fatal error: Out of memory (allocated 2097152) (tried to allocate 2097152 bytes)
[Mon Feb 22 17:41:43.072122 2021] [php7:error] [pid 528:tid 1876] [client ::1:64239] PHP Fatal error: Out of memory (allocated 23068672) (tried to allocate 4096 bytes)
[Mon Feb 22 17:41:43.075115 2021] [php7:error] [pid 528:tid 1876] [client ::1:64239] PHP Fatal error: Out of memory (allocated 23068672) (tried to allocate 102400 bytes)
[Mon Feb 22 17:41:46.178590 2021] [php7:error] [pid 528:tid 1780] [client ::1:64250] PHP Fatal error: Out of memory (allocated 4194304) (tried to allocate 4194304 bytes)

The values seem to be different, so i assume you don't have enough free RAM on your system or any other problem allocating RAM for PHP
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 10730
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

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

Postby connersz » 22. February 2021 22:14

Altrea wrote:
[Mon Feb 22 17:41:42.241197 2021] [php7:error] [pid 528:tid 1876] [client ::1:64213] PHP Fatal error: Out of memory (allocated 10485760) (tried to allocate 131072 bytes)
[Mon Feb 22 17:41:42.242194 2021] [php7:error] [pid 528:tid 1876] [client ::1:64213] PHP Fatal error: Out of memory (allocated 10485760) (tried to allocate 28672 bytes)
[Mon Feb 22 17:41:42.495488 2021] [php7:error] [pid 528:tid 1876] [client ::1:64236] PHP Fatal error: Out of memory (allocated 2097152) (tried to allocate 2097152 bytes)
[Mon Feb 22 17:41:43.072122 2021] [php7:error] [pid 528:tid 1876] [client ::1:64239] PHP Fatal error: Out of memory (allocated 23068672) (tried to allocate 4096 bytes)
[Mon Feb 22 17:41:43.075115 2021] [php7:error] [pid 528:tid 1876] [client ::1:64239] PHP Fatal error: Out of memory (allocated 23068672) (tried to allocate 102400 bytes)
[Mon Feb 22 17:41:46.178590 2021] [php7:error] [pid 528:tid 1780] [client ::1:64250] PHP Fatal error: Out of memory (allocated 4194304) (tried to allocate 4194304 bytes)

The values seem to be different, so i assume you don't have enough free RAM on your system or any other problem allocating RAM for PHP



I had about 25gb system RAM available at the time I ran this.
connersz
 
Posts: 5
Joined: 22. February 2021 14:59
XAMPP version: 3.2.2
Operating System: Windows 10

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

Postby Altrea » 22. February 2021 23:13

WHat is phpinfo() showing about your memory_limit setting?
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 10730
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

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

Postby connersz » 23. February 2021 00:23

Altrea wrote:WHat is phpinfo() showing about your memory_limit setting?


I have absolutely no idea how to use that but the problem is definitely with Xampp, as I've moved everything over to Wamp and the issue has gone.
connersz
 
Posts: 5
Joined: 22. February 2021 14:59
XAMPP version: 3.2.2
Operating System: Windows 10


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 71 guests