Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel(tm) v2.5.x
Author Message
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Thu May 29, 2008 6:03 am Reply with quote

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.

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
BobMarion
Former Admin in Good Standing



Joined: Oct 30, 2002
Posts: 1037
Location: RedNeck Land (known as Kentucky)

PostPosted: Fri Jun 06, 2008 10:40 pm Reply with quote

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.

_________________
Bob Marion
Codito Ergo Sum
http://www.nukescripts.net 
View user's profile Send private message Send e-mail Visit poster's website
montego







PostPosted: Sat Jun 07, 2008 6:52 am Reply with quote

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







PostPosted: Thu Jun 19, 2008 9:32 pm Reply with quote

Addressed in .19
 
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Fri Jun 20, 2008 12:37 pm Reply with quote

Outstanding!
 
View user's profile Send private message Send e-mail
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel(tm) v2.5.x

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©