GuanglinDu / IPAMS

IPv4 Address Management System
MIT License
8 stars 4 forks source link

Memory consumption keeps increasing till the app crashes #3

Open GuanglinDu opened 9 years ago

GuanglinDu commented 9 years ago

The memory usage keeps going up after every refresh of the pages. It can reach as high as 15G Bytes and then my PC will respond very slowly. Have to kill it and restart the app. Do not know why at present.

GuanglinDu commented 9 years ago

one possible solution: That's Not a Memory Leak, It's Bloat https://blog.engineyard.com/2009/thats-not-a-memory-leak-its-bloat/

GuanglinDu commented 9 years ago

Solved by using gem will_paginate to paginate every 100 records. The large quantity (thousands) of retrieved records in the controller is the memory killer.