473,480 Members | 1,676 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to calculate the website bandwidth(Asp.net 2.0 and C#)

83 New Member
Hiii all,

I've been strugling since long time in finding out the solution for my problem.

Here is my problem..i need to calculate the bandwidth for my website that i've developed for one my client.The requirement is whenever users hit my website i need to calculte the bandwidth on the server side that a partcular user is using per second.i found that there are few performance counters are availabe in ASP.NET but they are for per request basis.(a request may take more than 1 sec to complete).

i've been searching in the net ..but didn find any solution yet.

Requesting you all kindly help me in this regards

Regards,
Tiru.
Nov 10 '08 #1
2 2089
Plater
7,872 Recognized Expert Expert
If a request takes more then one second to complete, divide the usage by the number of seconds it took to complete.
Then you have an average amount per second
Nov 10 '08 #2
btreddy
83 New Member
This is what the code im using to calculate the total no: of bytes out ,but its always showing '0'.

this.performanceCounter1.CategoryName = "ASP.NET Applications";
this.performanceCounter1.CounterName = "Request Bytes Out Total";
this.performanceCounter1.InstanceName = "__Total__";
this.performanceCounter1.MachineName = "mymachinename";

in the button click event i called the NextValue() function.

performanceCounter2.NextValue().ToString())

Please tell me whr i was wrong.
Nov 11 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
1113
by: Arjen | last post by:
Does ASP.NET (this website) runs on XML files? Thanks!
26
1833
by: S. Justin Gengo | last post by:
I installed the release of Visual Studio.NET 2005 Professional a few days ago. I've been using the Beta for a few weeks and one immediate problem is that I don't seem to have full intellisense in...
0
1131
by: Mark Nontaldo | last post by:
Hi, Please excuse that I am posting this question to 2 groups. But I really do not know which group I should post to... I purchased the Aloaha PDF Crypter API to convert PDF documents to...
2
1027
by: Anthony Bollinger | last post by:
I have inherited a new website and am learning ASP.NET. The person who handed the site off to me does not know if the site is old ASP or ASP.NET. How do I tell what I am working with? Many...
0
916
by: barry | last post by:
I have the C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ASP.NETWebAdminFiles directory so I know it was downloaded with vs 2005 but when I go into the website menu and click on asp.net...
2
2238
by: gordonjones | last post by:
I'm at a real stumbling block and need to get this fixed ASAP. I've uploaded my club site files, my DB is in SQL Server on the web host (webhost4life.com)... I ran aspnet_regsql.exe against my...
1
2053
by: Patrick.O.Ige | last post by:
After creating a website in VS.Net 2005 (IIS 5.1) I can't see any of my website virtual directory in IIS After doing some search i camr across the info below -link-...
2
1606
by: Wayne Smith | last post by:
Applies to: Visual Studio 2008 Professional Hi everyone, I'm in the middle of creating a website with VS2008 and I'm trying to integrate a user registration/login section on the website but I've...
1
1784
by: btreddy | last post by:
Hii all , i want to provide a link for the users, who visit my website ,to download a file (.doc)of size 2MB from my system on which my website is running . How can i do this . Thanks...
0
7037
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6904
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7034
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7076
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
6886
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5324
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
2976
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1294
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
174
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.