Re: How should I connect via DBD::Oracle to efficiently obtain 2000+ simultaneous connections?
- From: Johannes.Gritsch@xxxxxx (Johannes Gritsch)
- Date: Mon, 20 Nov 2006 00:25:37 +0100
Chris Drake schrieb:
I'm expanding, and adding extra web servers to handle my load. My Apache/mod_perl environment maintains a new connection for each process, and these processes seem to chew up a lot of server resources.
What is the normal acceptable way to maintain large numbers of simultaneous connections?
I have enabled "shared server" support in my database, but I suspect it's not being utilized, since I only get a few hundred connections before hitting the "too many connections" error.
Am I supposed to be passing a switch in with my initical "connection" requests to request a shared (instead of dedicated) connection maybe ?
Thanks all
- Chris.
Actually, this has nothing to with Perl, at least my answer :-}
Using shared server means additional CPU overhead per call. If your clients are "lazy", meaning they produce a lot of idle time, it may help. If the more sluggish response of the DB connection doues not disturb, use it (Orace 9iR2 or newer).
To find out, if your sessions are shared: V$session is your friend - the column SERVER is NULL on shared connections.
To force shared connections you should force them in tnsnames.ora by setting (SERVER=SHARED).
HTH
Johannes Gritsch
- References:
- Prev by Date: Re: Perl5.8 Oracle DBI connects failing
- Next by Date: Re: How should I connect via DBD::Oracle to efficiently obtain 2000+ simultaneous connections?
- Previous by thread: How should I connect via DBD::Oracle to efficiently obtain 2000+ simultaneous connections?
- Next by thread: RE: How should I connect via DBD::Oracle to efficiently obtain 2000+ simultaneous connections?
- Index(es):
Relevant Pages
|