当前位置:网站首页>@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)
92.(cesium篇)cesium楼栋分层
"Only one trip", active recommendation and exploration of community installation and maintenance tasks
FPGA timing constraint sharing 01_ Brief description of the four steps
在线SQL转Excel(xls/xlsx)工具
Pythagorean number law (any three numbers can meet the conditions of Pythagorean theorem)
mysql中explain语句查询sql是否走索引,extra中的几种类型整理汇总
JVM系列之对象的创建
Master the use of auto analyze in data warehouse
FPGA时序约束分享01_四大步骤简述
随机推荐
Crawler (6) - Web page data parsing (2) | the use of beautifulsoup4 in Crawlers
如何使用Async-Awati异步任务处理代替BackgroundWorker?
Leetcode ransom letter C # answer
牛客小白月赛7 F题
How test engineers "attack the city" (Part 2)
kotlin 基本数据类型
Shell 编程核心技术《一》
有关架构设计的个人思考(本文后续不断修改更新)
Socket programming demo II
Hough Transform 霍夫变换原理
Introduction to polyfit software
大div中有多个div,这些div在同一行显示,溢出后产生滚动条而不换行
1009 Product of Polynomials(25 分)(PAT甲级)
Find the nth power of 2
Opencv functions and methods related to binary threshold processing are summarized for comparison and use
mysql中explain语句查询sql是否走索引,extra中的几种类型整理汇总
Mysql database basic operation -ddl | dark horse programmer
SSRS筛选器的IN运算(即包含于)用法
指定输出的字符集
How test engineers "attack the city" (Part I)