eruby stuff with big arrays balloons apache memory use, and usagenever gets let go...

X

Xeno Campanoli

Say, I've got an analysis application using eruby on an internal site,
and it doesn't need to be perfect, but it is using a lot of memory, and
then it never lets it go. It's got some multi-dimensional arrays of
gobs of related classes, and I want to do it this way because all the
relationships are clear. It should just run, and then the memory should
get let go when I leave the routine:

def x
gro = Grove.new
markup = gro.domymainbit
return markup
end

but the memory eaten up in gro object never gets released apparently.
Can someone suggest a method to make sure gro, or apache lets all this
memory loose?
 
X

Xeno Campanoli

Xeno Campanoli wrote:

I guess I should add that I created all this code, I have control over
it, and it seems there must be something with the instantiation set that
is staying in memory, when I am presuming it will be garbage collected.
I am not using a memory preservation tool like mod_ruby, at least not
consciously, and I just checked and neither mod_ruby nor fastcgi are
listed by yum. I do have mod_perl in there. I may not be able to take
that out, as it is for somebody else's stuff.

xc
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,204
Messages
2,571,062
Members
47,669
Latest member
johnmaxwell

Latest Threads

Top