View Full Version : tomcat status
satyawan
01-06-2010, 17:32
hello everybody,
i am working on my load balancing project so i need total number of request on tomcat server without using any browser so tell me if any program is there to fetch total request on server that can i use in my load balancing program.
thanks.
Kees de Kooter
01-06-2010, 19:37
Dear satyawan,
Have you considered logging to a file?
kjkoster
01-06-2010, 19:55
Dear Satyawan,
To test a load balancer, you can generate traffic using for example jmeter. To see the number of requests that a particular Tomcat processed, you can enable the access log valve (see server.xml) and count the lines in the generated log file.
Kees Jan
satyawan
06-06-2010, 17:43
thank you kees jan i tried it. but it is showing total number of access since tomcat startup.My problem is that i want
current number of requests at current moment running on tomcat server.more specifically i want to use following parameters listed in tomcat status page in my program.........
HTTP 8080:
Current thread count: 3 Current thread busy: 3
Max processing time: 162 ms Processing time: 0.346 s Request count: 4 Error count: 1 Bytes received: 0.00 MB Bytes sent: 0.02 MB
satyawan
22-06-2010, 20:07
I think, I asked very difficult problem here so no body able to answer it.Sorry friends i chose wrong forum.:)
Kees de Kooter
22-06-2010, 20:10
Tomcat is open source software, so I suggest you take a look at that source and see how they did it.
Good luck.
satyawan
23-06-2010, 19:12
Thank you
Sir
for your suggestion I know tomcat is open source. I download its source code and go through it but didnot get anything because it is very difficult for me to understand it.Sir I am a student of engineering and don't have much expertise in it so if you really know some api of tomcat or some code so please let me know it is very crucial for my final project work please help me.
thank you
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.