Strange memory behavior with rails - caching in connection?

Поиск
Список
Период
Сортировка
От Alex
Тема Strange memory behavior with rails - caching in connection?
Дата
Msg-id 8669e20c-b754-426b-8dad-17de9d5b123a@24g2000yqm.googlegroups.com
обсуждение исходный текст
Ответы Re: Strange memory behavior with rails - caching in connection?
Список pgsql-performance
I am using Postgres with Rails.  Each rails application "thread" is
actually a separate process (mongrel) with it's own connection.

Normally, the db connection processes (?) look something like this in
top:

15772 postgres  15   0  229m  13m  12m S    0  0.8   0:00.09 postgres:
db db [local]
idle

These quickly grow as the application is used to 50+ Mb per instance.

When I restart mongrel (the Rails application processes) these go back
down to their normal small size.  That makes me suspect this is not
normal caching and there is some sort of unhealthy leak going on.

Is there something Rails could be doing to cause these to grow?  Maybe
the connection is not being cleaned up properly?  Is there some sort
of connection cache going on?



В списке pgsql-performance по дате отправления:

Предыдущее
От: Alex
Дата:
Сообщение: Re: Poor query performance
Следующее
От: Suvankar Roy
Дата:
Сообщение: Re: Performance comparison between Postgres and Greenplum