#37577 [NEW]: Much Memory Usage while copy big files
| From: | petrich at tronic-media dot com | Date: | Wed, 24 May 2006 11:45:22 +0000 |
| Subject: | #37577 [NEW]: Much Memory Usage while copy big files | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-97502@lists.php.net to get a copy of this message | ||
From: petrich at tronic-media dot com
Operating system: Linux + Windows
PHP version: 5.1.4
PHP Bug Type: *General Issues
Bug description: Much Memory Usage while copy big files
Description:
------------
Not sure if it's a "bug or a feature",
but when copying a 70MB file via PHP's copy() function,
the php process will use nearly the same Memory.
I found a (closed) Bug Report (#29922) relatet to this Issue
(http://bugs.php.net/bug.php?id=29922),
it seems to be fixed long time ago, but in PHP 5.1.4 it is not.
Testet with PHP 5.1.4 (on Win-XP and Linux) as Apache2 Module. (All
extentins disabled + default php.ini-dist settings)
This Bug/Feature does'nt occur in php 4.3.3 (Win-XP as Apache2 Module).
Reproduce code:
---------------
<?php
copy('70MB.data','70MB.data.copy');
/* now look at the (linux) top listing for this Process to trace the
growing memmory usage */
?>
Expected result:
----------------
Less Memory Usage in the top listing.
Actual result:
--------------
Much Memory Usage in the top listing.
--
Edit bug report at http://bugs.php.net/?id=37577&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37577&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=37577&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37577&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=37577&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=37577&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=37577&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=37577&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=37577&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=37577&r=support
Expected behavior: http://bugs.php.net/fix.php?id=37577&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=37577&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=37577&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=37577&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37577&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=37577&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=37577&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=37577&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=37577&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=37577&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=37577&r=mysqlcfg