使用jdbc的spring会话同时更新会话表

时间:2016-06-23 09:50:01

标签: spring-jdbc spring-session

连接(id:358250360)获得14:11:55,420,并在14:11:55,471发布,其中包括51毫秒,在此51毫秒的春季会话期间进行了7次更新操作。这只是通过访问URL引起的。如果很多用户同时在线,则池中的连接可能会短缺。我想知道是不是jdbc春季会议的事实,或者我错过了一些配置。

14:11:55,420 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Creating new transaction with name [null]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT
14:11:55,420 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Acquired Connection [358250360, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] for JDBC transaction
14:11:55,420 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Switching JDBC Connection [358250360, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] to manual commit
14:11:55,420 DEBUG: org.springframework.jdbc.core.JdbcTemplate - Executing prepared SQL update
14:11:55,420 DEBUG: org.springframework.jdbc.core.JdbcTemplate - Executing prepared SQL statement [UPDATE SPRING_SESSION SET LAST_ACCESS_TIME = ?, MAX_INACTIVE_INTERVAL = ?, PRINCIPAL_NAME = ? WHERE SESSION_ID = ?]
14:11:55,417 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Releasing JDBC Connection [592735956, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] after transaction
14:11:55,421 DEBUG: org.springframework.jdbc.datasource.DataSourceUtils - Returning JDBC Connection to DataSource
14:11:55,417 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Creating new transaction with name [null]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT
14:11:55,422 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Creating new transaction with name [null]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT
14:11:55,422 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Acquired Connection [384136626, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] for JDBC transaction
14:11:55,422 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Switching JDBC Connection [384136626, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] to manual commit
14:11:55,422 DEBUG: org.springframework.jdbc.core.JdbcTemplate - Executing prepared SQL query
14:11:55,422 DEBUG: org.springframework.jdbc.core.JdbcTemplate - Executing prepared SQL statement
14:11:55,423 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Acquired Connection [744825705, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] for JDBC transaction
14:11:55,425 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Switching JDBC Connection [744825705, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] to manual commit
14:11:55,425 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Initiating transaction commit
14:11:55,425 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Committing JDBC transaction on Connection [744825705, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver]
14:11:55,425 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Releasing JDBC Connection [744825705, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] after transaction
14:11:55,425 DEBUG: org.springframework.jdbc.datasource.DataSourceUtils - Returning JDBC Connection to DataSource
14:11:55,427 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Creating new transaction with name [null]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT
14:11:55,428 DEBUG: org.springframework.jdbc.core.JdbcTemplate - SQL update affected 1 rows
14:11:55,428 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Acquired Connection [832455532, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] for JDBC transaction
14:11:55,428 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Initiating transaction commit
14:11:55,428 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Switching JDBC Connection [832455532, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] to manual commit
14:11:55,428 DEBUG: org.springframework.jdbc.core.JdbcTemplate - Executing prepared SQL query
14:11:55,428 DEBUG: org.springframework.jdbc.core.JdbcTemplate - Executing prepared SQL statement
14:11:55,428 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Committing JDBC transaction on Connection [1153338657, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver]
14:11:55,431 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Releasing JDBC Connection [1153338657, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] after transaction
14:11:55,431 DEBUG: org.springframework.jdbc.support.lob.DefaultLobHandler - Returning BLOB as bytes
14:11:55,431 DEBUG: org.springframework.jdbc.support.lob.DefaultLobHandler - Returning BLOB as bytes
14:11:55,431 DEBUG: org.springframework.jdbc.core.JdbcTemplate - SQL update affected 1 rows
14:11:55,431 DEBUG: org.springframework.jdbc.core.JdbcTemplate - Executing prepared SQL update
14:11:55,431 DEBUG: org.springframework.jdbc.core.JdbcTemplate - Executing prepared SQL statement [UPDATE SPRING_SESSION_ATTRIBUTES SET ATTRIBUTE_BYTES = ? WHERE SESSION_ID = ? AND ATTRIBUTE_NAME = ?]
14:11:55,431 DEBUG: org.springframework.jdbc.datasource.DataSourceUtils - Returning JDBC Connection to DataSource
14:11:55,433 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Initiating transaction commit
14:11:55,433 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Committing JDBC transaction on Connection [832455532, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver]
14:11:55,433 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Initiating transaction commit
14:11:55,433 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Committing JDBC transaction on Connection [384136626, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver]
14:11:55,433 DEBUG: org.springframework.jdbc.support.lob.DefaultLobHandler - Set bytes for BLOB with length 979
14:11:55,434 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Creating new transaction with name [null]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT
14:11:55,434 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Acquired Connection [1724464517, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] for JDBC transaction
14:11:55,434 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Switching JDBC Connection [1724464517, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] to manual commit
14:11:55,434 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Initiating transaction commit
14:11:55,434 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Committing JDBC transaction on Connection [1724464517, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver]
14:11:55,434 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Releasing JDBC Connection [1724464517, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] after transaction
14:11:55,434 DEBUG: org.springframework.jdbc.datasource.DataSourceUtils - Returning JDBC Connection to DataSource
14:11:55,435 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Releasing JDBC Connection [832455532, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] after transaction
14:11:55,435 DEBUG: org.springframework.jdbc.datasource.DataSourceUtils - Returning JDBC Connection to DataSource
14:11:55,437 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Creating new transaction with name [null]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT
14:11:55,437 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Acquired Connection [1825775842, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] for JDBC transaction
14:11:55,437 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Switching JDBC Connection [1825775842, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] to manual commit
14:11:55,437 DEBUG: org.springframework.jdbc.core.JdbcTemplate - Executing prepared SQL query
14:11:55,437 DEBUG: org.springframework.jdbc.core.JdbcTemplate - Executing prepared SQL statement
14:11:55,437 DEBUG: org.springframework.jdbc.core.JdbcTemplate - SQL update affected 1 rows
14:11:55,437 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Releasing JDBC Connection [384136626, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] after transaction
14:11:55,437 DEBUG: org.springframework.jdbc.datasource.DataSourceUtils - Returning JDBC Connection to DataSource
14:11:55,437 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Initiating transaction commit
14:11:55,437 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Committing JDBC transaction on Connection [1843345656, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver]
14:11:55,438 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Creating new transaction with name [null]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT
14:11:55,438 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Acquired Connection [970762077, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] for JDBC transaction
14:11:55,438 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Switching JDBC Connection [970762077, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] to manual commit
14:11:55,441 DEBUG: org.springframework.jdbc.core.JdbcTemplate - Executing prepared SQL update
14:11:55,441 DEBUG: org.springframework.jdbc.core.JdbcTemplate - Executing prepared SQL statement [UPDATE SPRING_SESSION SET LAST_ACCESS_TIME = ?, MAX_INACTIVE_INTERVAL = ?, PRINCIPAL_NAME = ? WHERE SESSION_ID = ?]
14:11:55,441 DEBUG: org.springframework.jdbc.support.lob.DefaultLobHandler - Returning BLOB as bytes
14:11:55,442 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Releasing JDBC Connection [1843345656, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] after transaction
14:11:55,442 DEBUG: org.springframework.jdbc.datasource.DataSourceUtils - Returning JDBC Connection to DataSource
14:11:55,443 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Initiating transaction commit
14:11:55,443 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Committing JDBC transaction on Connection [1825775842, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver]
14:11:55,443 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Creating new transaction with name [null]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT
14:11:55,443 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Acquired Connection [933084215, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] for JDBC transaction
14:11:55,444 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Switching JDBC Connection [933084215, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] to manual commit
14:11:55,444 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Initiating transaction commit
14:11:55,444 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Committing JDBC transaction on Connection [933084215, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver]
14:11:55,444 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Releasing JDBC Connection [933084215, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] after transaction
14:11:55,444 DEBUG: org.springframework.jdbc.datasource.DataSourceUtils - Returning JDBC Connection to DataSource
14:11:55,442 DEBUG: org.springframework.jdbc.core.JdbcTemplate - SQL update affected 1 rows
14:11:55,445 DEBUG: org.springframework.jdbc.core.JdbcTemplate - Executing prepared SQL update
14:11:55,445 DEBUG: org.springframework.jdbc.core.JdbcTemplate - Executing prepared SQL statement [UPDATE SPRING_SESSION_ATTRIBUTES SET ATTRIBUTE_BYTES = ? WHERE SESSION_ID = ? AND ATTRIBUTE_NAME = ?]
14:11:55,446 DEBUG: org.springframework.jdbc.support.lob.DefaultLobHandler - Set bytes for BLOB with length 979
14:11:55,447 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Releasing JDBC Connection [1825775842, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] after transaction
14:11:55,447 DEBUG: org.springframework.jdbc.datasource.DataSourceUtils - Returning JDBC Connection to DataSource
14:11:55,448 DEBUG: org.springframework.jdbc.core.JdbcTemplate - SQL update affected 1 rows
14:11:55,448 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Initiating transaction commit
14:11:55,448 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Committing JDBC transaction on Connection [1674506398, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver]
14:11:55,449 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Creating new transaction with name [null]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT
14:11:55,449 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Acquired Connection [1283280084, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] for JDBC transaction
14:11:55,450 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Creating new transaction with name [null]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT
14:11:55,449 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Creating new transaction with name [null]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT
14:11:55,450 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Acquired Connection [194367212, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] for JDBC transaction
14:11:55,450 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Switching JDBC Connection [1283280084, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] to manual commit
14:11:55,450 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Switching JDBC Connection [194367212, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] to manual commit
14:11:55,450 DEBUG: org.springframework.jdbc.core.JdbcTemplate - Executing prepared SQL update
14:11:55,450 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Acquired Connection [1367061108, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] for JDBC transaction
14:11:55,450 DEBUG: org.springframework.jdbc.core.JdbcTemplate - Executing prepared SQL statement [UPDATE SPRING_SESSION SET LAST_ACCESS_TIME = ?, MAX_INACTIVE_INTERVAL = ?, PRINCIPAL_NAME = ? WHERE SESSION_ID = ?]
14:11:55,450 DEBUG: org.springframework.jdbc.core.JdbcTemplate - Executing prepared SQL query
14:11:55,450 DEBUG: org.springframework.jdbc.core.JdbcTemplate - Executing prepared SQL statement
14:11:55,450 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Switching JDBC Connection [1367061108, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] to manual commit
14:11:55,451 DEBUG: org.springframework.jdbc.core.JdbcTemplate - Executing prepared SQL update
14:11:55,451 DEBUG: org.springframework.jdbc.core.JdbcTemplate - Executing prepared SQL statement [UPDATE SPRING_SESSION SET LAST_ACCESS_TIME = ?, MAX_INACTIVE_INTERVAL = ?, PRINCIPAL_NAME = ? WHERE SESSION_ID = ?]
14:11:55,453 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Releasing JDBC Connection [1674506398, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] after transaction
14:11:55,453 DEBUG: org.springframework.jdbc.datasource.DataSourceUtils - Returning JDBC Connection to DataSource
14:11:55,454 DEBUG: org.springframework.jdbc.core.JdbcTemplate - SQL update affected 1 rows
14:11:55,454 DEBUG: org.springframework.jdbc.core.JdbcTemplate - Executing prepared SQL update
14:11:55,454 DEBUG: org.springframework.jdbc.core.JdbcTemplate - Executing prepared SQL statement [UPDATE SPRING_SESSION_ATTRIBUTES SET ATTRIBUTE_BYTES = ? WHERE SESSION_ID = ? AND ATTRIBUTE_NAME = ?]
14:11:55,454 DEBUG: org.springframework.jdbc.support.lob.DefaultLobHandler - Returning BLOB as bytes
14:11:55,455 DEBUG: org.springframework.jdbc.support.lob.DefaultLobHandler - Set bytes for BLOB with length 979
14:11:55,455 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Creating new transaction with name [null]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT
14:11:55,456 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Acquired Connection [1356824368, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] for JDBC transaction
14:11:55,456 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Switching JDBC Connection [1356824368, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] to manual commit
14:11:55,456 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Initiating transaction commit
14:11:55,460 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Committing JDBC transaction on Connection [1356824368, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver]
14:11:55,461 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Releasing JDBC Connection [1356824368, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] after transaction
14:11:55,461 DEBUG: org.springframework.jdbc.datasource.DataSourceUtils - Returning JDBC Connection to DataSource
14:11:55,455 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Initiating transaction commit
14:11:55,465 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Committing JDBC transaction on Connection [194367212, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver]
14:11:55,465 DEBUG: org.springframework.jdbc.core.JdbcTemplate - SQL update affected 1 rows
14:11:55,465 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Initiating transaction commit
14:11:55,465 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Committing JDBC transaction on Connection [358250360, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver]
14:11:55,468 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Creating new transaction with name [null]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT
14:11:55,468 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Acquired Connection [738764354, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] for JDBC transaction
14:11:55,468 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Switching JDBC Connection [738764354, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] to manual commit
14:11:55,468 DEBUG: org.springframework.jdbc.core.JdbcTemplate - Executing prepared SQL query
14:11:55,468 DEBUG: org.springframework.jdbc.core.JdbcTemplate - Executing prepared SQL statement
14:11:55,471 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Releasing JDBC Connection [358250360, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] after transaction
14:11:55,471 DEBUG: org.springframework.jdbc.datasource.DataSourceUtils - Returning JDBC Connection to DataSource

1 个答案:

答案 0 :(得分:1)

这是完全正常的情况。

在Spring Session JDBC支持的实现过程中,我们已尽最大努力使与底层数据库的交互尽可能高效,但如果您的应用程序将以高度并发的方式与许多用户一起使用,我建议您可以考虑使用更高性能的技术(例如Redis或Hazelcast)来支持SessionRepository