为了汇集任何. NET对象,我认为针对本文编写一个通用的对象池会很有趣。
For pooling any.net object, I thought it would be interesting to write a general-purpose object pool for this article.
但不存在一个确凿通用的数据,因为缓冲池的最佳大小随不同的负载类型变化,但根据经验,当缓冲池大于1GB时往往不是什么好事。
There isn't a hard and fast number that has been documented because it can vary with the type of workload, but as a rule of thumb, having more than 1 GB does not appear to be worthwhile.
不用多说,你在网上能找到很多关于连接池调优的技术,因此我们只讨论那些大多数连接池所共有的通用调优参数。
Needless to say you can find plenty of connection pool tuning techniques on the web. Accordingly we will only mention common tuning parameters that are Shared by most pools.
通用语言运行时(Common LanguageRuntime,CLR)以锁、线程和线程池的形式为并行编程提供基本的支持。
The Common Language Runtime has always had basic support for parallel programming in the form of locks, threads, and thread pools.
总的来说,通用的最佳实践是确定哪些线程池服务任务需要DataSource连接并相应调节池的大小。
Overall, the general best practice is to determine which thread pools service tasks that require a DataSource connection and to size the pools accordingly.
通用JDBCType2驱动程序分别使用 com.ibm.db2.jcc.DB2XADataSource和 com.ibm.db2.jcc.DB2ConnectionPoolDataSource来支持分布式事务和连接池。
The Universal JDBC Type 2 driver supports distributed transactions using com.ibm.db2.jcc.DB2XADataSource, and connection pooling using com.ibm.db2.jcc.DB2ConnectionPoolDataSource.
通用JDBCType2驱动程序分别使用 com.ibm.db2.jcc.DB2XADataSource和 com.ibm.db2.jcc.DB2ConnectionPoolDataSource来支持分布式事务和连接池。
The Universal JDBC Type 2 driver supports distributed transactions using com.ibm.db2.jcc.DB2XADataSource, and connection pooling using com.ibm.db2.jcc.DB2ConnectionPoolDataSource.
应用推荐