<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Java Interview Questions &#187; Connection Pooling Benifits</title>
	<atom:link href="http://www.bestjavainterviewquestions.com/category/jdbc-questions-java-jdbc-questions-core-java-interview-questions/connection-pooling-benifits/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bestjavainterviewquestions.com</link>
	<description>Java Interview Questions &#124; Core Java Interview Questions &#124; Advanced Java Interview Questions &#124; EJB Interview Questions &#124; J2EE Interview Questions &#124; Hibernate Interview Questions</description>
	<lastBuildDate>Fri, 03 Feb 2012 10:23:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Benefits of Connection Pooling</title>
		<link>http://www.bestjavainterviewquestions.com/benefits-of-connection-pooling/</link>
		<comments>http://www.bestjavainterviewquestions.com/benefits-of-connection-pooling/#comments</comments>
		<pubDate>Mon, 27 Oct 2008 05:31:00 +0000</pubDate>
		<dc:creator>Ramakrishna</dc:creator>
				<category><![CDATA[Connection Pooling Benifits]]></category>
		<category><![CDATA[benefits of connection pooling]]></category>

		<guid isPermaLink="false">http://www.bestjavainterviewquestions.com/?p=413</guid>
		<description><![CDATA[Benefits of Connection Pooling: Connection pooling can greatly increase the performance of your Java application, while reducing overall resource usage. The main benefits to connection pooling are: Reduced connection creation time: While this is not usually an issue with the quick connection setup that MySQL offers compared to other databases, creating connections still has networking [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Benefits of Connection Pooling:</strong><br />
Connection pooling can greatly increase the performance of your Java application, while reducing overall resource usage. The main benefits to connection pooling are:<br />
<strong><br />
Reduced connection creation time: </strong></p>
<p>While this is not usually an issue with the quick connection setup that MySQL offers compared to other databases, creating connections still has networking and JDBC driver overhead that will be avoided if connections are &#8220;recycled.&#8221;</p>
<p><strong>Simplified programming model: </strong></p>
<p>When using connection pooling, each individual thread can act as though it has created its own JDBC connection, allowing you to use straight-forward JDBC programming techniques.</p>
<p><strong>Controlled resource usage: </strong></p>
<p>If you don&#8217;t use connection pooling, and instead create a new connection every time a thread needs one, your application&#8217;s resource usage can be quite wasteful and lead to unpredictable behavior under load.<br />
Remember that each connection to MySQL has overhead (memory, CPU, context switches, etc) on both the client and server side. Every connection limits how many resources there are available to your application as well as the MySQL server. Many of these resources will be used whether or not the connection is actually doing any useful work!<br />
Connection pools can be tuned to maximize performance, while keeping resource utilization below the point where your application will start to fail rather than just run slower.</p>
<h2  class="related_post_title">Random Posts</h2><ul class="related_post"><li>March 25, 2009 -- <a href="http://www.bestjavainterviewquestions.com/creating-a-stateful-session-bean/" title="Creating a Stateful session Bean">Creating a Stateful session Bean</a> (1)</li><li>February 15, 2009 -- <a href="http://www.bestjavainterviewquestions.com/providing-current-date-and-time-using-stateless-session-bean/" title="Providing current date and time using Stateless session bean">Providing current date and time using Stateless session bean</a> (0)</li><li>September 22, 2008 -- <a href="http://www.bestjavainterviewquestions.com/what-is-default-package-in-java/" title="What is Default Package in Java">What is Default Package in Java</a> (0)</li><li>January 26, 2009 -- <a href="http://www.bestjavainterviewquestions.com/file-uploading-using-servlet/" title="File Uploading Using Servlet">File Uploading Using Servlet</a> (0)</li><li>September 2, 2008 -- <a href="http://www.bestjavainterviewquestions.com/define-session/" title="Define Session">Define Session</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.bestjavainterviewquestions.com/benefits-of-connection-pooling/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

