Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
536 views
in Technique[技术] by (71.8m points)

profiling - How to find out which services consume most of connections in Spring data jpa application Using HikariCP

I am using Spring Data in my spring boot application and my data base is postgreSQL, I have some jobs and services which are connecting to db for different purposes. recently I have encountered with connection problems
here is a sample logs of my hikari monitoring :

1399-10-09 00:03:22 INFO [INTERNAL  NA        ] HikariMonitorService.checkHikari         :  hikari pool: total=50 active=50 idle=0 waiting=5
1399-10-09 00:03:27 INFO [INTERNAL  NA        ] HikariMonitorService.checkHikari         :  hikari pool: total=50 active=50 idle=0 waiting=5
1399-10-09 00:03:32 INFO [INTERNAL  NA        ] HikariMonitorService.checkHikari         :  hikari pool: total=50 active=50 idle=0 waiting=5
1399-10-09 00:03:37 INFO [INTERNAL  NA        ] HikariMonitorService.checkHikari         :  hikari pool: total=50 active=50 idle=0 waiting=5
1399-10-09 00:03:42 INFO [INTERNAL  NA        ] HikariMonitorService.checkHikari         :  hikari pool: total=50 active=50 idle=0 waiting=5

as you see all of the connections are in use I want to know somehow which services/or Jobs are consuming most of the connections ? is there some monitoring/profiling tool for showing which service consumes which connection ?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...