[英]MySql connection managment with web app
I have a number of servlets (Spring MVC, Rest et...) which all need a database connection 我有许多servlet(Spring MVC,Rest et ...)都需要数据库连接
I have a MYSQL database and I use mysql-connector-java-5.1.20-bin.jar to make the connection 我有一个MYSQL数据库,我使用mysql-connector-java-5.1.20-bin.jar来建立连接
The servlets get hit a few hundred times a hour each and I want to improve performance servlet每小时被击中几百次,我想提高性能
So how can the current design be improved? 那么如何改进当前的设计呢? (current system is each request into the platform is handled by a servlet which creates a DB connection)
(当前系统是每个进入平台的请求都由一个创建数据库连接的servlet处理)
current system is each request into the platform is handled by a servlet which creates a DB connection
当前系统是每个进入平台的请求都由一个创建数据库连接的servlet处理
Use connection pooling 使用连接池
Also See 另见
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.