Re: Server stops responding in every week

From: Andy Colson <andy(at)squeakycode(dot)net>
To: Andrus Moor <eetasoft(at)online(dot)ee>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Server stops responding in every week
Date: 2011-01-22 17:06:16
Message-ID: 4D3B0E88.3090303@squeakycode.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 01/22/2011 03:00 AM, Andrus Moor wrote:
> Andy,
>
>>> How to automatically re-start postgres service in every night ? Or is it
>>> better to switch to 32bit server?
>>
>> Neither. You need to fix the problem.
>
> How to configure postgres so that freeze issue can addressed ?
> E.q. if query runs more that 60 seconds, postgres dumps its status and long query reason .
> How to implement this ?
> No idea can log_statement=all help.
>
> Andrus.
>

Before we can fix the problem, we need to know what the problem is.

Wait until the server is really slow and having problems.

Then answer these questions:

Does ram using increase over the week?
Do you see "Idle in transaction" (probably in task manager)?

Show us:
select * from pg_stat_activity;
and
select * from pg_locks;

A little practice up front might help. When the system is broke, you can interrogate it to see what its doing. Hopefully we'll see something locked, and a bunch of things waiting.

-Andy

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Christian Ullrich 2011-01-22 17:40:36 Re: Using copy for WAL archiving on Windows
Previous Message Harald Armin Massa 2011-01-22 15:15:16 Re: Using copy for WAL archiving on Windows