Page 1 of 1

Apache VirtualFree() and VirtualAlloc() errors in log

PostPosted: 19. May 2021 22:36
by axiomcs
After so many of these errors the website main page only shows as an all-white page. The server can be pinged at this point and can be remoted into. Svcs Apache and MySQL are running. Used memory is 20% at this point. Restarting the server brings the website back online. It is a Joomla site v3.9.26. (I use 2 services that text my cellphone when the site is down, but neither have done so when the site is all-white. I wouldn't mind a knowledgeable suggestion to monitor this Joomla site of some tool/application/extension, specifically when the main page of the site is all-white preferably with an sms notif. option.)
Getting hundreds of these errors in error.log for Apache:

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

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


I'm using Xammp v7.3.2 w/ Apache/2.4.38 (Win32) OpenSSL/1.1.1a PHP/7.3.2 on a Windows 2012 R2 server w/32GB of memory.

In php.ini: memory_limit=128MB when the problem occurred (which was twice, 5/17/21 and 5/19/21).
I have since changed it to 2048MB. The problem has not occurred, but it has been only 7 hours.
I'm wondering (from what I have read) if it is a memory leak. If it is, is it possible to see how much memory it (Apache/Joomla/PHP) is using at any given time? Does anyone think increasing the memory will solve the problem?
Any other suggestions (no changes have recently been made to the site or to the hardware/OS)?

Re: Apache VirtualFree() and VirtualAlloc() errors in log

PostPosted: 20. May 2021 10:50
by Nobbie
128MB is simply not enough for huge joomla software. As you already see, increasing the limit fixes the problem. There is no memory leak at all, your Computer has 32 GB of RAM and your configuration restricts the usage to only 0,128GB.

Re: Apache VirtualFree() and VirtualAlloc() errors in log

PostPosted: 20. May 2021 16:01
by axiomcs
The issue is still happening AFTER I have increased the memory_limit setting in php.ini to 2048MB.
Are you saying that the config in php.ini can be set to 2048MB, but php will only use 128MB.

(Your statement: "...your Computer has 32 GB of RAM and your configuration restricts the usage to only 0,128GB." needs clarity for me. Do you mean I can set the memory_limit to 2048MB and have Apache/PHP run with that or is it limited to 128MB even tho it is set to 2048MB?)

Re: Apache VirtualFree() and VirtualAlloc() errors in log

PostPosted: 20. May 2021 23:54
by Nobbie
Above you said, the problem has not occured now, for 7 hours. So actually you wanted to say the opposite, the problem occured at least again after 7 hours.

Sorry, but there is no way for us to find out remotely what iis wrong with your Joomla installation. If it still fails with 2Gb of memory, there is something wrong in the programming. Mostly due to bad plugins.

Re: Apache VirtualFree() and VirtualAlloc() errors in log

PostPosted: 21. May 2021 16:46
by axiomcs
Nothing in Joomla has changed since mid-April.

Re: Apache VirtualFree() and VirtualAlloc() errors in log

PostPosted: 21. May 2021 21:28
by Nobbie
And what has changed in Xampp 7.3.2, and why?

Re: Apache VirtualFree() and VirtualAlloc() errors in log

PostPosted: 25. May 2021 16:04
by axiomcs
XAMMP has not changed in 2 months