|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37845 Memory Leak on large # of files
Submitted: 2006-06-19 10:43 UTC Modified: 2006-06-19 10:56 UTC
From: rr at ronrosen dot com Assigned:
Status: Not a bug Package: Streams related
PHP Version: 5.1.4 OS: i386-redhat-linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: rr at ronrosen dot com
New email:
PHP Version: OS:


 [2006-06-19 10:43 UTC] rr at ronrosen dot com
When a large # of files are opend, written and closed, memory 
is never released. I tested it on windows and linux. Samve 
Problem. Strange thing, when the files are deleted on the 
linux version, the memory is released.

Reproduce code:
	$h = fopen('/home/testdir/testfile'.$i.'.html','w');





Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-06-19 10:51 UTC] rr at ronrosen dot com
one more thing. If the fwrite is eliminated, the mempry issuse 
does not happen.
 [2006-06-19 10:56 UTC]
The OS decides when memory mapped files are released.
 [2006-06-19 10:56 UTC]
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 19 21:01:32 2024 UTC