| |

VerySource

 Forgot password?
 Register
Search
View: 982|Reply: 9

tomcat, how to check the usage of the connection pool?

[Copy link]

2

Threads

7

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-2-24 01:30:02
| Show all posts |Read mode
For example, how many connections, idle, maximum connections, etc.?
ps: Of course, it is not the configuration file of the connection pool settings. The configuration file cannot see the real-time connection.
Reply

Use magic Report

0

Threads

7

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 Unknown

Post time: 2020-5-7 21:15:01
| Show all posts
Go to the database
Reply

Use magic Report

0

Threads

11

Posts

10.00

Credits

Newbie

Rank: 1

Credits
10.00

 China

Post time: 2020-5-8 00:15:01
| Show all posts
In the ORACLE data, you can use commands to see the number of connections currently used by each IP, etc.!
Reply

Use magic Report

2

Threads

7

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

 Author| Post time: 2020-5-9 11:15:01
| Show all posts
sqlserver
What do you think? Can you elaborate
Reply

Use magic Report

0

Threads

11

Posts

10.00

Credits

Newbie

Rank: 1

Credits
10.00

 China

Post time: 2020-7-23 19:30:01
| Show all posts
I found sqlserver on the Internet, let me try it:
select * from sysprocesses where dbid in
(select dbid from sysdatabases where name='iChaoShi1')

Find all the connection records connected to the iChaoShi1 database.

The sysprocesses table records all connections to the SQL SERVER database.
Reply

Use magic Report

2

Threads

7

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

 Author| Post time: 2020-7-28 21:45:01
| Show all posts
I tried it, but it doesn’t seem to work. Different clients have opened several windows. After querying it, a connection
Reply

Use magic Report

2

Threads

7

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

 Author| Post time: 2020-7-28 22:15:01
| Show all posts
Query after closing tomcat, it indeed returns empty
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-7-29 17:00:01
| Show all posts
Pay attention. . ! !
Reply

Use magic Report

0

Threads

11

Posts

10.00

Credits

Newbie

Rank: 1

Credits
10.00

 China

Post time: 2020-7-30 23:00:01
| Show all posts
That is to query the current number of connections to the database.Your multiple windows can only indicate that there are several connections to the WEB server at the same time.
Pay attention to distinguish them
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-7-31 08:15:01
| Show all posts
It is recommended to use proxool as a connection pool
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list