From ganesh@magnusquest.com Tue Oct 7 13:57:03 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 4077FD1B510 for ; Tue, 7 Oct 2003 13:57:03 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 08829-08 for ; Tue, 7 Oct 2003 10:56:20 -0300 (ADT) Received: from mqsporttec.com (evilgods.net [128.121.126.6]) by svr1.postgresql.org (Postfix) with ESMTP id ADBA2D1B4FC for ; Tue, 7 Oct 2003 10:56:15 -0300 (ADT) Received: from ganesh ([219.93.76.2]) by mqsporttec.com (8.12.9p1/8.11.6) with ESMTP id h97DuFBW017193 for ; Tue, 7 Oct 2003 21:56:18 +0800 (MYT) From: "Ganesan Kanavathy" To: Subject: Pgsql crashes frequently Date: Tue, 7 Oct 2003 21:56:44 +0800 Message-ID: <001b01c38cda$dd197c60$2300a8c0@ganesh> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_001C_01C38D1D.EB3CBC60" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=2.1 tagged_above=0.0 required=5.0 tests=HTML_60_70, RCVD_IN_OSIRUSOFT_COM, RCVD_IN_RFCI X-Spam-Level: ** X-Archive-Number: 200310/74 X-Sequence-Number: 10635 This is a multi-part message in MIME format. ------=_NextPart_000_001C_01C38D1D.EB3CBC60 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit We are running Postgresql db and it crashes almost every hour Unable to load up pgsql after a crash. We need to restart the server to start back pg. What would be the cause of this problem. Please help. Regards, ganesh ------=_NextPart_000_001C_01C38D1D.EB3CBC60 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message
We are ru= nning=20 Postgresql db and it crashes almost every hour Unable to loa= d up=20 pgsql after a crash.
 
We need t= o restart=20 the server to start back pg.
 
What woul= d be the=20 cause of this problem. Please help.
 
Regards,
ganesh
 
 
------=_NextPart_000_001C_01C38D1D.EB3CBC60-- From scott.marlowe@ihs.com Tue Oct 7 14:45:29 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 17C84D1B4EF for ; Tue, 7 Oct 2003 14:45:29 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 18571-10 for ; Tue, 7 Oct 2003 11:44:44 -0300 (ADT) Received: from mail1.ihs.com (mail1.ihs.com [170.207.70.222]) by svr1.postgresql.org (Postfix) with ESMTP id 7DF9DD1B4E9 for ; Tue, 7 Oct 2003 11:44:39 -0300 (ADT) Received: from css120.ihs.com (css120.ihs.com [170.207.105.120]) by mail1.ihs.com (8.12.10/8.12.10) with ESMTP id h97EhwGQ019190; Tue, 7 Oct 2003 08:43:58 -0600 (MDT) Date: Tue, 7 Oct 2003 08:35:41 -0600 (MDT) From: "scott.marlowe" To: Ganesan Kanavathy Cc: Subject: Re: Pgsql crashes frequently In-Reply-To: <001b01c38cda$dd197c60$2300a8c0@ganesh> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-IHS-MailScanner: Found to be clean X-IHS-MailScanner-SpamCheck: X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/77 X-Sequence-Number: 10638 On Tue, 7 Oct 2003, Ganesan Kanavathy wrote: > We are running Postgresql db and it crashes almost every hour Unable to > load up pgsql after a crash. > > We need to restart the server to start back pg. > > What would be the cause of this problem. Please help. Bad hardware. Check for bad memory, CPU, or hard drive. Or, your machine is running low on memory and the kernel is killing processes randomly to free up memory. That's not as likely, but it does happen in some setups. www.memtest86.com for a decent free memory tester for X86 architecture. From ganesh@magnusquest.com Wed Oct 8 10:03:52 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id DC518D1B4E2 for ; Wed, 8 Oct 2003 10:03:52 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 21474-08 for ; Wed, 8 Oct 2003 07:03:06 -0300 (ADT) Received: from mqsporttec.com (evilgods.net [128.121.126.6]) by svr1.postgresql.org (Postfix) with ESMTP id 03484D1B528 for ; Wed, 8 Oct 2003 07:03:03 -0300 (ADT) Received: from ganesh ([219.93.76.2]) by mqsporttec.com (8.12.9p1/8.11.6) with ESMTP id h98A2g5E012710; Wed, 8 Oct 2003 18:02:44 +0800 (MYT) From: "Ganesan Kanavathy" To: "'scott.marlowe'" Cc: Subject: Re: Pgsql crashes frequently Date: Wed, 8 Oct 2003 18:03:12 +0800 Message-ID: <001601c38d83$66e63160$2300a8c0@ganesh> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0017_01C38DC6.75097160" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 In-Reply-To: X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/86 X-Sequence-Number: 10647 This is a multi-part message in MIME format. ------=_NextPart_000_0017_01C38DC6.75097160 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit When I check the logfile it is stated there: "pcMemoryCreate: shmget(key=5432001, size=1466368, 03600) failed: Invalid argument This error usually means that PostgreSQL's request for a shared memory segment exceeded your kernel's SHMMAX parameter. You can either reduce the request size or reconfigure the kernel with larger SHMMAX. To reduce the request size (currently 1466368 bytes), reduce PostgreSQL's shared_buffers parameter (currently 64) and/or its max_connections parameter (currently 32). If the request size is already small, it's possible that it is less than your kernel's SHMMIN parameter, in which case raising the request size or reconfiguring SHMMIN is called for. The PostgreSQL Administrator's Guide contains more information about shared memory configuration." I really got no idea what this means. How do I solve this? What SHMMAX and SHMMIN and how I calculate this value? I have a 1GB of memory. Regards, ganesh -----Original Message----- From: pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of scott.marlowe Sent: Tuesday, October 07, 2003 10:36 PM To: Ganesan Kanavathy Cc: pgsql-admin@postgresql.org Subject: Re: [ADMIN] Pgsql crashes frequently On Tue, 7 Oct 2003, Ganesan Kanavathy wrote: > We are running Postgresql db and it crashes almost every hour Unable > to load up pgsql after a crash. > > We need to restart the server to start back pg. > > What would be the cause of this problem. Please help. Bad hardware. Check for bad memory, CPU, or hard drive. Or, your machine is running low on memory and the kernel is killing processes randomly to free up memory. That's not as likely, but it does happen in some setups. www.memtest86.com for a decent free memory tester for X86 architecture. ---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faqs/FAQ.html ------=_NextPart_000_0017_01C38DC6.75097160 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message

When I check the logfile it is stated= =20 there:

"pcMemoryCreate: shmget(key=3D5432001, size=3D1466368, 03= 600)=20 failed: Invalid argument

This error usually means that PostgreSQL's= =20 request for a shared memory segment exceeded your kernel's SHMMAX=20 parameter.  You can either reduce the request size or reconfigure the= =20 kernel with larger SHMMAX.

To reduce the request size (currently 146= 6368=20 bytes), reduce PostgreSQL's shared_buffers parameter (currently 64) and/or = its=20 max_connections parameter (currently 32).

If the request size is alr= eady=20 small, it's possible that it is less than your kernel's SHMMIN parameter, i= n=20 which case raising the request size or reconfiguring SHMMIN is called=20 for.

The PostgreSQL Administrator's Guide contains more information = about=20 shared memory configuration."


I really got no idea what= this=20 means. How do I solve this?

What SHMMAX and SHMMIN and how I calcula= te=20 this value? I have a 1GB of=20 memory.


Regards,
ganesh






--= ---Original=20 Message-----
From: pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@p= ostgresql.org]=20 On Behalf Of scott.marlowe
Sent: Tuesday, October 07, 2003 10:36 PM
T= o:=20 Ganesan Kanavathy
Cc: pgsql-admin@postgresql.org
Subject: Re: [ADMIN]= =20 Pgsql crashes frequently


On Tue, 7 Oct 2003, Ganesan Kanavathy= =20 wrote:

> We are running Postgresql db and it crashes almost every= hour=20 Unable
> to load up pgsql after a crash.
> 
> We nee= d to=20 restart the server to start back pg.
> 
> What would be th= e=20 cause of this problem. Please help.

Bad hardware.  Check for ba= d=20 memory, CPU, or hard drive.

Or, your machine is running low on memor= y and=20 the kernel is killing
processes randomly to free up memory.  That's= not=20 as likely, but it does
happen in some setups.

www.memtest86.com f= or a=20 decent free memory tester for X86=20 architecture.


---------------------------(end of=20 broadcast)---------------------------
TIP 5: Have you checked our extens= ive=20 FAQ?

          &nb= sp;   =20 http://www.postgresql= .org/docs/faqs/FAQ.html

------=_NextPart_000_0017_01C38DC6.75097160-- From scott.marlowe@ihs.com Wed Oct 8 15:42:40 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id DF5D0D1B4EF for ; Wed, 8 Oct 2003 15:42:40 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 84221-04 for ; Wed, 8 Oct 2003 12:41:51 -0300 (ADT) Received: from mail1.ihs.com (mail1.ihs.com [170.207.70.222]) by svr1.postgresql.org (Postfix) with ESMTP id 00C6DD1B4E1 for ; Wed, 8 Oct 2003 12:41:47 -0300 (ADT) Received: from css120.ihs.com (css120.ihs.com [170.207.105.120]) by mail1.ihs.com (8.12.10/8.12.10) with ESMTP id h98FeaGQ014807; Wed, 8 Oct 2003 09:40:37 -0600 (MDT) Date: Wed, 8 Oct 2003 09:31:43 -0600 (MDT) From: "scott.marlowe" To: Ganesan Kanavathy Cc: Subject: Re: Pgsql crashes frequently In-Reply-To: <001601c38d83$66e63160$2300a8c0@ganesh> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-IHS-MailScanner: Found to be clean X-IHS-MailScanner-SpamCheck: X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/91 X-Sequence-Number: 10652 this page should have the information you need to fix that problem: http://www.postgresql.org/docs/7.3/static/kernel-resources.html Let me know if that doesn't take care of the issue. On Wed, 8 Oct 2003, Ganesan Kanavathy wrote: > When I check the logfile it is stated there: > > "pcMemoryCreate: shmget(key=5432001, size=1466368, 03600) failed: > Invalid argument > > This error usually means that PostgreSQL's request for a shared memory > segment exceeded your kernel's SHMMAX parameter. You can either reduce > the request size or reconfigure the kernel with larger SHMMAX. > > To reduce the request size (currently 1466368 bytes), reduce > PostgreSQL's shared_buffers parameter (currently 64) and/or its > max_connections parameter (currently 32). > > If the request size is already small, it's possible that it is less than > your kernel's SHMMIN parameter, in which case raising the request size > or reconfiguring SHMMIN is called for. > > The PostgreSQL Administrator's Guide contains more information about > shared memory configuration." > > I really got no idea what this means. How do I solve this? > > What SHMMAX and SHMMIN and how I calculate this value? I have a 1GB of > memory. > > Regards, > ganesh > > > > > > -----Original Message----- > From: pgsql-admin-owner@postgresql.org > [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of scott.marlowe > Sent: Tuesday, October 07, 2003 10:36 PM > To: Ganesan Kanavathy > Cc: pgsql-admin@postgresql.org > Subject: Re: [ADMIN] Pgsql crashes frequently > > > On Tue, 7 Oct 2003, Ganesan Kanavathy wrote: > > > We are running Postgresql db and it crashes almost every hour Unable > > to load up pgsql after a crash. > > > > We need to restart the server to start back pg. > > > > What would be the cause of this problem. Please help. > > Bad hardware. Check for bad memory, CPU, or hard drive. > > Or, your machine is running low on memory and the kernel is killing > processes randomly to free up memory. That's not as likely, but it does > happen in some setups. > > www.memtest86.com for a decent free memory tester for X86 architecture. > > > ---------------------------(end of broadcast)--------------------------- > TIP 5: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faqs/FAQ.html > > > From anis_wn@gawab.com Sat Oct 11 21:42:21 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 6D5BFD1B4EE for ; Sat, 11 Oct 2003 21:42:21 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 40960-02 for ; Sat, 11 Oct 2003 18:41:42 -0300 (ADT) Received: from gawab.com (unknown [204.97.230.36]) by svr1.postgresql.org (Postfix) with SMTP id 7FC92D1B4ED for ; Sat, 11 Oct 2003 18:41:31 -0300 (ADT) Received: (qmail 15481 invoked by uid 1004); 11 Oct 2003 21:43:22 -0000 Message-ID: <20031011214322.15480.qmail@gawab.com> Received: from 61.94.239.127 by www.gawab.com with HTTP; Sat, 11 Oct 2003 21:43:22 GMT From: "Anis W. Nugroho" To: "Postgre Admin" Subject: Re: Pgsql crashes frequently Date: Sat, 11 Oct 2003 21:43:22 GMT Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Originating-IP: [61.94.239.127] X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/127 X-Sequence-Number: 10688 If you're using Linus, change those settings (semaphores) with a root account. Edit /etc/sysctl.conf to add the setting below (adjust the value properly) kernel.shmmni = xxxx kernel.shmmax = xxxx Execute sysctl -p Good luck, Anis WN ________________________________ 15 Mbytes Free Web-based and POP3 Sign up now: http://www.gawab.com