Re: High CPU load on Postgres Server during Peak times!!!!

Поиск
Список
Период
Сортировка
Искать
От
Karl Denninger
Тема
Re: High CPU load on Postgres Server during Peak times!!!!
Дата
Msg-id
4ABA8A71.6010503@denninger.net
Ответ на
Список
Дерево обсуждения
High CPU load on Postgres Server during Peak times!!!! Shiva Raman <raman.shivag@gmail.com>
Re: High CPU load on Postgres Server during Peak times!!!! Andy Colson <andy@squeakycode.net>
Re: High CPU load on Postgres Server during Peak times!!!! Andy Colson <andy@squeakycode.net>
Re: High CPU load on Postgres Server during Peak times!!!! Shiva Raman <raman.shivag@gmail.com>
Re: High CPU load on Postgres Server during Peak times!!!! Andy Colson <andy@squeakycode.net>
Re: High CPU load on Postgres Server during Peak times!!!! Scott Marlowe <scott.marlowe@gmail.com>
Re: High CPU load on Postgres Server during Peak times!!!! Shiva Raman <raman.shivag@gmail.com>
Re: High CPU load on Postgres Server during Peak times!!!! "Dave Dutcher" <dave@tridecap.com>
Re: High CPU load on Postgres Server during Peak times!!!! Karl Denninger <karl@denninger.net>
Re: High CPU load on Postgres Server during Peak times!!!! Craig James <craig_james@emolecules.com>
Re: High CPU load on Postgres Server during Peak times!!!! Gerhard Wiesinger <lists@wiesinger.com>
Re: High CPU load on Postgres Server during Peak times!!!! Craig James <craig_james@emolecules.com>
Re: High CPU load on Postgres Server during Peak times!!!! Shiva Raman <raman.shivag@gmail.com>
Re: High CPU load on Postgres Server during Peak times!!!! Merlin Moncure <mmoncure@gmail.com>
Re: High CPU load on Postgres Server during Peak times!!!! Andy Colson <andy@squeakycode.net>
Re: High CPU load on Postgres Server during Peak times!!!! Karl Denninger <karl@denninger.net>
Re: High CPU load on Postgres Server during Peak times!!!! Praveen DS <praveen.ds@gmail.com>
Re: High CPU load on Postgres Server during Peak times!!!! "Fernando Hevia" <fhevia@ip-tel.com.ar>
Re: High CPU load on Postgres Server during Peak times!!!! Shiva Raman <raman.shivag@gmail.com>
Re: High CPU load on Postgres Server during Peak times!!!! "Fernando Hevia" <fhevia@ip-tel.com.ar>
Re: High CPU load on Postgres Server during Peak times!!!! Karl Denninger <karl@denninger.net>
Re: High CPU load on Postgres Server during Peak times!!!! Merlin Moncure <mmoncure@gmail.com>
Fernando Hevia wrote:
User Access
Total Number of Users is 500
Maximum number of Concurrent users will be 500 during peak time
Off Peak time the maximum number of concurrent user will be
around 150 to 200.
       
A connection pooler like pgpool or pgbouncer would considerably reduce the
burden on your system.
     
I am already using connection pooling in tomcat web server, so installing   
pgpool 
will help enhancing the performance ?Any changes i have to do in my   
application to  
include pgpool? 
   
There shouldn't be need for another pooling solution.
Anyway, you probably dont want 1800 concurrent connections on your database
server, nor even get near that number.

Check the number of actual connections with:  select count(*) from pg_stat_activity;

A vmstat run during high loads could provide a hindsight to if the number of
connections is straining your server.

If the number of connections is high (say over 200-300), try reducing the
pool size in Tomcat and see what happens.
You possibly could do fine with something between 50 and 100 connections.
 
I can second this - I have an EXTREMELY busy forum system using pgpool and during peak hours it runs very well within around 100 connections in use.

-- Karl
В списке pgsql-performance по дате отправления
От: Fernando Hevia
Дата:
От: Scott Marlowe
Дата:
FAQ