Re: Performance Testing Metrics

From: "Kevin Grittner" <kgrittn(at)mail(dot)com>
To: "Harry" <shirlekar(dot)harshal(at)gmail(dot)com>,pgsql-general(at)postgresql(dot)org
Subject: Re: Performance Testing Metrics
Date: 2012-11-21 03:46:02
Message-ID: 20121121034603.156400@gmx.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Harry wrote:

> I need help to know how to get below things in Postgresql :-
> 1) No. of active connections?

Can be selected from pg_stat_activity. The exact query depends on
PostgreSQL version and on what you consider "active" to mean.

> 2) No. of non-responding connections?
> 3) Queries which are running beyond time(i.e. time which 'll set in
> database query)?

How will you set that? What is the difference from "non-responding
connections"?

> 5) Dead Locked Queries?
> 4) Process ID's of dead-locked queries?

Deadlocks are automatically resolved and logged. Check the log.

> 5) No. of queries in non-responding state?

How is that different from "non-responding connections" in 2?

You might want to check on the tools mentioned on this page:

http://wiki.postgresql.org/wiki/Monitoring

If points 2, 3, and the second point 5 are about blocking, you might
be interested in these pages:

http://wiki.postgresql.org/wiki/Lock_Monitoring
http://wiki.postgresql.org/wiki/Lock_dependency_information

-Kevin

Browse pgsql-general by date

  From Date Subject
Next Message Chris Angelico 2012-11-21 04:20:34 Re: Maintaining state across function calls
Previous Message Kevin Grittner 2012-11-21 02:26:30 Re: Maintaining state across function calls