X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id E2838D7CFC for ; Tue, 30 Aug 2005 03:20:13 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 36417-09 for ; Tue, 30 Aug 2005 06:20:11 +0000 (GMT) Received: from smtp.bizmail.net4india.com (smtp.bizmail.net4india.com [202.71.129.102]) by svr1.postgresql.org (Postfix) with ESMTP id 140C0D6F5F for ; Tue, 30 Aug 2005 03:20:09 -0300 (ADT) Received: from [61.11.17.20] (helo=devp10) by smtp.bizmail.net4india.com with smtp (Exim 3.36 #2) id 1E9zZf-0006iz-00 for pgsql-jdbc@postgresql.org; Tue, 30 Aug 2005 11:56:23 +0530 Message-ID: <000a01c5ad2b$51ab58b0$c20aa8c0@codecindia.com> From: "Hina Chauhan" To: "postgres - jdbc" Subject: max connection Date: Tue, 30 Aug 2005 11:52:48 +0530 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0005_01C5AD59.577EF5C0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.831 required=5 tests=[DEAR_SOMETHING=0.803, HTML_60_70=0.027, HTML_MESSAGE=0.001] X-Spam-Level: X-Archive-Number: 200508/202 X-Sequence-Number: 13771 This is a multi-part message in MIME format. ------=_NextPart_000_0005_01C5AD59.577EF5C0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Dear Sir/Madam, I am facing a problem, if u can help me. I am uging postgres 7.4 database. In java application I am using = connection pooling (jakarta-web server, using datasource), wherein I = have to decide how many max connection I should use. Do we have any concept wherein we can say number of connection = propotional to number of user OR how many users per connection can = work. My project would be used by 100 users at a time, which may increase to = 400 users latter. I am having file context.xml with following settings, Can I add some = thing more to it. WEB-INF/web.xml META-INF/context.xml =20 =20 Regards, Hina Chauhan Codec Communications pvt. Ltd. ------=_NextPart_000_0005_01C5AD59.577EF5C0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Dear Sir/Madam,
 
 
I am facing a problem, if u can help=20 me.
 
I am uging postgres 7.4 database.  = In java=20 application I am using connection pooling (jakarta-web server, using=20 datasource), wherein I have to decide how many max connection I should=20 use.
 
Do we have any concept wherein we can = say number of=20 connection propotional to number of user  OR how many users per = connection=20 can work.
 
My project would be used by 100 users = at a time,=20 which may increase to 400 users latter.
 
 
I am having file context.xml with = following=20 settings, Can I add some thing more to it.
 
<Context = reloadable=3D"true">
 
<!-- Default set of monitored = resources=20 -->
 <WatchedResource>WEB-INF/web.xml</WatchedResourc= e>
 <WatchedResource>META-INF/context.xml</WatchedRes= ource>
 
 <!--=20 Uncomment this to disable session persistence across Tomcat restarts=20 -->
 <!--
 <Manager pathname=3D""=20 />
 -->
  <Resource = name=3D"jdbc/mypostgre"=20 auth=3D"Container"
        &nb= sp;    =20 type=3D"javax.sql.DataSource"=20 driverClassName=3D"org.postgresql.Driver"
    &nbs= p;        =20 url=3D"jdbc:postgresql://localhost:5432/collectioninfo"
  &n= bsp;          =20 username=3D"bacsindia" password=3D"bacsindia" maxActive=3D"5"=20 maxIdle=3D"2"
         &n= bsp;   =20 maxWait=3D"10"/>
 
</Context>
 
 
Regards,
 
Hina Chauhan
Codec Communications pvt.=20 Ltd.
------=_NextPart_000_0005_01C5AD59.577EF5C0--