same method to get connection from DB but takes different time in visualvm
<p>I have one method which get connection from database. I run profiler using visualvm. I found out that the very first time I called method which is to get connection from databse takes longer than the rest. </p>

<p>How to avoid getting database connection multiple times? </p>