C
Chuck Mattern
I've been asked to take a look at some very badly written Perl in use on a
number of our servers. One of the issues is that as it runs it consumes more
and more memory. I've only had a chance to do a cursory read of the code but
one thing that intrigued me was a directive to use a module that was inside of
a loop, with each iteration the module was called again. Is it possible that
this is part of the memory consumption? Would each reference load a new copy
of the same module in another segment of memory leaving the previous copies in
memory as well or would the new one be ignored or would each new call overwrite
the previous copy?
Looking forward to the thoughts of group,
Chuck
number of our servers. One of the issues is that as it runs it consumes more
and more memory. I've only had a chance to do a cursory read of the code but
one thing that intrigued me was a directive to use a module that was inside of
a loop, with each iteration the module was called again. Is it possible that
this is part of the memory consumption? Would each reference load a new copy
of the same module in another segment of memory leaving the previous copies in
memory as well or would the new one be ignored or would each new call overwrite
the previous copy?
Looking forward to the thoughts of group,
Chuck