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

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

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

Postby sveny » 06. August 2018 14:25

Greetings,

we have a problem on our xampp setup which makes us sick. Our application breaks several times a day. Only a xampp restart does fix it for a moment. Unfortunately we are unable to fix this problem. This error comes:
Code: Select all
VirtualFree() failed: [0x000001e7] Attempt to access invalid address.
. We more than enough RAM unused when this error commes up. The application thread also does not hit the:
Code: Select all
memory_limit=3968M
The amount of memory which is unable to alocate is always changing. The amount of memory which is unable to alocate is small (1-50 MB) compared to the memory_limit.

Setup:

XAMPP: 3.2.2
PHP: 7.2.7
OS: Windows Server 2012 RC Standard x64
Server:Virtualized - Mware Virtual Plattform
Server-Hardware: 8x Intel Xeon E5-2667 v2 @ 3,30 GHz, 32GB RAM


#1
Code: Select all
[Fri Aug 03 07:59:13.943291 2018] [php7:error] [pid 5896:tid 1440] [client XXX.XXX.XXX.XXX:XXXXX] PHP Fatal error:  Out of memory (allocated 18874368) (tried to allocate 802816 bytes) in C:\\xampp\\htdocs\\MyApp\\app\\vendor\\yiisoft\\yii2-debug\\LogTarget.php on line 56, referer: http://XXX.XXX.XXX.XXX/

VirtualAlloc() failed: [0x00000008] Not enough storage is available to process this command.
VirtualFree() failed: [0x000001e7] Attempt to access invalid address.
VirtualAlloc() failed: [0x00000008] Not enough storage is available to process this command.


#2

Code: Select all
[Fri Aug 03 07:59:14.052668 2018] [php7:error] [pid 5896:tid 1552] [client XXX.XXX.XXX.XXX:XXXXX] PHP Fatal error:  Out of memory (allocated 48234496) (tried to allocate 6160384 bytes) in C:\\xampp\\htdocs\\MyApp\\app\\vendor\\yiisoft\\yii2-debug\\LogTarget.php on line 64, referer: http://XXX.XXX.XXX.XXX/

VirtualAlloc() failed: [0x00000008] Not enough storage is available to process this command.
VirtualFree() failed: [0x000001e7] Attempt to access invalid address.


Related topics:
- https://www.apachelounge.com/viewtopic.php?p=36766
- https://www.apachelounge.com/viewtopic.php?t=6855
- https://stackoverflow.com/questions/444 ... -process-t
- viewtopic.php?t=74738&p=253459
- https://serverfault.com/questions/80701 ... -process-t

Please let me know if you guys need some more details for reproducing this problem. Any help would be appreciated.
sveny
 
Posts: 2
Joined: 06. August 2018 13:46
XAMPP version: 3.2.2
Operating System: Windows 10

Re: VirtualFree() failed: [0x000001e7] Attempt to access inv

Postby Nobbie » 06. August 2018 19:23

Xampp for Windows is delivered in a 32bit flavour. In a 32bit environment each process cannot have more memory than 2GB (theoretically it could have 4GB, but this would not leave any space for system needs, therefore it is limited to 2GB).

Due to this fact, it is totally useless to assign such a memory limit as you did:

Code: Select all
memory_limit=3968M


Probably PHP will convert this invalid setting to any valid number, but i cannot tell which limit finally will be used. Anyway, this is useless and you *should* apply a limit beyond 2GB (i.e. 2048M or 2000M, i dont know if conversion is based dual or decimal). In any case, to apply a proper value for memory_limit, i would try a number a little smaller than 2000, just be save, For example:

Code: Select all
memory_limit=1996M


Restart Apache and try again.

If this also fails, obviously your Application needs to much memory, then you have to switch to a 64bit installation. Xampp does not support 64bit on Windows, you should switch over to Linux in that case, or use another stack than Xampp.
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04

Re: VirtualFree() failed: [0x000001e7] Attempt to access inv

Postby sveny » 09. August 2018 14:47

@Nobbie,

thanks for you answer. Unfortunately, setting memory_limit=1996M did not fix the problem.

Do you have any other ideas how to fix it? Please let me know if you guys additional information for reproducing.
sveny
 
Posts: 2
Joined: 06. August 2018 13:46
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 143 guests