postgresql 7.4.6 slowing down

Ask a Question related to PostgreSQL / PGSQL, Design and Development.

  1. #1

    Default postgresql 7.4.6 slowing down

    I'm using Fedora Core 2, apache 2.0 and postgresql 7.4.6.
    Recently, the application is slowing down. When I check the process
    using "top", sometimes postmaster process time is increasing and the
    process is never end, I think this cause the application slowing down
    and sometimes this process make the server slowing down and I have to
    restart postmaster.
    Is there somebody who experience the same problem? and what is the solution?


    Thank You,


    Frans

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

    Frans Guest

  2. Similar Questions and Discussions

    1. DB Slowing Down
      Hi, we have a database. not to big about 50 tables, 20m records. On a daily basis we update/insert/delete between 500k to 1M records in total. We...
    2. Illustartor is slowing down,WHY?
      As I ad more filters to my project I am noticing that Illustrator 10 is slowing down. Why? I tried lowering the memory on Illustator 10 by doing...
    3. Itunes 4.0.1 slowing down
      Hi all! I am on OS X.2.6, iMac Combo 700mhz, use iTunes 4.0.1. My HD has 4 partitions, the one with OS X has iTunes on it, of course, the iTunes...
    4. ASP.NET application slowing down
      We have written an ASP.NET application in VB connecting to a SQL Server database. It is run across an internal network at a client site, with...
    5. Computer Slowing Down
      i had a problem with this once it was due to my virus scanner,(and the computer was a little old) but once the virus scanner was removed it was all...
  3. #2

    Default Re: postgresql 7.4.6 slowing down

    How often are you running vacuumdb ?


    On Mon, 31 Jan 2005 08:28:28 +0700, Frans <fransgunawan@gmail.com> wrote:
    > I'm using Fedora Core 2, apache 2.0 and postgresql 7.4.6.
    > Recently, the application is slowing down. When I check the process
    > using "top", sometimes postmaster process time is increasing and the
    > process is never end, I think this cause the application slowing down
    > and sometimes this process make the server slowing down and I have to
    > restart postmaster.
    > Is there somebody who experience the same problem? and what is the solution?

    --
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~
    L. Friedman [email]netllama@gmail.com[/email]
    LlamaLand [url]http://netllama.linux-sxs.org[/url]

    ---------------------------(end of broadcast)---------------------------
    TIP 6: Have you searched our list archives?

    [url]http://archives.postgresql.org[/url]

    Lonni J Friedman Guest

  4. #3

    Default Re: postgresql 7.4.6 slowing down

    On Mon, Jan 31, 2005 at 08:28:28AM +0700, Frans wrote:
    >
    > I'm using Fedora Core 2, apache 2.0 and postgresql 7.4.6.
    > Recently, the application is slowing down. When I check the process
    > using "top", sometimes postmaster process time is increasing and the
    > process is never end, I think this cause the application slowing down
    > and sometimes this process make the server slowing down and I have to
    > restart postmaster.
    Have you investigated what queries are running? See configuration
    settings like stats_command_string and log_min_duration_statement
    in the "Run-time Configuration" section of the "Server Run-time
    Environment" chapter of the documentation:

    [url]http://www.postgresql.org/docs/7.4/static/runtime-config.html[/url]

    --
    Michael Fuhr
    [url]http://www.fuhr.org/~mfuhr/[/url]

    ---------------------------(end of broadcast)---------------------------
    TIP 7: don't forget to increase your free space map settings

    Michael Fuhr Guest

  5. #4

    Default Re: postgresql 7.4.6 slowing down

    last vacuumdb was 5 or 6 months ago, but the transactions is not big
    (about 500-1000 transaction a day). The postmaster did not eating up
    memory, but eating up processor process.


    On Sun, 30 Jan 2005 22:13:49 -0700, Michael Fuhr <mike@fuhr.org> wrote:
    > On Mon, Jan 31, 2005 at 08:28:28AM +0700, Frans wrote:
    > >
    > > I'm using Fedora Core 2, apache 2.0 and postgresql 7.4.6.
    > > Recently, the application is slowing down. When I check the process
    > > using "top", sometimes postmaster process time is increasing and the
    > > process is never end, I think this cause the application slowing down
    > > and sometimes this process make the server slowing down and I have to
    > > restart postmaster.
    >
    > Have you investigated what queries are running? See configuration
    > settings like stats_command_string and log_min_duration_statement
    > in the "Run-time Configuration" section of the "Server Run-time
    > Environment" chapter of the documentation:
    >
    > [url]http://www.postgresql.org/docs/7.4/static/runtime-config.html[/url]
    >
    > --
    > Michael Fuhr
    > [url]http://www.fuhr.org/~mfuhr/[/url]
    >

    --
    Best Regards,

    Frans Gunawan
    [email]fransgunawan@gmail.com[/email]

    ---------------------------(end of broadcast)---------------------------
    TIP 8: explain analyze is your friend

    Frans Guest

  6. #5

    Default Re: postgresql 7.4.6 slowing down

    Frans wrote:
    > I'm using Fedora Core 2, apache 2.0 and postgresql 7.4.6.
    > Recently, the application is slowing down.
    You don't say what the application is.
    > When I check the process
    > using "top", sometimes postmaster process time is increasing and the
    > process is never end,
    The postmaster is supposed to run all the time - this is called a
    "daemon" in Unix terms. It is responsible for receiving new connections
    and handling them. Backends handling queries will look something like:
    postgres: richardh lamp [local] idle
    This is user richardh on database lamp connecting locally with no query
    in action.
    Now, if the processor-time-used column is increasing rapidly that would
    be unusual, but it should be running always.
    > I think this cause the application slowing down
    You haven't provided any convincing evidence of this - not yet.
    > and sometimes this process make the server slowing down and I have to
    > restart postmaster.
    This should not be required. Ever.
    > Is there somebody who experience the same problem? and what is the solution?
    You'll need to work through the following steps:
    1. Check there is nothing in the logs (messages/httpd/postgresql) that
    looks "bad" when the application is slow.

    2. Check your configuration settings for apache/postgresql - make sure
    they are reasonable for the workload. If you're not sure what settings
    you want for postgresql, perhaps read the performance tuning article here:
    [url]http://www.varlena.com/varlena/GeneralBits/Tidbits/index.php[/url]

    3. Check the output of "vmstat 1" when the server is busy and see what
    happens as it gets less busy. Especially check the disk i/o readings, as
    this is frequently the limiting factor in a database system.

    Once you have a good idea of what is happening, post again and we'll see
    how we can help.
    --
    Richard Huxton
    Archonet Ltd

    ---------------------------(end of broadcast)---------------------------
    TIP 5: Have you checked our extensive FAQ?

    [url]http://www.postgresql.org/docs/faq[/url]

    Richard Huxton Guest

  7. #6

    Default Re: postgresql 7.4.6 slowing down

    On Mon, Jan 31, 2005 at 01:20:39PM +0700, Frans wrote:
    > last vacuumdb was 5 or 6 months ago, but the transactions is not big
    > (about 500-1000 transaction a day). The postmaster did not eating up
    > memory, but eating up processor process.
    There's your problem. If you don't vacuumdb, then the files will get
    bigger and bigger and postgresql gets slower and slower. You probably
    need to do a VACUUM FULL and a full REINDEX to get everything back to
    normal...

    Maybe you should install the autovacuum if you're not going to schedule
    it normally...
    > On Sun, 30 Jan 2005 22:13:49 -0700, Michael Fuhr <mike@fuhr.org> wrote:
    > > On Mon, Jan 31, 2005 at 08:28:28AM +0700, Frans wrote:
    > > >
    > > > I'm using Fedora Core 2, apache 2.0 and postgresql 7.4.6.
    > > > Recently, the application is slowing down. When I check the process
    > > > using "top", sometimes postmaster process time is increasing and the
    > > > process is never end, I think this cause the application slowing down
    > > > and sometimes this process make the server slowing down and I have to
    > > > restart postmaster.
    > >
    > > Have you investigated what queries are running? See configuration
    > > settings like stats_command_string and log_min_duration_statement
    > > in the "Run-time Configuration" section of the "Server Run-time
    > > Environment" chapter of the documentation:
    > >
    > > [url]http://www.postgresql.org/docs/7.4/static/runtime-config.html[/url]
    Hope this helps,
    --
    Martijn van Oosterhout <kleptog@svana.org> [url]http://svana.org/kleptog/[/url]
    > Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
    > tool for doing 5% of the work and then sitting around waiting for someone
    > else to do the other 95% so you can sue them.
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.0.6 (GNU/Linux)
    Comment: For info see [url]http://www.gnupg.org[/url]

    iD8DBQFB/jS4Y5Twig3Ge+YRAopZAJ4/JByuRQTxjGG5PPwwe7IB0UVhGwCgmtbj
    27drwm9Wpa/ApRngZZ5BGdQ=
    =PXY9
    -----END PGP SIGNATURE-----

    Martijn van Oosterhout Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139