当前位置:网站首页>@Data source connection pool exhaustion caused by transactional abuse
@Data source connection pool exhaustion caused by transactional abuse
2022-07-04 19:37:00 【*๛ก(ー ̀ω ー ́ ก) 】
Get into hmp Regret to enter the observation map of the overview first , This page will be visited every minute 20+ Interface ,durid、oracle Such as the database , And back-end access has increased @Transactional Annotations ( This annotation adds a transaction to the interface , Before each visit, you will get mysql The connection pool , Only when the interface returns yes, it will be released ), Because the query of the interface takes too long and is accessed frequently , Easy to fill the connection pool , It makes other users unable to access mysql database .
@override
@transactional
public Map<String,Object> getAcMap(Map<String,String> map) throws ParseException {
.....
}
@transactional Use points :
1. There is no need to add @transactional annotation
(1) It is not an interface to operate the database
(2) It's just an interface for querying the database
(3) Interface that takes a long time to operate the database
2. The query function of the same database should be combined in one interface
边栏推荐
猜你喜欢
The 300th weekly match of leetcode (20220703)
LM10丨余弦波动顺势网格策略
mysql中explain语句查询sql是否走索引,extra中的几种类型整理汇总
OpenCV的二值化处理函数threshold()详解
Upgrade the smart switch, how much is the difference between the "zero fire version" and "single fire" wiring methods?
How to use async Awati asynchronous task processing instead of backgroundworker?
Oracle with as ORA-00903: invalid table name 多表报错
牛客小白月赛7 谁是神箭手
西门子HMI下载时提示缺少面板映像解决方案
FPGA时序约束分享01_四大步骤简述
随机推荐
1008 Elevator(20 分)(PAT甲级)
HDU 6440 2018 Chinese college student program design network competition
Shell 编程核心技术《三》
牛客小白月赛7 I 新建 Microsoft Office Word 文档
Cbcgpprogressdlg progress bar used by BCG
Allure of pytest visual test report
1005 Spell It Right(20 分)(PAT甲级)
测试工程师如何“攻城”(下)
Euler function
Oracle with as ORA-00903: invalid table name 多表报错
1002. A+B for Polynomials (25)(PAT甲级)
1003 Emergency(25 分)(PAT甲级)
Crawler (6) - Web page data parsing (2) | the use of beautifulsoup4 in Crawlers
Shell 编程核心技术《一》
Master the use of auto analyze in data warehouse
An example of multi module collaboration based on NCF
在线文本行固定长度填充工具
92.(cesium篇)cesium楼栋分层
1005 spell it right (20 points) (pat a)
Upgrade the smart switch, how much is the difference between the "zero fire version" and "single fire" wiring methods?