Re: [Performance] Daily Crash

Lists: pgsql-performance
From: Aspire Something <sank89(at)sancharnet(dot)in>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: [Performance] Daily Crash
Date: 2003-02-27 14:44:54
Message-ID: 01c201c2de6e$e9b3aab0$c9c832c0@societykotla
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-performance

Dear Catalin,

What I understand from ur post is,
1. U are using PHP for connection. what version ??? assuming u are on PHP
version >4.2.X
2. Ur Postgresql server is not tuned to handle loads.

What U can try is ......

1.Make sure that ur PHP scripts close the connection when transaction is
complete (HOW??? see after pg_connect

U see a pg_close function of PHP)
a. Use pg_pconnect and forget about pg_connect and pg_close
2. Increse the limit of connection to be made to PostgreSQL this can be
done as said by Shridhar the default is 32
3. For God sake Upgrade to PostgreSQL 7.3.2 and PHP 4.3.1 you are missing a
lot with that old versions.

Regards,
V Kashyap

================================
Some people think it's holding on that makes one strong;
sometimes it's letting go.
================================


From: "Catalin" <catalin(at)cyber(dot)ro>
To: <pgsql-performance(at)postgresql(dot)org>
Subject: Re: [Performance] Daily Crash
Date: 2003-02-27 14:53:22
Message-ID: 000701c2de6f$f96f1ce0$0201a8c0@catalin
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-performance

i have php 4.2.3
i use pg_pConnect and no pg_Close.

thanks for yours advices.
i will upgrade to postgresql 7.2.3 asap
and see if there are improvments !

thanks again !

Catalin

----- Original Message -----
From: Aspire Something
To: pgsql-performance(at)postgresql(dot)org
Sent: Thursday, February 27, 2003 4:44 PM
Subject: Re: [PERFORM] [Performance] Daily Crash

Dear Catalin,

What I understand from ur post is,
1. U are using PHP for connection. what version ??? assuming u are on PHP
version >4.2.X
2. Ur Postgresql server is not tuned to handle loads.

What U can try is ......

1.Make sure that ur PHP scripts close the connection when transaction is
complete (HOW??? see after pg_connect

U see a pg_close function of PHP)
a. Use pg_pconnect and forget about pg_connect and pg_close
2. Increse the limit of connection to be made to PostgreSQL this can be
done as said by Shridhar the default is 32
3. For God sake Upgrade to PostgreSQL 7.3.2 and PHP 4.3.1 you are missing a
lot with that old versions.

Regards,
V Kashyap

================================
Some people think it's holding on that makes one strong;
sometimes it's letting go.
================================

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)


From: Josh Berkus <josh(at)agliodbs(dot)com>
To: "Catalin" <catalin(at)cyber(dot)ro>, <pgsql-performance(at)postgresql(dot)org>
Subject: Re: [Performance] Daily Crash
Date: 2003-02-27 16:53:08
Message-ID: 200302270853.08304.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-performance

Catalin,

> thanks for yours advices.
> i will upgrade to postgresql 7.2.3 asap
> and see if there are improvments !

Um, that's 7.2.4. 7.2.3 has a couple of bugs in it.

Also, you are going to have to edit your postgresql.conf file per the
suggestions already made on this list.

--
Josh Berkus
Aglio Database Solutions
San Francisco


From: "philip johnson" <philip(dot)johnson(at)atempo(dot)com>
To: "Catalin" <catalin(at)cyber(dot)ro>, <pgsql-performance(at)postgresql(dot)org>
Subject: Re: [Performance] Daily Crash
Date: 2003-02-27 18:51:01
Message-ID: NDBBJLHHAKJFNNCGFBHLMEKOEMAA.philip.johnson@atempo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-performance

pgsql-performance-owner(at)postgresql(dot)org wrote:
> i have php 4.2.3
> i use pg_pConnect and no pg_Close.
>
> thanks for yours advices.
> i will upgrade to postgresql 7.2.3 asap
> and see if there are improvments !
>
> thanks again !
>
> Catalin
>
> ----- Original Message -----
> From: Aspire Something
> To: pgsql-performance(at)postgresql(dot)org
> Sent: Thursday, February 27, 2003 4:44 PM
> Subject: Re: [PERFORM] [Performance] Daily Crash
>
>
> Dear Catalin,
>
>
> What I understand from ur post is,
> 1. U are using PHP for connection. what version ??? assuming u are on
> PHP version >4.2.X
> 2. Ur Postgresql server is not tuned to handle loads.
>
> What U can try is ......
>
> 1.Make sure that ur PHP scripts close the connection when
> transaction is complete (HOW??? see after pg_connect
>
> U see a pg_close function of PHP)
> a. Use pg_pconnect and forget about pg_connect and pg_close
> 2. Increse the limit of connection to be made to PostgreSQL this can
> be done as said by Shridhar the default is 32
> 3. For God sake Upgrade to PostgreSQL 7.3.2 and PHP 4.3.1 you are
> missing a lot with that old versions.
>
>
>
> Regards,
> V Kashyap
>
> ================================
> Some people think it's holding on that makes one strong;
> sometimes it's letting go.
> ================================
>
>
>
> ---------------------------(end of
> broadcast)--------------------------- TIP 2: you can get off all
> lists at once with the unregister command (send "unregister
> YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
>
> ---------------------------(end of
> broadcast)--------------------------- TIP 5: Have you checked our
> extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html

you can use no persistent link to database
see in php.ini

pgsql.allow_persistent = Off


From: "Catalin" <catalin(at)cyber(dot)ro>
To: <pgsql-performance(at)postgresql(dot)org>
Subject: Re: [Performance] Daily Crash
Date: 2003-02-27 20:19:42
Message-ID: 00be01c2de9d$8fd8b150$0201a8c0@catalin
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-performance

how often should i run VACUUM to keep the thing tunned ?

Catalin

----- Original Message -----
From: philip johnson
To: Catalin ; pgsql-performance(at)postgresql(dot)org
Sent: Thursday, February 27, 2003 8:51 PM
Subject: RE: [PERFORM] [Performance] Daily Crash

pgsql-performance-owner(at)postgresql(dot)org wrote:
> i have php 4.2.3
> i use pg_pConnect and no pg_Close.
>
> thanks for yours advices.
> i will upgrade to postgresql 7.2.3 asap
> and see if there are improvments !
>
> thanks again !
>
> Catalin
>
> ----- Original Message -----
> From: Aspire Something
> To: pgsql-performance(at)postgresql(dot)org
> Sent: Thursday, February 27, 2003 4:44 PM
> Subject: Re: [PERFORM] [Performance] Daily Crash
>
>
> Dear Catalin,
>
>
> What I understand from ur post is,
> 1. U are using PHP for connection. what version ??? assuming u are on
> PHP version >4.2.X
> 2. Ur Postgresql server is not tuned to handle loads.
>
> What U can try is ......
>
> 1.Make sure that ur PHP scripts close the connection when
> transaction is complete (HOW??? see after pg_connect
>
> U see a pg_close function of PHP)
> a. Use pg_pconnect and forget about pg_connect and pg_close
> 2. Increse the limit of connection to be made to PostgreSQL this can
> be done as said by Shridhar the default is 32
> 3. For God sake Upgrade to PostgreSQL 7.3.2 and PHP 4.3.1 you are
> missing a lot with that old versions.
>
>
>
> Regards,
> V Kashyap
>
> ================================
> Some people think it's holding on that makes one strong;
> sometimes it's letting go.
> ================================
>
>
>
> ---------------------------(end of
> broadcast)--------------------------- TIP 2: you can get off all
> lists at once with the unregister command (send "unregister
> YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
>
> ---------------------------(end of
> broadcast)--------------------------- TIP 5: Have you checked our
> extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html

you can use no persistent link to database
see in php.ini

pgsql.allow_persistent = Off


From: "Catalin" <catalin(at)cyber(dot)ro>
To: <pgsql-performance(at)postgresql(dot)org>
Subject: Re: [Performance] Daily Crash
Date: 2003-02-28 13:22:18
Message-ID: 005901c2df2c$6ae8ec40$0201a8c0@catalin
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-performance

so i did the server upgrade to postgresql 7.3.2
and tunned it like you ppl said.

it works great.
plus my DB on postgresql 7.0 had 640 MB, including indexes, etc (files)
now it has only 140MB.
this is much better !

thank you for your help !

Catalin

----- Original Message -----
From: Catalin
To: pgsql-performance(at)postgresql(dot)org
Sent: Thursday, February 27, 2003 10:19 PM
Subject: Re: [PERFORM] [Performance] Daily Crash

how often should i run VACUUM to keep the thing tunned ?

Catalin

----- Original Message -----
From: philip johnson
To: Catalin ; pgsql-performance(at)postgresql(dot)org
Sent: Thursday, February 27, 2003 8:51 PM
Subject: RE: [PERFORM] [Performance] Daily Crash

pgsql-performance-owner(at)postgresql(dot)org wrote:
> i have php 4.2.3
> i use pg_pConnect and no pg_Close.
>
> thanks for yours advices.
> i will upgrade to postgresql 7.2.3 asap
> and see if there are improvments !
>
> thanks again !
>
> Catalin
>
> ----- Original Message -----
> From: Aspire Something
> To: pgsql-performance(at)postgresql(dot)org
> Sent: Thursday, February 27, 2003 4:44 PM
> Subject: Re: [PERFORM] [Performance] Daily Crash
>
>
> Dear Catalin,
>
>
> What I understand from ur post is,
> 1. U are using PHP for connection. what version ??? assuming u are on
> PHP version >4.2.X
> 2. Ur Postgresql server is not tuned to handle loads.
>
> What U can try is ......
>
> 1.Make sure that ur PHP scripts close the connection when
> transaction is complete (HOW??? see after pg_connect
>
> U see a pg_close function of PHP)
> a. Use pg_pconnect and forget about pg_connect and pg_close
> 2. Increse the limit of connection to be made to PostgreSQL this can
> be done as said by Shridhar the default is 32
> 3. For God sake Upgrade to PostgreSQL 7.3.2 and PHP 4.3.1 you are
> missing a lot with that old versions.
>
>
>
> Regards,
> V Kashyap
>
> ================================
> Some people think it's holding on that makes one strong;
> sometimes it's letting go.
> ================================
>
>
>
> ---------------------------(end of
> broadcast)--------------------------- TIP 2: you can get off all
> lists at once with the unregister command (send "unregister
> YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
>
> ---------------------------(end of
> broadcast)--------------------------- TIP 5: Have you checked our
> extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html

you can use no persistent link to database
see in php.ini

pgsql.allow_persistent = Off

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)