Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory leak with find operation #86

Open
comcava opened this issue Feb 3, 2012 · 0 comments
Open

Memory leak with find operation #86

comcava opened this issue Feb 3, 2012 · 0 comments

Comments

@comcava
Copy link

comcava commented Feb 3, 2012

Hi all,
I explore memory consumtion problem in this place

while !finish_inner do

...

  l1 = LineItem.find(line_item_id)
  l2 = LineItem.find(next_item_id)              

...

end

memory will grow with speed 3Mb/each second
I ensure about release l1.l2 temp variables.

LineItem - usual data model with only text fields

Memory was released after exit in cycle
Unfortunatelly for me, my memory ending before cycle is done with Unable To allocate memory message.

VERSION = "0.2.3"
Rails 3.2.0
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]

UPDATE: Explore the same thing with Model.find(:all, ....) operations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant