LOG:
### Cause: org.postgresql.util.PSQLException: ERROR: out of shared memory
ヒント: You might need to increase max_locks_per_transaction.
; SQL []; ERROR: out of shared memory
ヒント: You might need to increase max_locks_per_transaction.; nested exception is org.postgresql.util.PSQLException: ERROR: out of shared memory
ヒント: You might need to increase max_locks_per_transaction.
at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.doTranslate(SQLErrorCodeSQLExceptionTranslator.java:253)
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:72)
at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:74)
at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:399)
最近做專案,為了提高性能大量的使用的create temp table TABLE_NAME on commit drop陳述句。
可是最近發現專案運行程序中 頻繁出現LOG中出現的錯誤。一開始以為是鎖多了導致的。但是在后續的調查中 只是很簡單的模塊,一個人操作 也會出現該錯誤。而且該錯誤只出現在創建臨時表的時候。
有大神知道這是怎么回事嗎 , 一點頭緒都沒有 ,更改了max_locks_per_transaction的值依然無法解決問題。
uj5u.com熱心網友回復:
試試調高這個引數呢 shard_memory轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/54248.html
標籤:PostgreSQL
