# Rails uses up to 700MB of RAM and works SLOWLY!

**URL:** <https://www.ruby-forum.com/t/rails-uses-up-to-700mb-of-ram-and-works-slowly/109065>\
**Category:** Rails\
**Created:** [July 11, 2007, 7:53am UTC](https://www.ruby-forum.com/t/rails-uses-up-to-700mb-of-ram-and-works-slowly/109065 "2007-07-11T07:53:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nikolay\_Kurtov](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/e47774/32.png) [@Nikolay\_Kurtov](https://www.ruby-forum.com/u/Nikolay_Kurtov)\
**Post date:** [July 11, 2007, 7:53am UTC](https://www.ruby-forum.com/t/rails-uses-up-to-700mb-of-ram-and-works-slowly/109065/1 "2007-07-11T07:53:53Z")

</div>

After a couple of hours running rails with development environment the  
process ruby.exe uses up to 700MB of RAM, and every refresh of  
localhost:3000 takes about a second on loading every file.  
Is it normal?  
Is there any way to reduce memory usage without regular restarts of  
the server?

---

<div class="post-metadata">

**Author:** ![Nikolay\_Kurtov](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/e47774/32.png) [@Nikolay\_Kurtov](https://www.ruby-forum.com/u/Nikolay_Kurtov)\
**Post date:** [July 11, 2007, 9:10am UTC](https://www.ruby-forum.com/t/rails-uses-up-to-700mb-of-ram-and-works-slowly/109065/2 "2007-07-11T09:10:00Z")

</div>

Hi, the memory management under Windows is terrible. Also, the Ruby  
performance will be very slow in this environment because of it. I  
would  
recommend using a Unix environment similar to Ubuntu. When you’re  
starting  
your server in development mode, it will reload all your models and  
controllers for every request. This is what this mode was implemented  
to do  
and you can find a reference in AWDwR2e. In any case, you can start up  
the  
server in production mode but you loose some of the log artifacts that  
the  
development mode gives you:  
script/server -e production

Good luck,

-Conrad

---

<div class="post-metadata">

**Author:** ![Nikolay\_Kurtov](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/e47774/32.png) [@Nikolay\_Kurtov](https://www.ruby-forum.com/u/Nikolay_Kurtov)\
**Post date:** [July 11, 2007, 10:06am UTC](https://www.ruby-forum.com/t/rails-uses-up-to-700mb-of-ram-and-works-slowly/109065/3 "2007-07-11T10:06:07Z")

</div>

Even it is unknown what yours RoR app do it is unlikely that it takes  
such large amount of RAM.  
Especially that it is increasing with the working hours.

You should find the bottleneck of you app and what is taking to long  
to process yours requests.  
Monitor the memory consumption over time and analyze the logs.  
Try to find the cause of problem using the elimination methodology.

There is something fishy in you app even the Win memory manager is not  
perfect.

We do not live in a perfect world but we can make it better 😉
