# Thin server processes slowly growing in RAM size

**URL:** <https://www.ruby-forum.com/t/thin-server-processes-slowly-growing-in-ram-size/155225>\
**Category:** Rails\
**Created:** [December 9, 2008, 4:43pm UTC](https://www.ruby-forum.com/t/thin-server-processes-slowly-growing-in-ram-size/155225 "2008-12-09T16:43:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![skirkpatrick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/73ab20/32.png) [@skirkpatrick](https://www.ruby-forum.com/u/skirkpatrick)\
**Post date:** [December 9, 2008, 4:43pm UTC](https://www.ruby-forum.com/t/thin-server-processes-slowly-growing-in-ram-size/155225/1 "2008-12-09T16:43:54Z")

</div>

When I initially start up my server I have two thin processes running  
that are only about 200M in size. They slowly creep up a few megs an  
hour until now a week later they are at 400M and 300M respectively.

I realize that my site ([http://wlodb.com](http://wlodb.com)) has some intensive pages that  
take a couple seconds to render (most notably [Compounds - Wonderland Online Database](http://wlodb.com/compounds)  
) but I’m wondering if this is normal? I usually get about 500,000 page  
hits a month.

Should I have a cronjob to restart my server processes once a week or  
should I just work on implementing some server side caching which should  
resolve the issue?

thanks!

---

<div class="post-metadata">

**Author:** ![skirkpatrick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/73ab20/32.png) [@skirkpatrick](https://www.ruby-forum.com/u/skirkpatrick)\
**Post date:** [December 12, 2008, 9:16pm UTC](https://www.ruby-forum.com/t/thin-server-processes-slowly-growing-in-ram-size/155225/2 "2008-12-12T21:16:58Z")

</div>

i guess nobody has as many problems as me. in general, do thin server  
processes normally keep growing and growing or do they cap out in size?

---

<div class="post-metadata">

**Author:** ![skirkpatrick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/73ab20/32.png) [@skirkpatrick](https://www.ruby-forum.com/u/skirkpatrick)\
**Post date:** [December 12, 2008, 10:21pm UTC](https://www.ruby-forum.com/t/thin-server-processes-slowly-growing-in-ram-size/155225/3 "2008-12-12T22:21:32Z")

</div>

Scott K. wrote:

> i guess nobody has as many problems as me. in general, do thin server  
> processes normally keep growing and growing or do they cap out in size?

Mine don’t grow in size… of course, mine arn’t 200mb.

---

<div class="post-metadata">

**Author:** ![skirkpatrick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/73ab20/32.png) [@skirkpatrick](https://www.ruby-forum.com/u/skirkpatrick)\
**Post date:** [December 12, 2008, 10:45pm UTC](https://www.ruby-forum.com/t/thin-server-processes-slowly-growing-in-ram-size/155225/4 "2008-12-12T22:45:05Z")

</div>

I would see if there are ways for you to implement caching … but it  
also seems like there is maybe a memory leak within your code causing  
some problems. I’m not expert, but those are my thoughts.

On Dec 9, 9:43 am, Scott K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![skirkpatrick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/73ab20/32.png) [@skirkpatrick](https://www.ruby-forum.com/u/skirkpatrick)\
**Post date:** [December 14, 2008, 4:38pm UTC](https://www.ruby-forum.com/t/thin-server-processes-slowly-growing-in-ram-size/155225/5 "2008-12-14T16:38:49Z")

</div>

Bobnation wrote:

> I would see if there are ways for you to implement caching … but it  
> also seems like there is maybe a memory leak within your code causing  
> some problems. I’m not expert, but those are my thoughts.
> 
> On Dec 9, 9:43ï¿½am, Scott K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

thanks for the replies. yea, i think there may be a memory leak. what  
do you think is the best way to narrow it down to a specific page?
