Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 C3P0。我有以下配置。我需要缓存语句。
maxPoolSize="20" minPoolSize="6" acquireIncrement="3" initialPoolSize="3" maxStatements="2000"
在这里我已经设置maxStatements为2000。maxPoolSize是20。这是否意味着将缓存总共 2000*20=40000 条语句?
maxStatements
2000
maxPoolSize
20
谢谢!
nomaxStatements是全局缓存最大大小。
maxStatementsPerConnection是每个连接的值。
maxStatementsPerConnection
c3p0 文档的相关部分