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?
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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With