472,353 Members | 1,201 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,353 software developers and data experts.

too many clients already?????

Dan
I have a server under very light load -- just me doing some work in php.
I am getting this error often and don't know why:

postgresql max connections Unable to connect to PostgreSQL server:
FATAL: Sorry, too many clients already

my postgresql.conf had:

max_connections = 8
shared_buffers = 16

I changed those to 32 and 64 and it is working so far. But I have a
bunch of postgresses running now with all of them doing almost nothing:

postgres 11747 0.0 0.0 8612 1904 ? S 00:27 0:00 postgres:
stats buffer process
postgres 11778 0.0 0.0 7620 1928 ? S 00:27 0:00 postgres:
stats collector process
postgres 12950 0.0 0.0 9132 4300 ? S 00:27 0:00 postgres:
dcm1104_root mkim_org 127.0.0.1 idle
postgres 13152 0.0 0.0 8436 3748 ? S 00:27 0:00 postgres:
dcm1104_root mkim_org 127.0.0.1 idle
postgres 13216 0.0 0.0 8436 3644 ? S 00:27 0:00 postgres:
dcm1104_root mkim_org 127.0.0.1 idle
postgres 13410 0.0 0.0 8036 2952 ? S 00:27 0:00 postgres:
dcm1104_root mkim_org 127.0.0.1 idle
postgres 13474 0.0 0.0 8436 3940 ? S 00:27 0:00 postgres:
dcm1104_root mkim_org 127.0.0.1 idle
postgres 13664 0.0 0.0 8420 3796 ? S 00:27 0:00 postgres:
dcm1104_root mkim_org 127.0.0.1 idle
postgres 13824 0.0 0.0 8040 3024 ? S 00:27 0:00 postgres:
dcm1104_root mkim_org 127.0.0.1 idle
postgres 13890 0.0 0.0 8436 3984 ? S 00:27 0:00 postgres:
dcm1104_root mkim_org 127.0.0.1 idle
postgres 2466 0.0 0.0 8432 3764 ? S 00:31 0:00 postgres:
dcm1104_root mkim_org 127.0.0.1 idle
postgres 2535 0.0 0.0 8568 3960 ? S 00:31 0:00 postgres:
dcm1104_root mkim_org 127.0.0.1 idle
postgres 19026 0.0 0.0 8040 2940 ? S 01:11 0:00 postgres:
dcm1104_root mkim_org 127.0.0.1 idle

i have tried both pg_connect and pg_pconnect, and this happens either
way. I don't understand why it keeps starting more processes when there
are others sitting around doing nothing??? Any thoughts?

Thanks

Dan

Jul 19 '05 #1
1 26043
Dan <no****@aol.com> scribbled on the stall wall:
I have a server under very light load -- just me doing some work in php.
I am getting this error often and don't know why:

postgresql max connections Unable to connect to PostgreSQL server:
FATAL: Sorry, too many clients already

my postgresql.conf had:

max_connections = 8
shared_buffers = 16

I changed those to 32 and 64 and it is working so far. But I have a
bunch of postgresses running now with all of them doing almost nothing:

are you starting a new (connection) for each transaction? If so, don't
do that. what you're seeing is proably a consequence of your php interface
but without seeing the exact code we have no way of knowing.

--
dual 2.8Ghz Xeon; 2GB RAM; 500GB ATA-133; nVidia powered
Linux 2.6.10; glibc-2.3.5; vendor neutral home-brewed installation

----anything after this line is ANNOYING CRAP that the newsserver adds-----
---directly contact newsfeeds and ISPs that piggy back them to complain----
----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

65
by: Pmb | last post by:
I'm confused as to what the compiler error message I'm getting is refering to. Can someone take a gander and let me know what I did wrong? The...
1
by: James Moe | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, Postgesql v7.3.2, os/2. I am using JDBC to connect to the dbms. After a few program...
3
by: Frederick Page | last post by:
Hi everybody, already googled and RTFM'ed some IBM documents, but still I'm a bit puzzled on how to manage Joe Sixpack's DB2 client...
4
by: Ersin Gençtürk | last post by:
Server : WEB System.Web.HttpUnhandledException: Exception of type System.Web.HttpUnhandledException was thrown. ---> System.Web.HttpException: The...
0
by: Philippe Lang | last post by:
Hello, After using Postgresql for a while, through ODBC / MS Access, I'm not able to connect to the server anymore. The server reports "Too many...
1
by: Miles Keaton | last post by:
Here's an interesting problem! When a sequence clashes with data already in that table: CREATE TABLE clients ( id serial NOT NULL PRIMARY KEY...
2
by: osmarjunior | last post by:
Hi, I'm using ODBC to connect to the dbms (Postgresql v8.1, in Windows server). After a few program open/close I get the message "Sorry, too...
1
by: ntech | last post by:
When connecting to postgresql datbase server, it says to many clients already. So what is the solution of this problem? and how can we view the...
4
by: setiarakesh | last post by:
I have designed a socket Server and developed asynchronous server . It is working fine with 60 Clients which are connecting to ths Server running...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.