Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Find out the number of connections to tomcat server

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?

like image 855
Thunderhashy Avatar asked Feb 05 '10 19:02

Thunderhashy


People also ask

How many connections can a Tomcat server handle?

The default installation of Tomcat sets the maximum number of HTTP servicing threads at 200. Effectively, this means that the system can handle a maximum of 200 simultaneous HTTP requests.

How do I monitor threads in Tomcat?

Select the PID of the Java process you wish to monitor (the Cognos 10 Dispatcher) and click “CONNECT”: 7. Once connected to the process, click on the “Threads” Tab to observe live updates of the “Thread Usage” over time.

What is Tomcat connection pool?

Tomcat jdbc pool implements the ability retrieve a connection asynchronously, without adding additional threads to the library itself. Tomcat jdbc pool is a Tomcat module, it depends on Tomcat JULI, a simplified logging framework used in Tomcat. Retrieve the underlying connection using the javax. sql.

How do I find Tomcat port number?

Use a browser to check whether Tomcat is running on URL http://localhost:8080 , where 8080 is the Tomcat port specified in conf/server. xml. If Tomcat is running properly and you specified the correct port, the browser displays the Tomcat homepage.


1 Answers

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.

like image 117
BalusC Avatar answered Sep 19 '22 22:09

BalusC