LockReplace: xid table corrupted

Started by Dronamraju Rajeshover 25 years ago5 messagesbugs
Jump to latest
#1Dronamraju Rajesh
drajesh80@yahoo.com

Hi There,

I have production systems running postgres for
24x7x365. But suddenly it stops serving the requests
but the postmaster does not die. I cant do select or
even say pgsql <database-name> until i kill postmaster
clear shared memory segments and restart it again. for
all the forth coming requests it says "sorry, too many
clients already".

My system config :-

os:- Red Hat linux 6.2
memory:- 1GB
cpu:- dual CPU
database:- Postgres 6.5.2 ( pl dont suggest to upgrade
to 7.0.2. once this problem is solved. then i can do
testing of my app with postgres 7.0.2)

command:- postmaster -i -N 256 -B 512

/usr/local/pgsql/server.log 2>&1 &

can anybody tell me why this happens and what the
solution is for this ????

Regards
Rajesh

__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Dronamraju Rajesh (#1)
Re: [BUGS] LockReplace: xid table corrupted

Dronamraju Rajesh <drajesh80@yahoo.com> writes:

database:- Postgres 6.5.2 ( pl dont suggest to upgrade
to 7.0.2. once this problem is solved. then i can do
testing of my app with postgres 7.0.2)

If you update to 7.0.3, you'll probably find this problem
goes away. It sounds to me like you are running into a bogus
debug check in the older code that assumed LockRelease should
never need to release more than a thousand locks.

If you don't want to update, try not touching 1000 tables in
the same transaction. I'm guessing you do a lot of large-object
slinging ... otherwise it's not that easy to get to 1000 ...

regards, tom lane

#3Dronamraju Rajesh
drajesh80@yahoo.com
In reply to: Tom Lane (#2)
Re: [BUGS] LockReplace: xid table corrupted

thanks tom....But strange thing is that my database
has only 15 tables totally...which are very small
too...

so how would be the way of me reaching to 1000
tables???

and why do i get an error message "sorry too many
clients" ???

Regards
Rajesh
--- Tom Lane <tgl@sss.pgh.pa.us> wrote:

Dronamraju Rajesh <drajesh80@yahoo.com> writes:

database:- Postgres 6.5.2 ( pl dont suggest to

upgrade

to 7.0.2. once this problem is solved. then i can

do

testing of my app with postgres 7.0.2)

If you update to 7.0.3, you'll probably find this
problem
goes away. It sounds to me like you are running
into a bogus
debug check in the older code that assumed
LockRelease should
never need to release more than a thousand locks.

If you don't want to update, try not touching 1000
tables in
the same transaction. I'm guessing you do a lot of
large-object
slinging ... otherwise it's not that easy to get to
1000 ...

regards, tom lane

__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/

#4Rainer Mager
rmager@vgkk.com
In reply to: Dronamraju Rajesh (#1)
RE: LockReplace: xid table corrupted

Well, not to sound silly but, how many connections exist. Are you out of
connections?

I know that some clients on some OSes fail to free socket connections if
they die. We had this problem with JDBC on Win NT and I've heard of problems
with PHP as well. Our solution was to rewrite part of the clients so that in
all cases they shut down the db connection even if they then die a fiery
death.

--Rainer

Show quoted text

-----Original Message-----
From: pgsql-admin-owner@postgresql.org
[mailto:pgsql-admin-owner@postgresql.org]On Behalf Of Dronamraju Rajesh
Sent: Tuesday, December 12, 2000 2:56 PM
To: pgsql-admin@postgresql.org; pgsql-bugs@postgresql.org
Subject: [ADMIN] LockReplace: xid table corrupted

Hi There,

I have production systems running postgres for
24x7x365. But suddenly it stops serving the requests
but the postmaster does not die. I cant do select or
even say pgsql <database-name> until i kill postmaster
clear shared memory segments and restart it again. for
all the forth coming requests it says "sorry, too many
clients already".

My system config :-

os:- Red Hat linux 6.2
memory:- 1GB
cpu:- dual CPU
database:- Postgres 6.5.2 ( pl dont suggest to upgrade
to 7.0.2. once this problem is solved. then i can do
testing of my app with postgres 7.0.2)

command:- postmaster -i -N 256 -B 512

/usr/local/pgsql/server.log 2>&1 &

can anybody tell me why this happens and what the
solution is for this ????

Regards
Rajesh

__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/

#5Jie Liang
jliang@jliang.ipinc.com
In reply to: Dronamraju Rajesh (#3)
Re: Re: [BUGS] LockReplace: xid table corrupted

I remember that you cannot open more than 16 sessiones at same time
by default, if more than that you have to reset, I believe you can
find how from documentation.

Jie LIANG

Internet Products Inc.

10350 Science Center Drive
Suite 100, San Diego, CA 92121
Office:(858)320-4873

jliang@ipinc.com
www.ipinc.com

On Mon, 11 Dec 2000, Dronamraju Rajesh wrote:

Show quoted text

thanks tom....But strange thing is that my database
has only 15 tables totally...which are very small
too...

so how would be the way of me reaching to 1000
tables???

and why do i get an error message "sorry too many
clients" ???

Regards
Rajesh
--- Tom Lane <tgl@sss.pgh.pa.us> wrote:

Dronamraju Rajesh <drajesh80@yahoo.com> writes:

database:- Postgres 6.5.2 ( pl dont suggest to

upgrade

to 7.0.2. once this problem is solved. then i can

do

testing of my app with postgres 7.0.2)

If you update to 7.0.3, you'll probably find this
problem
goes away. It sounds to me like you are running
into a bogus
debug check in the older code that assumed
LockRelease should
never need to release more than a thousand locks.

If you don't want to update, try not touching 1000
tables in
the same transaction. I'm guessing you do a lot of
large-object
slinging ... otherwise it's not that easy to get to
1000 ...

regards, tom lane

__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/