MVC :: Very Low IIS7 / MVC2 Stress-testing Performance With A Real Simple Request?

Jul 22, 2010

I'm currently developing a few ASP.NET MVC2/.NET 3.5SP1 web-services that are mostly IO bound (execute a couple HTTP back end calls + DB write per request) and i'm getting really poor load-testing performance.

To make sure it wasn't something in my application, I created a brand new ASP MVC 2 project (project -> new -> "ASP.NET MVC2 Web Application", based on .NET 3.5 SP1), added a "TestController" with the following action:

[Code]....

I deployed this on a dual-core test server, running Win2008 and IIS7, Application Pool set to "integrated mode". I have the following in my C:WindowsMicrosoft.NETFramework64v2.0.50727Aspnet.config:

[Code]....

Just in case, I added the following DWORD key in the registry:

[Code]....


I verified I was able to access my test action from a regular browser and started a load test from another machine on the same network: user load set to 500, no "think" time.

The following is what I observe on the machine running the loadtest after about 8 minutes:

req/s: 5.98avg response time: 78.4 secondsno errors whatsoevernote that the local CPU is 1-2% On the test server, this is what I observe using perfmon:

request current: flat line at 501request execution time: flat line at 1506 ms avg => this makes sense though I don't understand why I see the request coming back after 78 seconds at the other end% proc time avg < 1%request queued as well as all others asp.net v2.0.50727 counters at 0 I don't get it. I believe the expected behavior would be to see about 333 req/s (500/1.5) with a avp response time of 1.5xx seconds...

View 1 Replies


Similar Messages:

Application Performance And Stress Testing?

Jul 29, 2010

I want to test asp.net application for stress, load and performance. Please guide me what free tools should be used for this ? Is there any tool which particularly can be used to analyse individual components, functions and scripts and resources they use ?

View 2 Replies

Performance - IIS7 Obtaining CPU Usage Per Request?

Feb 17, 2011

I have an asp.net application running on a production server.

The cpu usage on the server is very high, 80-90%.

Each request however does not appear to be taking too long, unless the cpu has peaked at 100%.

I need to obtain some profiling data in order to determine if the high cpu usage is due to a small number of high cpu requests, or, if it is just general high load.

I can add more cores to the machine and also web farm the app but I will need evidence in order to justify any costs and future proofing the performance.

Is there a way of logging to a file the CPU usage for each page request?

View 1 Replies

Stress Testing Managed Host With VS 2008?

Jan 31, 2010

Is it possible to stress test a managed host (not my own machine) using VS 2008?

View 4 Replies

Visual Studio :: Limiting Webdev.webserver Bandwidth For Stress Testing?

Jul 25, 2010

I wantto make a slower transmitting/transferring data speed for debugging issues.(no threading sleep is not my answer) searching a way to limit webdev.webserver speed (bandwidth) ?

for example maybe checking on "custom web server=webdev.webserver /BandwidthLimit=128bs"

View 1 Replies

Web Forms :: Automatically Populate A File Upload Control's File For Automated Testing And Server Stress And Java

Aug 9, 2010

is it possible to automatically populate a file upload control's file for automated testing and server stress. I have one upload control (that simply brings up the browse and selects the file) and a button that uploads the selected fileupload control's file. Is it possible to give the file upload control a file pather "C:myImage.jpg" and submit the file by pressing the upload butto:

document.getElementById("fileUpload").value = "C:myImage.jpg";
document.getElementById("btnUpload").click();

View 5 Replies

Get The Real Requested URL Using IIS7

Feb 7, 2010

Using ASP.Net, I am trying to determine the actual URL requested by the user. For example if I type the following into my address bar: [URL] Fiddler shows me that this is the URL being sent over the wire however by the time it reaches ASP.Net all of the variables in HttpContext.Current.Request are showing this URL: [URL] The IIS logs show the same cleaned up version of the URL as ASP.Net. This causes some of the relative links on the site to break so I would like to at least detect and log these requests. I am using IIS7 on Windows 7 and .Net 3.5 SP1. What is doing this translation and how can I find out the original URL?

View 1 Replies

Is There A Performance Testing Tool For Dll's

Feb 18, 2010

I know red-gate's ANTS Performance Profiler but it works with source code. I have an ASP.NET web application that is deployed on a remote server. I'm going to test its performance while it is working on the server.

My main goal is to detect what method of what class is slow and then is a bottleneck. Is there a way or a tool?

View 1 Replies

Testing ASPX Page Performance On Simultaneous Requests

Oct 26, 2010

I have to test my asp.net web application for performance when there are simultaneous requests for the web site in my developer machine before deploy in production. How can I achieve this using Visual Studio?.(without using third party tools preferably Visual studio 2010 professional edition

View 3 Replies

Visual Studio :: Load And Performance Testing Using .net 2008?

Feb 4, 2010

Is there any way to test my website using MS .net 2008 tool.

View 1 Replies

MVC2 - How To Mask A Simple Dot In A String

Aug 20, 2010

This works fine: Controller.cs

ViewData["MyText"] = "Hello World";
Index.aspx
<%: Html.Label(ViewData["MyText"].ToString()) %>

But the complete text is not displayed when I add just a dot "." to "Hello World". I thought "<%:" takes care for this but it seams that this is not true... How to solve this? How to mask the dot? Changing "." with "%2E" doesnt work ;-(

View 1 Replies

Visual Studio :: Testing A Simple Web Service?

Jan 20, 2010

So I started a new solution in vs2010b2.

1. I added a WebService project to this solution.

2. I added a WebApplication project to this solution.

3. I clicked Add Web Reference

4. I clicked Web services on the local machine

5. Web Services listed on my local machine:

"There was an error while enumerating services on local machine:

Active Directory Services cannot find the web server. A possible cause for this is an incompatibility between versions of Internet Information Server (IIS) on the client and the server. Another possible cause is that IIS is not installed on the local machine, or the user identity under which you are running may not have permissions to view websites on this machine. To view websites on this machine, make sure that you run Visual Studio as administrator. On Windows Vista computers with IIS installed, make sure that
IIS Metabase and IIS 6 configuration compatibility feature is enabled."

I have Visual Studio 2010 beta and Visual Studio 2008 Professional installed on this computer. I do not have any IIS server installed. Do I require a IIS server when coding webservices+webapplications?[URL]

View 1 Replies

Configuration :: How To Use IIS7 To Host Precompiled Website For Testing

May 11, 2010

I have a simple website developed on vwd2008express edition .

I have precompiled the site and have all compiled files in a folder.

how to go abt deploying these files on iis.

View 2 Replies

WebMatrix :: Testing Emails Sending (SMTP) Under IIS7 Express

Oct 16, 2010

I don't have web server account yet so I must test my applications with the Web Development Server under VS 2010 with C# but I read that I couldn't send emails under that server but I also read that I can send email with IIS7 Express and that's the main reason why I've install Webmatrix. Maybe someone can confirm this. So for the moment I am redirecting my emails into a local folder and it is working perfectly. Here is part of the code I've add to the Web.Config for doing that.

[Code]....

As you can see I am redirecting the emails to the D: emp

[Code]....

What are the values of username & password. or others when we use the Webmatrix server and how can I fint hem? It was hell posting this text I think the inserted code was interfering with the HTML of the message or there are bugs in the editor,

View 3 Replies

Add Simple Security And Measure Performance Of Web Service?

Jul 8, 2010

I'm making a app for a bank, but it doesnt manage very important data. I have two problems, it will run over a VERY large LAN network protected by all kinds of security(antivirus and firewalls) and the bandwidth in certain regions is as low as 56kbps.(Its a desktop app with a web server backend connected by web services)

From the security point of view all I want is to prevent someone from executing the web services from some other source or app results in change in the database . I'm thinking of each desktop app installed with a install code, this will be hashed and required as a parameter for every function call and will act as an authentication ticket? Is this good enough? Are they better SIMPLER means?

For performance, how do I measure or know if the web service will send and receive data at a decent rate?

View 2 Replies

MVC2 - IIS7.5 Doesn't Find View File For Home Page

Aug 25, 2010

We have a mid-sized asp.net project that we just promoted from our dev server (Windows 2003) to an external test server (Windows 2008 R2). On the test server, IIS is not finding our home page, which is located in the views/home folder (404 error). As far as we can tell, the settings are the same on both servers. I've confirmed HTTP redirection is installed. Is there perhaps some critical configuration we may have missed on IIS7.5 to let it know where to find the view and/or home page?

View 2 Replies

Simple IIS7 Url Rewrite Doesnt Work?

Nov 19, 2010

In my local enviroment it just works. Iam no IIS Admin so ....

i try the following

My domain "http://mysite.com/" goes to my url provided by my hosting service (discountasp.net)

I want that this url goes to the root/mysite/ virtual directory but i want that the url stays on "http://mysite.com/". So i defined the following rule, but it doesnt work for me.

here is my web.config that is placed in the root directory (generated by the IIS7 Remote Administration UI)

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>[code]....

View 1 Replies

Configuration :: Simple Page Freezes On IIS7 And Works On IIS6?

Jul 13, 2010

I've done a very basic asp.net test page that populates dinamically (with items from 0 to 99) an asp:listbox on the onload event (only once, if not ispostback).

The asp:listbox is static, and there's an asp:button that I use only to produce a postback (it has no onclick server code)

When I execute it under II6 it works perfecty, but under IIS7 I get a strange behaviour: every now and then, when I push the asp:button, the page freezes and it's unable to postback.

I don't get a specific asp.net error as usual, just a blank page as if the website didn't exist!

The message is "Internet Explorer cannot display the webpage"

View 1 Replies

AJAX :: Simple Project Building Fine But No JavaScript In IIS7?

Mar 17, 2010

I'm just getting started with the ASP.NET AJAX Control Toolkit and got it installed into Visual Studio 2008 without issue.I created a very simple sandbox web app by following several tutorials. Some pages have a single button with a modalpopup event, others are using a calendar extender on a textbox. I've gone through many, including ones that you can interact with and seeworking on the website.Each time, VS builds the web app without issue and deploys and runs. The problem, however, is that "no AJAX happens" when I try to use the app. This has happened on two separate PCs running Windows 7 - one with Pro and another running Ultimate, all 64-bit One machine was also running Visual Studio 2010 beta 2).When I hit a page with some of the toolkit controls, the page renders normally and I see a lot of script references in the generated HTML so something's happening. But take one example:

[Code]....

View 3 Replies

Jquery - MVC2 JsonResult This Request Has Been Blocked?

Dec 17, 2010

I know the question is very familiar but i can't over it.This is my Controller Action

public JsonResult AddToCart(int productId, int quantity = 1, int optionValue = 0)
{
AjaxActionResponse res = new AjaxActionResponse();

[code]...

View 2 Replies

Web Forms :: Performance - Page Is Being Loaded For The First Time Vs SubSequent Request?

Sep 17, 2010

I have some serious performance Issues with Windows controls loading first time on IE Browser then subsequent request's. When ever i open Browser first time , mywebsite takes 7 seconds to load, but on subsequent request without closing browser it loads with-in 2 seconds.I Knew IIS on first time it re-compiles the process and for subsequent request's it wont perform and it cahches .I'm looking for better options to improve performance, when ever first time reqest's comes to web server.

On IIS 7 Server,I was using both Dynamic and Static compression enabled.Also,On application pool ,I set "ShutDown Time(Limit)" and "Startup Time(Limit") to 90 (seconds).Here is web.config i disable below to improve performance issues.

<trace enabled="false" pageOutput="false" />
<compilation debug="false"/>

Here is the Server Configuration

Windows 2008 Server
IIS 7 64 bit
Upto Date patches.
.Net Framework 2.0,3.0,3.5

Need inputs to improve performance when user call website for first time.

View 2 Replies

IIS7 Classic Asp Request Takes 1 Minute To Respond

Feb 5, 2011

I took a copy of a website that works fine on a server (done have server access) but when I set up a website in IIS7 and run the classic asp code loading a page is taking nearly a minute. It always loads the pages but just takes forever.

View 1 Replies

MVC :: Request.UserHostAddress / After Deployed And Published To IIS7 Server, Got Ip Address: 1?

Mar 12, 2010

I am using MVC 2, IIS7 on Vista Ultimate.In the VS2008, my application return ip address: 127.0.0.1

but, after deployed and published to IIS7 server, I got ip address: ::1

View 2 Replies

Would Enumerating Folder Contents And Checking Existence Of Several Files On Each Web Request Be A Serious Performance Penalty

Feb 14, 2011

As an extensibility option for my web application I would like to allow the user to add sections to it by simply making new folders and uploading files to them. So, for instance, if they created (in the webroot): /UserContent/StaticPages/First/Second/index.txt. Then in the main menu there would be a new menu point "First" with the submenu point "Second", which would lead to markdown-parsed version of index.txt. This way the user can upload any static menu points he wants (such as "About us", "Contact us", "Our Mission" etc.) Another extensibility point is that I would like them to add headers/footers to specific webpages in a similar fashion. I'm using ASP.NET MVC3, so there are pretty URLs, and it would be easy for the user to just create: /UserContent/Additions/Store/Categories/35/header.txt

And when someone opened [URL] the markdown-parsed header.txt would be prepended. This is simple for the user, and simple for me (I don't need to make sophisticated admin panels and WYSIWYG editors). However I'm worried about the performance. This scheme means that on each GET request I would need to scan the /UserContent/StaticPages folder and check for the existences of the header/footer files (several, because parent levels can have their header.txt/footer.txt as well).

I could cache the result, but then I have to manage the cache and the user will need to know that changes can take up to X minutes to display. Would this be a premature optimization? There won't be much data in those folders, so Windows will probably be able to easily cache their contents itself.

View 1 Replies

Architecture :: Unit Testing - Testing Private Methods Using PrivateObject?

Feb 23, 2011

Recently for a class to implement unit test for one of its private methods I used PrivateObject by creating private accessor instead of refelection, to which i received a code review comment as below

"My main concern with Private Object is the use of object[] in constructor. It replaces strong typing enforced by compiler with JavaScript-style run-time error detection.Consequently , personally, I would not recommend it."

Comments above confused me beacuse as per my understanding reflection also needs the object[] to invoke any method.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved