Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.databases > #145

Re: Connection Pooling

Path csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!news.glorb.com!news-out.readnews.com!transit3.readnews.com!news-out.news.tds.net!newsreading01.news.tds.net!86597e80!not-for-mail
From kuassi.mensah@gmail.com.remove-dii-this
Subject Re: Connection Pooling
Message-ID <a780b557-ff3c-4e51-bc40-29ccd74690af@s21g2000prm.googlegroups.com> (permalink)
X-Comment-To comp.lang.java.programmer
Newsgroups comp.lang.java.databases
In-Reply-To <483b75f0$0$90275$14726298@news.sunsite.dk>
References <483b75f0$0$90275$14726298@news.sunsite.dk>
Content-Type text/plain; charset=IBM437
Content-Transfer-Encoding 8bit
X-Gateway time.synchro.net [Synchronet 3.15a-Win32 NewsLink 1.92]
Lines 48
Date Wed, 27 Apr 2011 15:22:00 GMT
NNTP-Posting-Host 96.60.20.240
X-Complaints-To news@tds.net
X-Trace newsreading01.news.tds.net 1303917720 96.60.20.240 (Wed, 27 Apr 2011 10:22:00 CDT)
NNTP-Posting-Date Wed, 27 Apr 2011 10:22:00 CDT
Organization TDS.net
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.databases:145

Show key headers only | View raw


  To: comp.lang.java.programmer
> > The problem with middle-tier connection pools is that they cannot span
> > JVMs or midlet0er instances.
>
> That is not a problem. It is an advantage. Because interacting with pool
> is then a local call.

The saving of local call to connection pool versus remote call to the
connection broker, is epsilon compared to the saving in terms of
resource brought by DRCP.

> >                             Oracle's Database Resident Connecton Pool
> >http://www.oracle.com/technology/tech/php/pdf/php-scalability-ha-twp.pdf
> > solves this problem; unfortunately it is not (yet) exposed to Java
> > only PHP and Ruby/Rails (primarily because these are process based not
> > thread based).
>
> That solution is used not because it is a better solution, but
> because the traditional Java/.NET/C++ solution does not work with PHP.

Sure, unlike PHP and other dynamic languages, Java/.NET/C++ are not in
desperate need for a connection pool.

> You can use DRCP from Java.

Nope, the article you are referring to is wrong; and i am as we speak
asking the author to fix the misleading JDBC URL with DRCP.

> http://www.oracle.com/technology/pub/articles/oracle-database-11g-top...
>
> describes how to specify the JDBC connection URL.
>
> I think the interest from Java will be low. A local pool is faster.

I will argue with this opinion. Think about a large web application
with thousands of middle-tier (let's assume 4000) with each their own
connection pool. Even if each middle-tier only allocate few
connections (let's settle for 5); you end up with 20,000 pre-allocated
connections!!! Assuming that  only 50% of all connections are busy at
a point in time and that this is not uniform across all middle-tiers
(how could it be?); you will be wasting 10,000 connections.

Kuassi

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.databases | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Connection Pooling "Chase Preuninger" <chase.preuninger@THRWHITE.remove-dii-this> - 2011-04-27 15:21 +0000
  Re: Connection Pooling "=?ISO-8859-1?Q?Arne_Vajh=" <=?iso-8859-1?q?arne_vajh=@THRWHITE.remove-dii-this> - 2011-04-27 15:22 +0000
    Re: Connection Pooling kuassi.mensah@gmail.com.remove-dii-this - 2011-04-27 15:22 +0000
      Re: Connection Pooling "=?ISO-8859-1?Q?Arne_Vajh=" <=?iso-8859-1?q?arne_vajh=@THRWHITE.remove-dii-this> - 2011-04-27 15:22 +0000
        Re: Connection Pooling kuassi.mensah@gmail.com.remove-dii-this - 2011-04-27 15:22 +0000
  Re: Connection Pooling "Alfred" <alfred@THRWHITE.remove-dii-this> - 2011-04-27 15:22 +0000

csiph-web