Unix Technical Forum

kill off idle connections?

This is a discussion on kill off idle connections? within the Pgsql Performance forums, part of the PostgreSQL category; --> Hi. Is there any way to kill idle connections using up memory on the server? A part of workload ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql Performance

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-19-2008, 11:09 AM
Sergei Shelukhin
 
Posts: n/a
Default kill off idle connections?

Hi. Is there any way to kill idle connections using up memory on the
server?
A part of workload on the server are users connecting randomly to a
web application, querying very large reports, saving them and then
closing the webapp.
Reports use a lot of memory and we have set the work_mem to 256Mb on a
4Gb RAM server.
However the problem is, over time idle connections that use a lot of
ram accumulate and I see a new user connecting (via stat news) and
issuing a query with rather awful performance, supposedly because it
goes to swap and he is not using those idle "pooled" connections.

I have checked that php application is closing connections just in
case, and it does. It;s something between pgsql and apache, when yoiu
restart apache the pool is reset and idle connections disappear.

Is there any way to kill them off manually?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-19-2008, 11:10 AM
Sergei Shelukhin
 
Posts: n/a
Default Re: kill off idle connections?

Hi. Can someone please help me with that?
We added a couple more applications to the same database and now there
are 25+ connections sitting there eating memory any given moment, all
of them idle with new clients generating more connections and memory
full all the time?
How do I kill them off?

Should I post to .general instead, I was told I should go
to .performance with performance related issues.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:25 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com