Quantcast
Channel: Performance
Viewing all 477 articles
Browse latest View live

What "Connection_Dropped_List_Full" in IIS Httperr log refers to?

$
0
0

I can see from official description on (https://support.microsoft.com/en-us/help/820729/error-logging-in-http-apis) that it refers to 

The list of dropped connections between clients and the server is full. Specific to Windows Vista and later versions and to Windows Server 2008 and later versions.
 This explanation does not really make sense since there is no information what exactly that list is and how do you monitor it or configure it. This is not related to application queue being full since that one is presented as separate error message in the same error log as 
QueueFull
 error. Anybody has any insider details what that error specifically means and how it can be configured or monitored

High CPU during stress testing/many concurrent connections

$
0
0

Hi everyone

I've started using an external provider to stress-test my web farm (ok it's 2 VMs, but web farm sounds nice doesn't it?).  I wont mention either the stress-testing site or my own in case I break forum rules.

I slowly built-up the number of concurrent client connections looking for the bottlenecks. 

I've identified that the first thing to fail, by a long, long way, is the IIS host / CPU running at 100%.  Even with only  5Mb/s  network usage, low disk and memory usage etc.

Sadly this limit is reached while the number of clients is relatively low (2000 clients downloading my homepage within a 1-minute period).

I've no idea how to handle this.  Why?

  1. The requests behave like genuine connections from different IPs, so my firewall can't block anything.  Just like a real DDOS attack
  2. The firewall cannot identify these as an attack - they look like real clients
  3. The homepage of my site is not static. Like the rest of my site it's dynamic content / database driven

My MSSQL service is running perfectly and not stressed. Only the IIS is freaking out.

My setup is as follows...
1 IP address > pfSense router (low load) > Load balancer > 2 IIS VMs on 1 host (HP 380 G9, 128GB RAM, 36 core 2ghz)

Using Windows 2016 server (IIS 10) and SQL 2014 Enterprise.

Please could you offer some help/tips how to get IIS under control during heavy usage?

Thanks in advance

-Matt

MapRequestHandler very slow. How to fix it?

$
0
0

We have rolled out a classic ASP.Net WebService application with large traffic. Though our database is running quite well (<10 ms response times), most of the time spent in WebServer is in the MapRequestHandler stage.

The issue seems to be in the ASP .Net stack and without any information available on net, I am clueless as to how to go about improving it.

We use SOAP XML payloads for request/response (if that would help in providing a solution).

I tried to remove most of the Handler Mappings (in IIS) except .asmx and few others, but it did not help.

Any help is highly appreciated.

IIS Is very slow in windows server

$
0
0

Hello all,

I have Install sql server 2014 r2 and iis  8.5 on Windows server 2012 r2

The problem is if there are more than 200 users at the same time IIS will stop working
and will be very very slow and get time out

App pools 

The processor  not up max than 50% and the Rams as well

Is there any solution to that problem

IIS loads slow after folder copy&paste

$
0
0

Hi,

I've a problem with application start times. I have 2 scenarios. 

1. Scenario : Application start duration after iisreset command.

- Run iisreset command.

- Browse a text file.

2. Scenario : Application start duration after copy&paste.

- Run iisreset command.

- Copy application folder(AppFolder) to another location(NewAppFolder).

- Delete application folder((AppFolder)).

- Rename NewAppFolder to AppFolder.

- Browse a text file.

2. scenario spends more time(about %25) than 1. scenario.

My question is

- What spends time in 2.scenario?

- Is there any way to avoid this duration?

Thanks

IIS Server high Physical memeory usage issue

$
0
0

Hello,

I am using Windows server 2012 R2 wit IIS 8.5  .The performance issue i am reporting is on IIS ARR server where there is no application code the ARR server acts as a Proxy to the back end Application server

What i am observing the Physical memory usage in this ARR server goes beyond 98% and  also simultaneously  the virtual memory usage goes very high

In the IIS worker process the Private Bytes and Virtual bytes usage are very high for all the Web pool

As there is no code in the server and the high memory usage is for all IIS processes ,i am not suspecting any memory leak

I have recycled all the app pools and that reduces the memory usage but gradually it grows and goes beyond 98%

Can you suggest how i can troubleshoot

Regards,

Abhishek

IIS Hanging (Freezes) with too many requests

$
0
0

Hi,

We have an IIS 10 installation on our local server. With this server we host a web panel that is very PHP heavy. Most of the time the system will work fine including large scripts that may take a while to run. However, we've started to run into the issue now that if we hit a large amount of requests, IIS will simply hang and refuse to process any of the tasks. The state of most of these processes is in the ExecuteRequestHandler state.

The CPU and RAM on the server appear unaffected by a large spike in traffic.

I'm fairly new to IIS. Does anyone have any suggestions on workarounds/potential fixes and if any more information is needed from myself in order to solve this issue we're having.

IIS vs VS Cassini tcprecv(s) and EF Caching

$
0
0

Hi,

Our development environment uses VS 2010, Silverlight 5.0, .Net framework 4.0, Entity Framework 4.0, WCF Ria Services V1.0 SP2, LINQ. We're observing the following issues in our application deployment to IIS vs Cassini:

- We see many more no. of tcprecv(s) in IIS vs Cassini for a set-of-operations first run, these extra tcprecv(s) are causing a significant difference in the performance numbers though the Data Server and NW behave exactly the same for both Web servers. Are there some known configuration parameters for TCP/IP that need to tweak in? Ideally IIS should be performing better than Cassini as being full blown Web Server.

- In the second run for the same set-of-operations we see lots of queries don't go to Data Server as being resolved in potentially by EF Caching in Cassini vs reaching all out to Data Server again for IIS. What could cause IIS NOT caching and utilizing EF results from the previous run? Please share if we need to perform some additional steps.

We are eagerly waiting up for some directions here as we've exhausted our debug and tracing options. Please let us know if additional information or artefacts need to be shared.

Thanks,

Devendra


Resources to become an IIS/ASP.net performance guru

$
0
0

Hi 

great site. 

I'm a sysadmin struggling to find resources that both 

  • describe the architecture internals (e.g. threads in iis and OS, memory allocation and garbage collection, etc etc)
  • talk through the performance considerations of all of the internals

e.g. that LeanSentry product looks nice. I'd like to be able to understand all of the things that are built into that software.

I guess my problem is that i'm looking in the normal sysadmin places but i should probably looking at more dev-oriented stuff. Google search is not bringing up what i need. 

Basically, i'm looking for something like this but updated for IIS8+: 

https://msdn.microsoft.com/en-us/library/ms998530.aspx

Some resources i've already looked at: 

ResourceDetails
Professional IIS 7Chapter 18/19 (performance and troubleshooting) are pretty brief
IIS7 Resource KitTroubleshooting/performance chapters seem a bit lite. They note lots of things to monitor, but not the "down in the trenches" kind of stuff like "watch out for thread exhaustion with counter x as this means y" etc
Professional Microsoft IIS 8Troubleshooting/performance chapters quite "lite"

 

Have found a few great threads on this site (e.g. below) but would prefer something formal - book, course, set of blog posts

Kernel caching in IIS8.5/10

$
0
0

Hello All,

I know the benefits and limitations of Kernel Mode caching but recently I was trying it on Windows Server 2012 (IIS 8.5) and it appeared no perf improvement or may be not working. 

I applied kernel cache for .aspx page but no improvement. I tried the command NETSH HTTP SHOW CACHESTATE then it resulted in no result which made me think that either the command is not working (I used it in windows server 2008) or caching is not working.

Please suggest.

Cookies in WCAT

$
0
0

Hi All.

I am just getting started with using WCAT and I seem to be having some issues with cookies. All the documentation seems to suggest these are handled for us without having to do anything special but when I do a GET on a URL that sets a cookie (I can see it doing that through Fiddler) it doesn't seem to get remembered by the WCAT virtual client for the next steps in the Transaction. Is there a reason why this isn't working or anything I should be doing to make that work?
Thanks!

Where to find MaxConcurrentRequestsPerCPU

$
0
0

Hi,

How to set the below parameters in IIS 8.0.

  1. MaxConcurrentRequestsPerCPU
  2. MaxConcurrentThreadsPerCPU
  3. RequestQueueLimit

According to the RAP tool, currently the MaxConcurrentRequestsPerCPU is set to 12 which needs to be changed to 5000. I am not able to find it in either Aspnet.config or web.config

Please help.

Regards,

Lirish

How to Set Maximum Worker Process in Core.Net

$
0
0

Hi,

We have deployed an application in ASP.NET Core and hosted it in IIS (Version 10.0). I want to use multiple worker process for using that pool. I have set 10 as maximum worker process. But the problem is after setting worker process to 10 my application is logging off frequently and don't allow to login. I'm not using in-proc session mode. I'm saving session in cookies. 

Stress Testing Issue When Adding A Second IIS Server

$
0
0

The diagram below describes our soon to be production environment, our user registration process, our async web API client, and our stress test application.  I have successfully stress tested our User Registration process going to each of our IIS Servers and I am able to run 110 concurrent User Registration tasks without receiving any errors.  I was able to run 50,000 user registrations in about 53 minutes.  The IIS Server's CPU Utilization averaged 78% and SQL Server's was 13%.  Increasing the number of concurrent tasks over 110 results in the following exceptions being thrown: "A task was canceled." or "The underlying connection was closed: A connection that was expected to be kept alive was closed by the server."  My assumption was that IIS was running out of resources.  I was OK with this result.

 

I was hoping to be able to get 220 concurrent user registration tasks (110 for each server) when stress testing both IIS Servers simultaneously.  I placed the stress test client on two separate development machines: 1 targeted the first IIS server and the second one targeted the second one.  I received the exceptions that I mentioned above right away.  I had to reduce the concurrent user registration tasks to 55 for each server in order to successfully run my tests with without exceptions.  My first thought was that SQL was restricting the number of connections, but max concurrent connections is set to 0 which means it unlimited (32767 concurrent connections).  From my research, I don't think there is a per database connection limit.  It doesn't make sense that the issue is on the IIS Servers because each one can separately run 110 tasks concurrently.  I did try increasing the SQL Connection Pool Max Pool Size to 150 (I didn't expect it to solve this problem, but wanted to see if this could allow me to run more than 110 concurrent tasks on a single server).  Any thoughts on where I can check next?

Stress Test Environment

IIS is extremely slow after Windows Fall Creators Update (1709)

$
0
0

Hi everyone,

Recently my computer did an auto update to install Windows Fall Creators Update (1709). I tried updating another computer of mine to see if the update was actually the cause of the issue, and I have the same problem on my other work station. After the update, my ASP.NET Web Application which is configured to run on IIS has become extremely slow when I try to navigate between pages. It appears that the issue only occurs in pages in which the Session variable is in used. Have anyone encountered the same issue or any suggestion to debug the issue?

Thank you.


IIS Output Caching removes max-age and expires response headers

$
0
0

We run a relatively high-traffic site on IIS 10 and have recently been setting up output caching to improve performance on static and static dynamic (resized images for instance) resource files.

The default IIS settings don't appear to be very useful for large websites with footprints of tens of thousands of files, so we tweaked the configuration to reflect some lessons we learned elsewhere online. These may be useful to diagnose the problem, or just for someone else looking to optimise:

Updating the registry setting to define how long files are kept in the cache using HKLM\System\CurrentControlSet\services\InetInfo\Parameters\ObjectCacheTTL updated to 21600 (6 hours)

Likewise, increasing the MaxCachedFileSize to 6291456 (6 MB in bytes)


Updating httpCompression maxDiskSpaceUsage="2048" (mb) in applicationhost.config

Setting the app pool timeout to 0, and start mode to always running


Setting <serverRuntime frequentHitTimePeriod="12:00:00" frequentHitThreshold="2" /> in applicationhost.config so that output caching kicks in on the second request for any file in a 12 hour period


Adding extension profiles in web.config for .jpg, .png, .gif, .mp4, .css, .js, .woff, .ttf, etc. with policy="CacheUntilChange" kernelCachePolicy="CacheUntilChange" varyByQueryString="v" location="Any" (location=any to remove the cache-control: no-cache header


And in IIS, turning on keep-alive and setting expire web content to 28 days using http response headers > set common headers

In our MVC image resizer, we set:

    Response.Cache.SetSlidingExpiration(true);
    Response.Cache.SetCacheability(HttpCacheability.Public);
    Response.Cache.SetExpires(DateTime.Now.AddDays(28));
    Response.Cache.SetMaxAge(new TimeSpan(672, 0, 0));

    Response.Cache.SetLastModified(lastModified);

    Having recycled the app pool to clear the cache, the first hit on a file returns all of the correct headers. But after the second hit, when IIS output caching has kicked in, the expires, last modified and max-age headers all disappear.

    Does anyone have any ideas about why this is the case?

    How to diagnose "Thread::intermediateThreadProc issue"

    $
    0
    0

    Hi,

    I have web application running on IIS, my application sometime have CPU percentage above 90%. When i collect the dump file then i found there are few threads which are taking more time. Please find one of the thread diagnose report. 

    I am not able to understand how to solve this problem and where to start. Could you please help me to understand what this issue is and why this is happening.

    Thread 33 - System ID 10552
    
    
    
    Entry point   clr!Thread::intermediateThreadProc
    Create time   2/7/2018 7:30:32 AM
    Time spent in user mode   0 Days 00:06:17.437
    Time spent in kernel mode   0 Days 00:00:07.203
    
    
    
    Call Stack
    
    
    
    
    ntdll!NtWaitForSingleObject+14
    KERNELBASE!WaitForSingleObjectEx+8f
    clr!CLRSemaphore::Wait+8a
    clr!ThreadpoolMgr::UnfairSemaphore::Wait+f1
    clr!ThreadpoolMgr::WorkerThreadStart+2d1
    clr!Thread::intermediateThreadProc+86
    kernel32!BaseThreadInitThunk+14
    ntdll!RtlUserThreadStart+21
    Thread 34 - System ID 12348
    
    
    
    Entry point   clr!Thread::intermediateThreadProc
    Create time   2/7/2018 8:53:47 AM
    Time spent in user mode   0 Days 00:06:16.171
    Time spent in kernel mode   0 Days 00:00:04.750
    
    
    
    Call Stack
    
    
    
    
    ntdll!NtWaitForSingleObject+14
    KERNELBASE!WaitForSingleObjectEx+8f
    clr!CLRSemaphore::Wait+8a
    clr!ThreadpoolMgr::UnfairSemaphore::Wait+f1
    clr!ThreadpoolMgr::WorkerThreadStart+2d1
    clr!Thread::intermediateThreadProc+86
    kernel32!BaseThreadInitThunk+14
    ntdll!RtlUserThreadStart+21
    
    
    
    Thread 35 - System ID 11236
    
    
    
    Entry point   clr!Thread::intermediateThreadProc
    Create time   2/7/2018 9:34:20 AM
    Time spent in user mode   0 Days 00:03:33.187
    Time spent in kernel mode   0 Days 00:00:07.375
    
    
    
    Call Stack
    
    
    
    
    ntdll!NtDelayExecution+14
    KERNELBASE!SleepEx+a7
    clr!EESleepEx+33
    clr!ThreadpoolMgr::UnfairSemaphore::Wait+b1
    clr!ThreadpoolMgr::WorkerThreadStart+2d1
    clr!Thread::intermediateThreadProc+86
    kernel32!BaseThreadInitThunk+14
    ntdll!RtlUserThreadStart+21



     

    Intermittent Site Hang (ASP Request Execution Time)

    $
    0
    0

    Background

    We have a third party application running which has its own 2012 R2 IIS server (2x 2.29Ghz, 8Gb, VM within VMWare environment) and also uses our 2014 SQL Server.   The issue started on 22 January and prior to that the site has worked fine for 4 years.

    For the last 3 weeks, seemingly intermittently the web application has become unresponsive for anything from 20 seconds to 20 minutes, however CPU/Memory/Disk access is fine.  Performance Monitor shows a big spike in Active Server Pages "Requests Queued" and "Requests Executing" over the same time period.  Other counters (Drive, Network, plus the SQL server access) all look normal and do not spike.

    The web server has been migrated to different hosts, and even to a different data center altogether.  In addition we have also spun up another 2012 R2 server and migrated the site and the problem follows.

    We have 2 other instances of this product, each with a dedicated web server and neither have this issue.

    Using performance monitor we can see the request queue spike by 5x and in turn drive up executing time.  Is there anything in IIS we can use (knowing the start and finish time of the issue) to potentially see the trigger of this spike?

    Any help, advice and pointers appreciated!

    Performance difference between IIS 7.5 (Windows server 2008 R2) and IIS 8.5 (Windows Server 2012 R2)

    $
    0
    0

    Dear all,

    we have implemented an ASP.NET MVC site that read some data from cache and return json.

    The site installed in an WS 2008 R2 machine responds quickly: 165 concurrent requests in about 6 seconds.

    But the same site in an WS 2012 R2 machine responds slowly: 165 concurrent requestes in about 20 seconds.

    The site is installed in the same manner with the same configuration; we don't have change the default settings of application pools and sites; both the servers are virtual (VMWare).

    We try to use Performance Monitor to understand more about the problem: in fact we see that in the first server the Req/s are more than the second server.

    What can we do to diagnose the problem?

    Thanks in advance.

    Slow Rendering of Default Page (IIS 10)

    $
    0
    0

    In each of several directories I have default.aspx pages.

    I've set the default documents in IIS configured such that default.aspx is at the top of the list.

    The default pages still take about 2-3 minutes to load.

    So if I navigate to www.domainname.com/accounting/default.aspx the page loads quickly; however, if I navigate towww.domainname.com/accounting/ the page takes ~two minutes to load.   The pagedoes load, it is found but it takes a very long time only when relying on the default behavior.

    Any help appreciated.

    Viewing all 477 articles
    Browse latest View live


    <script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>