• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

Connection Pooling

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Connection Pooling,

1. when to use connection pooling.
2. On which factor the no. of connections parameter depend.

example :
To access my application by 2000 users we can define 20 connections.
if the users increases to 10000 then how many connections we require to access my application.

please clarify me on this.
 
Rancher
Posts: 43028
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The important factor is not how many users there are, but how many might access the system around the same time, how often they might access it, how involved the queries are, and how beefy the DB server (and any other server that's involved) is.
 
Sreeni Gundla
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ulf Dittmer wrote:The important factor is not how many users there are, but how many might access the system around the same time, how often they might access it, how involved the queries are, and how beefy the DB server (and any other server that's involved) is.



for example if 2000 users use my application simultaneously how many connections i can define for my application.
and also if 10000 users use at a time how many connections we need to go for.

this is a general question in my mind ...
 
Ulf Dittmer
Rancher
Posts: 43028
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yesterday's discussion of this topic should help: https://coderanch.com/t/475686/JDBC/java/Connection-Pooling-size
 
reply
    Bookmark Topic Watch Topic
  • New Topic