From: Grzegorz Jaśkiewicz <gryzman@gmail.com>
To: Grant Masan <grant.massan@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Problem with database performance, Debian 4gb ram ?
Date: Mon, 2 Nov 2009 14:19:47 +0000
Message-ID: <2f4958ff0911020619yc7ed6e6u74ff6a01cb7ce98c@mail.gmail.com> (raw)
In-Reply-To: <c09b5d640911020616t7177a7b9sb4b5f285d99e7c05@mail.gmail.com>
References: <c09b5d640911020616t7177a7b9sb4b5f285d99e7c05@mail.gmail.com>
On Mon, Nov 2, 2009 at 2:16 PM, Grant Masan <grant.massan@gmail.com> wrote:
> Hi Hi all,
>
> I have now readed many many forums and tried many different solutions and I
> am not getting good performance to database. My server is Debian linux, with
> 4gb ram, there is also java application and I am giving to that 512mb
> (JAVA_OPTS) memory. In database there is now like 4milj rows. What should I
> do better.
>
>
I would rather start to look at queries performance.
What's the size of db ?
select pg_size_pretty(pg_database_size('yourDbName'));
start logging queries, with time of execution, to see which ones are causing
problems.
--
GJ
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: gryzman@gmail.com, grant.massan@gmail.com
Subject: Re: Problem with database performance, Debian 4gb ram ?
In-Reply-To: <2f4958ff0911020619yc7ed6e6u74ff6a01cb7ce98c@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox