473,320 Members | 1,940 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Memory limit troubles on XP(sp3) with PHP5.2.6


Hi group,

I have an annoying "Out of memory" problem I cannot solve.

Here is the error:
Fatal error: Out of memory (allocated 2028994560) (tried to allocate 35
bytes) in C:\Program Files\Apache Software
Foundation\Apache2.2\htdocs\wav_edit\WavForgeErwin .php on line 95

The PHP file in question DOES need a lot of memory for soundeditting.
My problem is I cannot seem to increase the memorylimit.

I setted in php.ini:
memory_limit = 8000000000
and
memory_limit = 8G
and
memory_limit = 4G
(And restarted Apache)

But all fail around the 2G mentioned above.

I tried php-cgi too:
C:\php>php-cgi.exe -c C:\php -f "C:\Program Files\Apache Software
Foundation\Apache2.2\htdocs\wav_edit\index.php"

But that gave excactly the same error.

I am running:
PHP5.2.6
Apache 2.2
XP prof (SP3) with 4G mem (3.2G adressable)

In Apache conf I have:

# For PHP 5 do something like this:
LoadModule php5_module "c:/php/php5apache2_2.dll"
AddType application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "C:/php"
As far as I can see PHP in Apache cannot adres more than 2G.

I COULD approach my current problem in another way (cut the file in
little pieces), but that will be a lot of work, since I also have to
change a lot of cuepoints from other sources.

So I hope somebody can help me increasing the memorylimit.

Thanks for your time.

Regards,
Erwin Moller

--
============================
Erwin Moller
Now dropping all postings from googlegroups.
Why? http://improve-usenet.org/
============================
Aug 19 '08 #1
4 2625
On 19 Aug, 10:28, Erwin Moller
<Since_humans_read_this_I_am_spammed_too_m...@spam yourself.comwrote:
Hi group,

I have an annoying "Out of memory" problem I cannot solve.

Here is the error:
Fatal error: Out of memory (allocated 2028994560) (tried to allocate 35
bytes) in C:\Program Files\Apache Software
Foundation\Apache2.2\htdocs\wav_edit\WavForgeErwin .php on line 95
So that's 1.9 Gb
I setted in php.ini:
memory_limit = 8000000000
8Gb
XP prof (SP3) with 4G mem (3.2G adressable)
So with only 3.2 Gb physically available, how do you expect to
allocate 8Gb?

You are also running into a limit on the intel/PC architecture that
more than 4Gb of memory needs special handling (typically PAE) - and
cannot be allocated as a contigious block (think 32-bit numbers). In
practice ISR that there is a lower limit on XP - something like 3Gb -
a quick google turned up this:

http://www.codinghorror.com/blog/archives/000811.html

If you really need to edit such large files then you'll need to switch
to a 64-bit OS running on fully 64-bit hardware.

C.
Aug 19 '08 #2

Erwin Moller schreef:
>
Hi group,

I have an annoying "Out of memory" problem I cannot solve.

Here is the error:
Fatal error: Out of memory (allocated 2028994560) (tried to allocate 35
bytes) in C:\Program Files\Apache Software
Foundation\Apache2.2\htdocs\wav_edit\WavForgeErwin .php on line 95

The PHP file in question DOES need a lot of memory for soundeditting.
My problem is I cannot seem to increase the memorylimit.

I setted in php.ini:
memory_limit = 8000000000
and
memory_limit = 8G
and
memory_limit = 4G
(And restarted Apache)

But all fail around the 2G mentioned above.

I tried php-cgi too:
C:\php>php-cgi.exe -c C:\php -f "C:\Program Files\Apache Software
Foundation\Apache2.2\htdocs\wav_edit\index.php"

But that gave excactly the same error.

I am running:
PHP5.2.6
Apache 2.2
XP prof (SP3) with 4G mem (3.2G adressable)

In Apache conf I have:

# For PHP 5 do something like this:
LoadModule php5_module "c:/php/php5apache2_2.dll"
AddType application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "C:/php"
As far as I can see PHP in Apache cannot adres more than 2G.

I COULD approach my current problem in another way (cut the file in
little pieces), but that will be a lot of work, since I also have to
change a lot of cuepoints from other sources.

So I hope somebody can help me increasing the memorylimit.

Thanks for your time.

Regards,
Erwin Moller
Hi,

Update: I rewote my class and now it is less memory hungy (and doesn't
fail anymore because of the memorylimit.)
So my problem is solved, but I still wonder if PHP is limitted to 2GB
somehow.

Regards,
Erwin Moller

--
============================
Erwin Moller
Now dropping all postings from googlegroups.
Why? http://improve-usenet.org/
============================
Aug 19 '08 #3
Erwin Moller wrote:
>
Erwin Moller schreef:
>>
Hi group,

I have an annoying "Out of memory" problem I cannot solve.

Here is the error:
Fatal error: Out of memory (allocated 2028994560) (tried to allocate
35 bytes) in C:\Program Files\Apache Software
Foundation\Apache2.2\htdocs\wav_edit\WavForgeErwi n.php on line 95

The PHP file in question DOES need a lot of memory for soundeditting.
My problem is I cannot seem to increase the memorylimit.

I setted in php.ini:
memory_limit = 8000000000
and
memory_limit = 8G
and
memory_limit = 4G
(And restarted Apache)

But all fail around the 2G mentioned above.

I tried php-cgi too:
C:\php>php-cgi.exe -c C:\php -f "C:\Program Files\Apache Software
Foundation\Apache2.2\htdocs\wav_edit\index.php"

But that gave excactly the same error.

I am running:
PHP5.2.6
Apache 2.2
XP prof (SP3) with 4G mem (3.2G adressable)

In Apache conf I have:

# For PHP 5 do something like this:
LoadModule php5_module "c:/php/php5apache2_2.dll"
AddType application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "C:/php"
As far as I can see PHP in Apache cannot adres more than 2G.

I COULD approach my current problem in another way (cut the file in
little pieces), but that will be a lot of work, since I also have to
change a lot of cuepoints from other sources.

So I hope somebody can help me increasing the memorylimit.

Thanks for your time.

Regards,
Erwin Moller

Hi,

Update: I rewote my class and now it is less memory hungy (and doesn't
fail anymore because of the memorylimit.)
So my problem is solved, but I still wonder if PHP is limitted to 2GB
somehow.

Regards,
Erwin Moller
PHP is not limited to anything, but no 32-bit Windows application can
use more then 2Gb of memory. You can allocate to your script more then
2Gb if you used it on OS that can handle more memory per process.
Aug 19 '08 #4

Sashka Mish schreef:
Erwin Moller wrote:
>>
Erwin Moller schreef:
>>>
Hi group,

I have an annoying "Out of memory" problem I cannot solve.

Here is the error:
Fatal error: Out of memory (allocated 2028994560) (tried to allocate
35 bytes) in C:\Program Files\Apache Software
Foundation\Apache2.2\htdocs\wav_edit\WavForgeErw in.php on line 95

The PHP file in question DOES need a lot of memory for soundeditting.
My problem is I cannot seem to increase the memorylimit.

I setted in php.ini:
memory_limit = 8000000000
and
memory_limit = 8G
and
memory_limit = 4G
(And restarted Apache)

But all fail around the 2G mentioned above.

I tried php-cgi too:
C:\php>php-cgi.exe -c C:\php -f "C:\Program Files\Apache Software
Foundation\Apache2.2\htdocs\wav_edit\index.php "

But that gave excactly the same error.

I am running:
PHP5.2.6
Apache 2.2
XP prof (SP3) with 4G mem (3.2G adressable)

In Apache conf I have:

# For PHP 5 do something like this:
LoadModule php5_module "c:/php/php5apache2_2.dll"
AddType application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "C:/php"
As far as I can see PHP in Apache cannot adres more than 2G.

I COULD approach my current problem in another way (cut the file in
little pieces), but that will be a lot of work, since I also have to
change a lot of cuepoints from other sources.

So I hope somebody can help me increasing the memorylimit.

Thanks for your time.

Regards,
Erwin Moller

Hi,

Update: I rewote my class and now it is less memory hungy (and doesn't
fail anymore because of the memorylimit.)
So my problem is solved, but I still wonder if PHP is limitted to 2GB
somehow.

Regards,
Erwin Moller
PHP is not limited to anything, but no 32-bit Windows application can
use more then 2Gb of memory. You can allocate to your script more then
2Gb if you used it on OS that can handle more memory per process.
Thanks Sashka, that must be the resaon then. :-)
Now you tell me, I am quite sure I heard this somewhere before. (I
should fix my own memory.)
Thanks for your time.

Regards,
Erwin Moller

--
============================
Erwin Moller
Now dropping all postings from googlegroups.
Why? http://improve-usenet.org/
============================
Aug 20 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: =?Utf-8?B?RG91Zw==?= | last post by:
Automatic Update has started installing XP SP3 on my Dell P4-2800 running XP Home. It has been at the same point "Finishing Installation" with details of "Running Processes after install" for over...
2
by: =?Utf-8?B?WmFjaA==?= | last post by:
today i just downloaded and tryed to install the windows xp sp3, but when i started to install it the whole thing just closed and said 'the expected version of the product was not found on your...
6
by: Scott Gravenhorst | last post by:
Windows XP SP3 My application is set to open a SaveFile dialog when an exit is requested. When I click the app's close button, the save dialog opens, but when I click to change the folder, the...
1
by: =?Utf-8?B?ZHVjaG92bGV0?= | last post by:
I tried installing Norton SystemWorks Premier 2007 onto my new laptop which is running Windows XP SP3 Home Edition. The installation SEEMED to go ok but then when I tried doing the initial...
1
by: =?Utf-8?B?U2NvdHRpZQ==?= | last post by:
Checking the Registry, I find a software uninstalled some ago is still recorded under the Legacy entries. Any attempts to erase this from the registry is denied. Can these Legacies entries...
1
by: johnybravo | last post by:
1. Win XP SP3 2. Crystal Reports runtime CR9Runtime\cr9netredist.msi 3. MS VS 6.0 (Visual C++) After installing SP3 I get exception in source, row: hr =...
1
by: Cirene | last post by:
I'm thinking about installing XP SP3. Does it work pretty well with VS2008 SP1 and associated products (SQL Server 2005 SP2), etc...? Should I install XP SP3 before or after VS2008, VS2008 SP1,...
0
by: =?Utf-8?B?RGFuYSBHVg==?= | last post by:
We have installed SP3 on our computers here and a strange thing has happened. Mostly it's happening on laptops but I've seen it on a couple of our desktops as well. When I go to a website that has...
0
by: OldBirdman | last post by:
This used to work, but now it doesn't. From the Desktop, trying to click the folder in Microsoft Windows Network From the Laptop, again trying to click the folder in Network Clicking...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.