Previous Next

Thread: ASP.NET APPLICATIONS - HIGH SESSIONS ACTIVE COUNT

Last post 07-15-2008 12:01 PM by arunsun. 8 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (9 items)

Sort Posts:

  • 09-16-2007, 12:43 AM

    • brikeler
    • Not Ranked
    • Joined on 09-16-2007, 4:33 AM
    • Posts 3
    • brikeler

    ASP.NET APPLICATIONS - HIGH SESSIONS ACTIVE COUNT

    Running multiple websites on IIS 6.0 on Windows 2003 Standard.

    One instance (ASP.NET version 2.0.50727) is showing a 'ASP.NET Applications / Sessions Active' to be a constant high value of 4294967114.  This will immediately increase to this value after the IIS services have been running for less than 30 seconds.  This instance is for a virtual directory with its own dedicated application pool.

    The registry has the proper permissions for the NETWORK SERVICE to access (HKLM\System\CurrentControlSet\Services\ASP.NET_2.0.50727\Names - Allow:  Query Value; Set Value; Create Subkey; Enumerate Subkeys; Notify; Read Control - applies to 'This key only')

    Anyone have any ideas as to why this value would always be so high?

    Thanks in advance for any assistance.

  • 09-17-2007, 11:15 PM In reply to

    Re: ASP.NET APPLICATIONS - HIGH SESSIONS ACTIVE COUNT

    Hi brikeler,

    Based on my research, there does exist 'Session Active' counter, however I can't find the 'ASP.NET Applications / Sessions Active' in ASP.NET performance objects in the Performance Monitor. Could you tell me which performance objects category does it belongs to? It might be a custom counter as well.

    According to this TechNET document: http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/a8c5b994-7722-4dc6-a246-7dfe667c6816.mspx?mfr=true, 'Session Active' counter is used to track the number of sessions that are active. So the 'ASP.NET Applications / Sessions Active' counter might be the number of ASP.NET Applications divides the number Active Sessions. If the latter has a lower value, the resulting value might be high. Could you verify if the seporate value is normal in about 30 seconds?

    Hope it helps.

    Zhao Ji Ma
    Sincerely,
    Microsoft Online Community Support

    “Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
  • 09-18-2007, 1:20 AM In reply to

    • brikeler
    • Not Ranked
    • Joined on 09-16-2007, 4:33 AM
    • Posts 3
    • brikeler

    Re: ASP.NET APPLICATIONS - HIGH SESSIONS ACTIVE COUNT

    Thank you for your reply.  I appreciate your time.

     The 'Sessions Active' comes from the various Application Pools assigned on the server.

    In this particular case, the Performance object is ASP.NET Apps v2.0.50727, Counter = Sessions Active, Instance = _LM_W3SVC_2010009591_Root_GiftCard.

    The value never appears to show as 'normal', it just sits at 4294967167.

  • 09-18-2007, 6:36 AM In reply to

    Re: ASP.NET APPLICATIONS - HIGH SESSIONS ACTIVE COUNT

    Hi brikeler,

    Do you mean it always sits at 4294967167 when it reaches this value? 

    Although it doesn't look like the server is a heavy load one. Based on my understanding, you could still try following code to keep track of active session number in code. This can be used to compare to the current Session Active number. The session time out value in web.conf file was changed to one minute to make it easier to monitor the change of the active session number. In my test, the number is same as the Session Active counter. Otherwise we may need to go further to find out what is going on with the Session Active counter.

    //Global.asax

        void Application_Start(object sender, EventArgs e)
        {
            Application["ActiveSession"] = 0;

        }

    ....
        
        void Session_Start(object sender, EventArgs e)
        {
            Application["ActiveSession"] = (int)Application["ActiveSession"] + 1;

        }

        void Session_End(object sender, EventArgs e)
        {
            Application["ActiveSession"] = (int)Application["ActiveSession"] - 1;
        }

    // .aspx

    Response.Write(Application["ActiveSession"]);

    // Web.conf

        <sessionState mode="InProc" timeout="1" />

     

    Zhao Ji Ma
    Sincerely,
    Microsoft Online Community Support

    “Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
  • 09-18-2007, 8:30 PM In reply to

    • brikeler
    • Not Ranked
    • Joined on 09-16-2007, 4:33 AM
    • Posts 3
    • brikeler

    Re: ASP.NET APPLICATIONS - HIGH SESSIONS ACTIVE COUNT

    "Do you mean it always sits at 4294967167 when it reaches this value?"

    Yes

    I will speak with our developers to see if we can implement this and see what it reveals.

    To your knowledge, any reason why this counter is so high.  Other counters of the same type (but not all) appear to behave in an expected manner (numbers below 100 and fluctuating).

     

  • 09-19-2007, 3:39 AM In reply to

    Re: ASP.NET APPLICATIONS - HIGH SESSIONS ACTIVE COUNT

    Hi brikeler,

    Do you have any other server facing the same issue? Based on my understanding, it might be our product issue. However I would like to verify first if this is the case. The code provided in my last post can be used to narrow down the issue.

     

    Zhao Ji Ma
    Sincerely,
    Microsoft Online Community Support

    “Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
  • 05-20-2008, 10:47 AM In reply to

    • arunsun
    • Not Ranked
    • Joined on 05-20-2008, 10:36 AM
    • Posts 3
    • arunsun

    Re: ASP.NET APPLICATIONS - HIGH SESSIONS ACTIVE COUNT

    Hi Zhao,

    This happens in our Production Web server. The Active Session count is consistently around 4294958367. Memory usage on the server looks normal though. When there is iisreset, the count goes down to 0 and comes back to this huge number in a few minutes. There is only one website running on this server and the website has its own AppPool.

    There is another problem with the server. Sometime  the processor usage spikes to 100% and doesnt come down. The server hangs and we need to force it by doing an IISreset. The process that takes all 100% is w3wp.exe. To solve this problem, we do an IIS Reset when the CPU spikes over 90%, this brings the processor back to normal.

    Are these related? Do you know what could be causing this?

    Thanks..

     

     

     

  • 07-15-2008, 6:55 AM In reply to

    • TokBek
    • Not Ranked
    • Joined on 07-15-2008, 10:53 AM
    • Posts 1
    • TokBek

    Re: ASP.NET APPLICATIONS - HIGH SESSIONS ACTIVE COUNT

    arunsun:
    The Active Session count is consistently around 4294958367
     

     Hi,

    Im having the exact same simptoms, did you find the reason for that?

    do you have any solution?

    Thanks

    Tok

  • 07-15-2008, 12:01 PM In reply to

    • arunsun
    • Not Ranked
    • Joined on 05-20-2008, 10:36 AM
    • Posts 3
    • arunsun

    Re: ASP.NET APPLICATIONS - HIGH SESSIONS ACTIVE COUNT

    No solutions.

    Appears like some obvious bug in the performance counters. I dont see any performance drop because of this. Do you?

Page 1 of 1 (9 items)
Page view counter