The most effective solution to PHP running errors fatal error:out of memory (allocated 6029312)
Fatal Error:out of memory (allocated 786432) (tried to allocate 98304 bytes) in H:\freehost\zhengbao2\web\includes\lib_co mmon.php on line 744
Question: 786432 refers to 786432bytes, that is: 768MB 98304 bytes=96mb that 0.75M is how to calculate out.
Correct answer: 786432BYTES=768KB=0.75MB 98304bytes=96kb=0.09mb?
Minimum is bit < second byte (byte) <KB<MB<GB<TB
One byte = 8 bits
1kb=1024b (bytes)
1mb=1024kb
1gb=1024mb
1tb=1024gb
Thousand, 1kb=2 of the 10 Times Square =1024b,
Trillion, the 1mb=2 of the 20-time Square =1024*1024b=1024kb,
Kat, 1gb=2 's 30-time Square =1024*1024*1024B=1024MB,
Too, 1tb=2 's 40-Time Square =1024*1024*1024*1024B=1024GB,
Pat, 1pb=2 of the 50-time Square =1024*1024*1024*1024*1024B=1024TB,
AI, 1eb=2 's 60-time Square =1024*1024*1024*1024*1024*1024B=1024PB,
1zb=2, 70 Times Square =1024*1024*1024*1024*1024*1024*1024b=1024eb,
Yao, 1yb=2 's 80-time Square =1024*1024*1024*1024*1024*1024*1024*1024b=1024zb.&NBSP;
An error occurred on a customer's web site today. The program is PHP. After Baidu a bit. Indicates that there is not enough memory. In the file translation means: Insufficient memory (allocation 786432) (trying to allocate 98304 bytes)
means trying to allocate 98MB of memory. But generally PHP is set to allow only 0.75M memory to be assigned to PHP programs
Workaround: Open php.ini Modify memory_limit = This line
Adjust according to server configuration
configured memory usage size modified after restart Iis/apache
Issue resolution ^ ^
Php5.2.3-win32 This version has a very serious bug, that is, the maximum memory set to 1024M, but PHP actually returned only 2 m, often return the following error:
PHP Fatal Error:out of memory (allocated 1048576) (tried to allocate 393216 bytes)
PHP Fatal error:out of memory (allocated 1048576) (tried to allocate 393216 bytes)
PHP Fatal error:out of memory (allocated 1048576) (tried to allocate 393216 bytes)
php Fatal error:out of M Emory (allocated 1048576) (tried to allocate 393216 bytes)
PHP Fatal error:out of memory (allocated 786432) (tried to Allocate 393216 bytes)
PHP Fatal error:out of memory (allocated 1310720) (tried to allocate 393216 bytes)
This is the official bug report. This bug only appears in the Windows version, and the Linux version does not have this bug.
The most effective solution to PHP run error fatal error:out of memory (allocated 786432) (tried to allocate 98304 bytes) in H:\freehost\zhengbao2\web \includes\lib_common.php on line 744