Wrox Programmer Forums
|
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 10th, 2003, 11:13 AM
Registered User
 
Join Date: Oct 2003
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Page Hits Problem

Hello all

I've been racking my brain on a project I was given and can't seem to come up with a solution. We have a load balancer that will direct our clients to one of 5 web servers. On the webserver we have 4 application for our different clients. The clients are given generic login id's for associates to use and are directed to menu page when they enter. I'm looking for a way to track page hits for each application on pages we determine to be important and capture request being submitted. I also want to be able to track active session and total time of that session. The results will be used for capacity planning and eventually for billing purpose.

So I need

* how many people access the different application every hour and day (just login).
* of those, how many time a particular page gets hit.
* and the requests being made.

I know it sounds like alot, but I'm only looking for suggestions to get me started.

Thanks
EM

of
 
Old October 10th, 2003, 12:05 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Are any of these applications already using a database for their functioning? Is this database common to all the servers? Because then it becomes remarkably easy to capture tracking data. You just need to set up some common calls to save page hits to the DB, then you can derive any statistics you want from that data.

Peter
 
Old October 10th, 2003, 12:18 PM
Registered User
 
Join Date: Oct 2003
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Planoie

Yes, we have a common DB.....I was thinking about tracking current session sperate from page hits and write results to DB....The problem is we have tons of hits and I don't want to create a bottle neck on the server.

EM

EM
 
Old October 10th, 2003, 12:46 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Not to be cynical or anything, but from past experiences I can say that I'm close to certain that 1 SQL write per page hit will create no worse of a bottleneck than you may already have in the code that is running, particularly if this is a database intensive application.

What do you mean when you say "tracking current session separate from page hits"? What session can you track without tracking page hits? I don't see how/what you would track in the session. It sounds like you want to have the sessions maintain their own tracking data then eventually write that "in summary" to the database. One question that raises is how do you know when the session is over? In ASP, the Session_OnEnd function in the global never seems to work quite right. Many people have reported that the function never fires. I don't think that is reliable. Short of that, I don't see how you'd be able to do this.

Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
Word search - Count Hits bonekrusher XSLT 5 January 2nd, 2008 10:26 AM
bring together MySQL hits in ASP script crmpicco Classic ASP Databases 1 June 1st, 2006 04:10 PM
track ing hits on web pages bsc12 Classic ASP Basics 2 September 8th, 2004 12:24 PM
Stored Procedure hits wrong index ashettleroe SQL Server 2000 6 June 30th, 2004 05:28 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.