logo       


Re: What is wrong with pg_pconnect() ?: msg#00039

Subject: Re: What is wrong with pg_pconnect() ?
As Rod pointed out, you likely aren't having dead apache children, just 
too many.

IF you must have pconnects in your code, then you need to configure your 
apache server and postgresql server so that the postgresql server can 
spawn more children than the apache server.

Set MaxClients in httpd.conf to something MUCH lower than the default 
of 150.  Usually 20 to 50 will be plenty.  Restart apache.

Then, set postgresql to handle at least 2x as many backends as with the 
max_connections setting and restart it.

Now, you should be able to handle pconnects.  

My personal testing has shown my dual PIII-750 (being retired at the end 
of the month) can handle about 1,000 to 10,000 pg_connects a second, and 
about 100,000 to 1,000,000 pg_pconnects a second.  Since the average page 
build / delivery time on our intranet server is around 0.5 to 1.5 seconds, 
the speed of connections is pretty much noise.  We have templating, 
database accesses, and httpd authentication via LDAP on each page, and the 
biggest eater of CPU time is the httpd->LDAP authentication, followed by 
the templating, followed by the database layer.  I.e. Postgresql and its 
connections are the least of our worries. :-0


---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
      subscribe-nomail command to majordomo@xxxxxxxxxxxxxx so that your
      message can get through to the mailing list cleanly



Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe