找出tomcat服务器的连接数 [英] Find out the number of connections to tomcat server

查看:745
本文介绍了找出tomcat服务器的连接数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Tomcat Server 5.5.17上部署了Java / Java EE Web应用程序。我想知道连接到服务器的客户端数量。我们怎样才能找到它?

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?

推荐答案

最可靠的方法是搜索 ip.addr。 of.srv:port in netstat 。这是基于Windows的示例(抱歉,这里没有Linux专家;)

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"

在Tomcat监听的IP中替换 12.34.56.78 Tomcat监听的端口 80

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

这实际上不是编程问题,因此我投票支持迁移问题 serverfault.com

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

这篇关于找出tomcat服务器的连接数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆