Find out the number of connections to tomcat server

后端 未结 3 1647
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-03 10:55

I have a Java/Java EE web application deployed on Tomcat Server 5.5.17. I want to know the number of clients which are connected to the server. How can we find it out?

3条回答
  •  感动是毒
    2021-02-03 11:15

    Most reliable way would be to search for ip.addr.of.srv:port in netstat. Here's the Windows based example (sorry, no Linux guru here ;) )

    netstat -np tcp | find "12.34.56.78:80"

    Replace 12.34.56.78 by IP where Tomcat listens on and 80 by port where Tomcat listens on.

    This is actually not a programming problem, hence I voted to migrate this question to serverfault.com.

提交回复
热议问题