FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » backups with low memory
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
backups with low memory [message #160235] Mon, 10 August 2009 20:35 Go to next message
dfgngirl is currently offline  dfgngirl   United States
Messages: 87
Registered: December 2005
Karma: 0
Member
Hi,

is it possible to backup Fud with only 32mb of memory? As of my attempts both via the admin applet as well as the command-line my backups fail due to my hosting company's 32mb limit.

Is there a way for the script to use less memory and take more time? I'm obviously not familiar with memory allocation and so forth, so I understand this might not be possible.

Thanks.
Re: backups with low memory [message #160242 is a reply to message #160235] Tue, 11 August 2009 11:27 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Probably not. If you want you can try to add some unset() calls to the script to see if it would help.

This may also help to see how memory is allocated:
http://us3.php.net/manual/en/function.memory-get-usage.php
Re: backups with low memory [message #160243 is a reply to message #160235] Tue, 11 August 2009 14:56 Go to previous messageGo to next message
dfgngirl is currently offline  dfgngirl   United States
Messages: 87
Registered: December 2005
Karma: 0
Member
OK thanks.
Re: backups with low memory [message #160244 is a reply to message #160243] Tue, 11 August 2009 16:05 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Something else to try: Edit "mem_limit.inc", find this line and reduce its value:
$GLOBALS['BUF_SIZE'] = 2000000;

Re: backups with low memory [message #160249 is a reply to message #160244] Tue, 11 August 2009 18:59 Go to previous messageGo to next message
dfgngirl is currently offline  dfgngirl   United States
Messages: 87
Registered: December 2005
Karma: 0
Member
Thanks Frank, I'll try it.
Re: backups with low memory [message #160251 is a reply to message #160244] Tue, 11 August 2009 19:09 Go to previous message
dfgngirl is currently offline  dfgngirl   United States
Messages: 87
Registered: December 2005
Karma: 0
Member
naudefj wrote on Tue, 11 August 2009 12:05
Something else to try: Edit "mem_limit.inc", find this line and reduce its value:
$GLOBALS['BUF_SIZE'] = 2000000;



I just realized that I don't know what to replace that value with. 2000000 would seem to me to be 2mb. Am I right? Bluehost limits its vhosts to 32mb. Would I be increasing that value to 32000000? But shouldn't I be directing fud to try to use less memory, not more?
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: RDF & RSS Samples
Next Topic: Please delete this
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 03:30:03 GMT 2024

Total time taken to generate the page: 0.02731 seconds