https://www.playframework.com/documentation/2.0/SettingsJDBC讨论了一些额外的调优性能参数,但没有提到任何关于最佳或中度设置的建议/建议。
想知道是否有人对这些额外的调优性能参数有任何建议或建议?
另外,我有以下SQL错误。不知道这是否与调优设置有关,因为我有所有稳定的构建,如bonecp0.8.0,0.6.0.1,play 2.2.2,play 0.6.0.1等等。
Caught SQLException!
com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operations allowed after connection closed.
真的很感激你对此有任何回应吗?
发布于 2014-11-21 10:44:59
根据异常的消息,您希望在已经关闭的连接上应用db操作(不管是什么创建、选择、更新或删除操作)。你能通过一些密码吗?
顺便说一句:我也在运行bonecp0.8.0,我在使用这个(开发)配置时没有遇到这些异常:
db {
default.driver=org.postgresql.Driver
default.url="jdbc:postgresql://.../database"
default.user=some-user
default.password="some-pass"
default.logStatements=true
default.maxConnectionAge=0
default.logStatements=true
default.maxConnectionAge=0
default.partitionCount=1
default.maxConnectionsPerPartition=10
default.minConnectionsPerPartition=5
}
也许您可以在检查"BoneCpPlugin":"https://github.com/playframework/playframework/blob/879588fd9d1b1cdeb800f904a454014e51a8568e/framework/src/play-jdbc/src/main/scala/play/api/db/BoneCPModule.scala“时尝试调整配置设置。
发布于 2014-11-25 09:56:02
我认为您可以在db.default.maxConnectionAge=0文件中添加“applications.conf”代码。这一行代码就足够了。
https://stackoverflow.com/questions/27059223
复制相似问题