Uri, how would you change the original code to get it to free up memory? I've run into this issue myself quite a few times. I've also seen perl consume an entire cpu core without even trying. Could you rework the original scriptlet to show how you would free the memory at the end or direct us to a resource that explains this behavior so that we can have more efficient scripts?
Often in the business world admins will see the resources that perl is using and balk saying that it is taking up too many resources. I'd like to be able to minimize the footprint of my scripts. On Wed, May 18, 2011 at 11:22 PM, Uri Guttman <u...@stemsystems.com> wrote: > >>>>> "JG" == Jim Green <student.northwest...@gmail.com> writes: > > JG> On 18 May 2011 20:39, Shawn H Corey <shawnhco...@ncf.ca> wrote: > >> On 11-05-18 08:36 PM, Jim Green wrote: > >>> > >>> is this the same for other language like c++ or java? > >> > >> For all processes. That's why deamons periodically respawn; to clean > up > >> messes like this. > > JG> Thank you! I just wish this is not a deficiency in Perl language > itself. > JG> If it is the same for other language, I am happy! > > there are many ways to leak and waste ram. some langs have garbage > collection which is safer than perl's reference counting for ram > cleanup. but almost all serious leaks are the fault of the coder. and > you can waste ram in any language just with poor coding. nothing can > stop a bad coder from building up ginormous data structures and never > freeing them and always adding more to them. seen it many times. just > poor designs and bad code. perl is no more or less susceptible to that > issue. > > uri > > -- > Uri Guttman ------ u...@stemsystems.com -------- http://www.sysarch.com-- > ----- Perl Code Review , Architecture, Development, Training, Support > ------ > --------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com--------- > > -- > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > For additional commands, e-mail: beginners-h...@perl.org > http://learn.perl.org/ > > >