Re: postgresql + apache under heavy load - Mailing list pgsql-general

From Richard Huxton
Subject Re: postgresql + apache under heavy load
Date
Msg-id 200401211653.26565.dev@archonet.com
Whole thread Raw
In response to postgresql + apache under heavy load  (Alex Madon <alex.madon@bestlinuxjobs.com>)
Responses Re: postgresql + apache under heavy load
List pgsql-general
On Wednesday 21 January 2004 14:11, Alex Madon wrote:
> Hello,
> I am testing a web application (using the DBX PHP function to call a
> Postgresql backend).
> I have 375Mb RAM on my test home box.
[10 connections is fine, 100 is not]

> I tried to change some parameters in postgresql.conf
> max_connections = 32
> to max_connections = 8

Are you saying you had more than 8 connections open simultaneously? Are you
sure you restarted PG so that it noticed the new values? You can check config
settings with "show all;" from psql, or "show <setting>".

You'll want to use the "top" command to show the amount of memory each process
is using and then check the configuration/tuning articles at the following
URL:

http://www.varlena.com/varlena/GeneralBits/Tidbits/index.php

First step is to make sure your changes are being detected. Then, I'd guess
you want to set:
  max_connections
  shared_buffers
  sort_mem
  vacuum_mem (less important)
and then adjust effective_cache_size so it matches your normal load.

--
  Richard Huxton
  Archonet Ltd

pgsql-general by date:

Previous
From: "Brian Maguire"
Date:
Subject: tablespaces a priority for 7.5?
Next
From: Ericson Smith
Date:
Subject: Re: postgresql + apache under heavy load