rails application mysteriously takes a big chunk of memory

I seem to be getting a problem where my rails application seems to be leaking memory when I load a page. It starts off at about 737mb free. After I load my page it comes to about 603 mb free. When I restart the thin server the memory is restored, but thin does complain that it is waiting for a process to finish before killing the service and starting it.

Any ideas how I can go about finding where the leak is and fix it?

thanks

nayeem

Check for bad database queries that take a long time to execute and load more junk than you need.