• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Datasource connections

 
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

Well, I am having some J2EE applications running on Websphere application server.
I am a little confused on what is the maximum number of connections that I should have
for a Datasource. I know it totally depends on the number of users hitting the system at
an instance of time.

Simple question, what is the drawback/disadvantage of say having more connections. Your thoughts please


I appreciate your feedback

 
prasad agarwal
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Hi moderator ,... well I really don't know why my message was transferred from "servlets" to "Websphere" section.
My question is not really Websphere specific !
I felt "servlets" would be a better place as more people watch that section too.

If you feel the same, maybe it has to be transferred back.. appreciate

Thanks anyway
 
Marshal
Posts: 28271
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Obviously the drawback of having more data source connections is that they use more resources. A connection uses memory, it requires CPU cycles to make sure it's connected, it uses network bandwidth to ping the database to see if it's still up, and so on. That's on the Websphere end. At the database the situation is repeated: the database has to allocate memory for the connection, it has to spend CPU cycles to respond to its pings, and so on.
 
Paul Clapham
Marshal
Posts: 28271
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not sure why this would be a question about servlets, since data source connections can be used in all parts of a Java EE application. As you say it isn't Websphere-specific, but it also isn't servlet-specific.
 
reply
    Bookmark Topic Watch Topic
  • New Topic