Comment on Tutorial - How connection pooling works in Java and JDBC By Ramlak



Comment Added by : sonia

Comment Added at : 2013-09-21 20:22:49

Comment on Tutorial : How connection pooling works in Java and JDBC By Ramlak
1. Performance

Object pooling provides better application performance As object creation is not done when client actually need it to perform some operation on it Instead objects are already created in the pool and readily available to perform any time. So Object creation activity is done much before So it does help in achieving better run-time performance

2. Object sharing :

Object Pooling encourage the concept of sharing. Objects available in pool can be shared among multiple worker threads . One thread Use the Object and once used it returns back to its Object pool and then it can be used by some other worker thread. So once created objects are not destroyed and thus destruction and creation again and again is not required. That again help in generating better performing code.

3. Control on Object instances :
By declaring size of Object pool we can control the no of instance creation. Thus a finite no of objects are created as decided depending upon required application capacity and scalability or peak load.

4. Memory conservation :
Finite no of instances are created So it helps in better memory management . Too many instances are not

Read through extensive details here :

http://efectivejava.blogspot.in/2013/09/8-reasons-why-object-pooling-is.html


View Tutorial



Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. How can I execute the JSP program?
Please

View Tutorial          By: Suresh at 2013-01-04 06:43:10

2. wehhh... so so so difficult
View Tutorial          By: sam at 2013-02-28 01:55:41

3. short and simple program
hel

View Tutorial          By: sourabh agrawal at 2012-10-16 04:55:27

4. thanks for sharing.It's Easy to Understand
View Tutorial          By: Ganesh Abothula at 2013-01-23 10:43:55

5. Hi Alvin, in order to send sms from phone I suuges
View Tutorial          By: Vasan at 2008-03-21 01:44:02

6. Which one is the inbuilt Abstract class in java
View Tutorial          By: vikas jain at 2013-04-16 07:25:33

7. good one
View Tutorial          By: vij at 2009-06-03 16:00:12

8. Here is my issue. The sql which comes thru the JTD
View Tutorial          By: Kumar at 2012-02-21 02:42:08

9. Thanks a lot for that excellent explanation. It ha
View Tutorial          By: Gregory at 2014-12-30 05:49:21

10. Da program wont work if '#' is the first character
View Tutorial          By: Kala at 2012-09-05 00:24:59