RSS Forums RSS
Please support our Windows Servers and IIS advertiser: Programming Forums
Views: 4549 | Replies: 6
Reply
Join Date: Mar 2004
Posts: 733
Reputation: Phaelax is on a distinguished road 
Rep Power: 6
Solved Threads: 31
Phaelax Phaelax is offline Offline
Master Poster

IIS question

  #1  
Nov 29th, 2004
When running IIS on 2k pro, is there a way to show the current connections, and which files are being accessed?
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Apr 2004
Posts: 321
Reputation: bentkey is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 8
bentkey bentkey is offline Offline
Posting Whiz

Re: IIS question

  #2  
Nov 29th, 2004
No. The question actually has no meaning with any web server, because they don't maintain connections at all. Although you get the impression you are "connected" to a site, actaully you are only connected for the length of time it takes to send the requested page to your web browser and then you're disconnected until you request another page. This is why web connections are referred to as "stateless", because no state of connection is ever maintained. The best you can do is configure and examine the web server log files which attempt to do what you ask. But they are always considerably "after the fact" and only really approximate things. To make any sense of them you'll need a log analysis tool. AWStats and Analog are 2 free ones that come to mind, little bit of a job setting them up though. Hope it helps.
bentkey MCSE,CCNA

SupportWindow Remote Desktop Software
Bytewiser Data Systems
Reply With Quote  
Join Date: Mar 2004
Posts: 733
Reputation: Phaelax is on a distinguished road 
Rep Power: 6
Solved Threads: 31
Phaelax Phaelax is offline Offline
Master Poster

Re: IIS question

  #3  
Nov 29th, 2004
what about the ftp?
Reply With Quote  
Join Date: Apr 2004
Posts: 321
Reputation: bentkey is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 8
bentkey bentkey is offline Offline
Posting Whiz

Re: IIS question

  #4  
Dec 2nd, 2004
Sorry, I missed your post. Ftp does use connected state and you can see the active connections in the ftp site properties box, but it won't show what the users are accessing. I really don't know if there is a way to do that with other software or not. ftp logging is similar to web logging.
bentkey MCSE,CCNA

SupportWindow Remote Desktop Software
Bytewiser Data Systems
Reply With Quote  
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 11,070
Reputation: cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice 
Rep Power: 33
Solved Threads: 118
Admin
Staff Writer
cscgal's Avatar
cscgal cscgal is online now Online
The Queen of DaniWeb

Re: IIS question

  #5  
Dec 2nd, 2004
Question moved to IIS forum.
Dani the Computer Science Gal
Reply With Quote  
Join Date: Apr 2004
Location: Dallas, Tx
Posts: 373
Reputation: blud will become famous soon enough blud will become famous soon enough 
Rep Power: 6
Solved Threads: 5
Moderator
Staff Writer
blud blud is offline Offline
Linux Reject

Re: IIS question

  #6  
Dec 23rd, 2004
Technically at any given time, you could run a netstat -an to get the sessions, then grab the output from a utility called filemon which monitors all file activity, you can't tell which ip is getting what but it does give you a good suggestion on how many connections there are and what % of them are grabbing a particular file.
Reply With Quote  
Join Date: May 2005
Posts: 1
Reputation: CSharper is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
CSharper CSharper is offline Offline
Newbie Poster

Re: IIS question

  #7  
May 31st, 2005
Originally Posted by bentkey
No. The question actually has no meaning with any web server, because they don't maintain connections at all. Although you get the impression you are "connected" to a site, actaully you are only connected for the length of time it takes to send the requested page to your web browser and then you're disconnected until you request another page. This is why web connections are referred to as "stateless", because no state of connection is ever maintained. The best you can do is configure and examine the web server log files which attempt to do what you ask. But they are always considerably "after the fact" and only really approximate things. To make any sense of them you'll need a log analysis tool. AWStats and Analog are 2 free ones that come to mind, little bit of a job setting them up though. Hope it helps.

Actually bentkey, the information you've provided is not accurate. First of all, the client's connection to a webserver (IIS in this case) doesn't simply die. The connection won't actually get tombstoned if the server has activated keep-alives in order to maintain said connection. This is done so that the server doesn't have to waste the resources of re-establishing a connection with each request.

Furthermore, while it is possible (albeit a poor approach) to go log monitoring, it is a much better idea to hook into IIS and read the requests as they come in. On that note, FTP does maintain a connection, and requests can be extrapolated in much the same way.

Now you know.

CSharper MCP, MCP+I, MCSE, MCAD, MCSD, MCT
Last edited by kc0arf : Jun 1st, 2005 at 3:55 pm. Reason: Edited to remove attitude
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 2:48 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC