Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

about config of tomcat for counting hits of index page

 
Kapil Keskar
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello guys,
I have to count the hits of Pages of index page.
So is there any facililty that i can have opening page "index.jsp" to count the hits in tomcat server.
I think it's more on admin part which i have to set it during configuration.
Can any body tell me about how to go for this on local server & also on server side where i don't have sufficient priviledge on site.
Thanks
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18156
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you just need to know how many times the index page is being accessed for admin purposes, the easiest thing to do is monitor the server's access logs. This can be as complex as using a log analysis program or as simple as doing a "grep -c index.html /var/log/httpd/access_log*" (under Linux)
If you're looking for a "Hit Counter" to display on the page, I think your favourite web search engine can probably turn one up.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic