与MySQL的额外连接

时间:2014-08-21 10:05:20

标签: java mysql jdbc

好吧,我有一个简单的java应用程序,它有10个与MySQL的jdbc连接,我通过DataSource上的JMX MBean信息检查了这个。

但是,当我试图从终端grep这个信息时:

$ netstat -natp | grep 3306 | grep java | wc -l
11

$ netstat -natp | grep 3306 | grep java
tcp6       0      0 192.168.11.40:60784     192.168.11.41:3306      ESTABLISHED 25772/java      
tcp6       0      0 192.168.11.40:60838     192.168.11.41:3306      ESTABLISHED 25772/java      
tcp6       0      0 192.168.11.40:60779     192.168.11.41:3306      ESTABLISHED 25772/java      
tcp6       0      0 192.168.11.40:60729     192.168.11.41:3306      ESTABLISHED 25772/java      
tcp6       0      0 192.168.11.40:60786     192.168.11.41:3306      ESTABLISHED 25772/java      
tcp6       0      0 192.168.11.40:60931     192.168.11.41:3306      ESTABLISHED 25772/java      
tcp6       0      0 192.168.11.40:59997     192.168.11.41:3306      ESTABLISHED 25772/java      
tcp6       0      0 192.168.11.40:60874     192.168.11.41:3306      ESTABLISHED 25772/java      
tcp6       0      0 192.168.11.40:60895     192.168.11.41:3306      ESTABLISHED 25772/java      
tcp6       0      0 192.168.11.40:60900     192.168.11.41:3306      ESTABLISHED 25772/java      
tcp6       0      0 192.168.11.40:60794     192.168.11.41:3306      ESTABLISHED 25772/java

好奇,我一无所知=(

0 个答案:

没有答案