| Author |
Message |
montego Site Admin

Joined: Aug 29, 2004 Posts: 8625 Location: Arizona
|
Posted:
Thu May 29, 2008 6:03 am |
|
Just wanted to highlight an issue I just ran into while using this new feature now on my production site:
[Thu May 29 07:48:41 2008] [error] PHP Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 28564805 bytes) in /****/admin/modules/nukesentinel/ABDBDownload.php on line 110
Due to various reasons, I would rather not set a higher memory allocation using a php_flag within .htaccess (unless it can be targeted just to that script somehow). What I would like to suggest is that ABDBDownload.php be modified to make an attempt to change the max memory size IF that is even possible that late in the "game".
It looks as thought it is failing in the compression step. Or, I wonder if it would be possible to actually stream the I/O instead of requiring the whole file be read into memory at once. Sorry, don't know what is possible with gz. |
|
|
|
 |
BobMarion Former Admin in Good Standing

Joined: Oct 30, 2002 Posts: 1043 Location: RedNeck Land (known as Kentucky)
|
Posted:
Fri Jun 06, 2008 10:40 pm |
|
The file can be streamed but not as a .gz that I am aware of. It has to first be saved then compressed. Will look to see if I can make it a two step process, that way it would clear the memory between saving and compressing. |
|
|
|
 |
montego Site Admin

Joined: Aug 29, 2004 Posts: 8625 Location: Arizona
|
Posted:
Sat Jun 07, 2008 6:52 am |
|
Yeah, not sure either. I know within *nix you can use piped output to do this, but not sure if there is a PHP equivalent. |
|
|
|
 |
BobMarion Former Admin in Good Standing

Joined: Oct 30, 2002 Posts: 1043 Location: RedNeck Land (known as Kentucky)
|
Posted:
Thu Jun 19, 2008 9:32 pm |
|
|
|
 |
Guardian2003 Site Admin

Joined: Aug 28, 2003 Posts: 5823
|
Posted:
Fri Jun 20, 2008 12:37 pm |
|
|
|
 |
|
|
|
|