session keeps dying?

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default session keeps dying?

    Hi,
    I've just read the ms KB article on how sessions can die because of the
    underscore in the machine name and don't think that it applies to me. I've
    tried using the IP address of the server and have tested it locally using
    localhost and my sessions still die.

    It seems to happen on one particular page. It has some heavy db activity
    but my connections are pooled.

    It also seems to happen before any activity occurs once it has started to
    fail then every postback to the same page will cause the session to die.

    Does anyone have any ideas. Also if the aspnet worker process is recycled
    would the memory process be set back to a low figure?

    Thanks for any help.

    Steve


    Steve Letford Guest

  2. Similar Questions and Discussions

    1. FMS Edge dying...
      So we've got like 15 Edge servers setup wtih 5 Origin servers. Things seem to generally work for streaming live video. There are problems though...
    2. I'm DYING over this STUPID INFO BAR!!!!!!!!!!!!
      Ok I rightclicked the info bar to download Flash Player 8 and then clicked to never show it again. Can I get it back? I've been trying to get it back...
    3. Help I'm Dying over here
      I am trying to place a .swf file in a frame - the frame is 190 x 430 pixels. When I place it at 100% width and height it fits perfect in Explorer...
    4. Use module (maybe) w/o dying
      sholden@flexal.cs.usyd.edu.au (Sam Holden) wrote in message news:<slrnbh7fkd.75q.sholden@flexal.cs.usyd.edu.au>... I prefer the idiom: our...
    5. Tnslistener dying with 9.2 on Win XP Pro
      "00374654" <member32966@dbforums.com> wrote in message news:3095316.1057846472@dbforums.com... Try this: select 6 * 7 from dual Regards,...
  3. #2

    Default Re: session keeps dying?

    If ASPNET worker process is recycled, your application is restarted.
    Then you will loose all your sessions also.

    "Steve Letford" <sletford@ems-global.com> wrote in message news:<#Tk6K2wWDHA.2032@TK2MSFTNGP11.phx.gbl>...
    > Hi,
    > I've just read the ms KB article on how sessions can die because of the
    > underscore in the machine name and don't think that it applies to me. I've
    > tried using the IP address of the server and have tested it locally using
    > localhost and my sessions still die.
    >
    > It seems to happen on one particular page. It has some heavy db activity
    > but my connections are pooled.
    >
    > It also seems to happen before any activity occurs once it has started to
    > fail then every postback to the same page will cause the session to die.
    >
    > Does anyone have any ideas. Also if the aspnet worker process is recycled
    > would the memory process be set back to a low figure?
    >
    > Thanks for any help.
    >
    > Steve
    Ram Guest

  4. #3

    Default Re: session keeps dying?

    The session_end can fire that often, if you had started a new session every
    3-4 minutes. Then as those sessions end, the event is fired.

    "Steve Letford" <steve@straker.co.nz> wrote in message
    news:uC8N2LzWDHA.1620@TK2MSFTNGP12.phx.gbl...
    > Thanks for the reply,
    > But I checked my memory usage for the aspnet worker process and it remains
    > high when the session ends. Does this mean that it hasn't recycled?
    >
    > Also, I've noticed that without doing anything, i.e. clicking any buttons.
    > I have put a break point on my session_end and it fires every 3 or 4
    > minutes.
    >
    > Not too sure what is going on here?
    > Any ideas?
    >
    > Thanks for your help.
    >
    > Steve
    > "Ram" <rampabbaraju@yahoo.com> wrote in message
    > news:fee5cd7f.0308050038.317fc3bb@posting.google.c om...
    > > If ASPNET worker process is recycled, your application is restarted.
    > > Then you will loose all your sessions also.
    > >
    > > "Steve Letford" <sletford@ems-global.com> wrote in message
    > news:<#Tk6K2wWDHA.2032@TK2MSFTNGP11.phx.gbl>...
    > > > Hi,
    > > > I've just read the ms KB article on how sessions can die because of
    the
    > > > underscore in the machine name and don't think that it applies to me.
    > I've
    > > > tried using the IP address of the server and have tested it locally
    > using
    > > > localhost and my sessions still die.
    > > >
    > > > It seems to happen on one particular page. It has some heavy db
    > activity
    > > > but my connections are pooled.
    > > >
    > > > It also seems to happen before any activity occurs once it has started
    > to
    > > > fail then every postback to the same page will cause the session to
    die.
    > > >
    > > > Does anyone have any ideas. Also if the aspnet worker process is
    > recycled
    > > > would the memory process be set back to a low figure?
    > > >
    > > > Thanks for any help.
    > > >
    > > > Steve
    >
    >

    Marina Guest

  5. #4

    Default Re: session keeps dying?

    Thanks but I'm wondering why the session is ending. I'm not doing anything.
    I'm just sitting watching the screen. My session timeout should be at 20
    mins.

    If the aspnet worker process is recycling wouldn't I see the memory usage of
    it going down each time as it recycles, this isn't happening. Which leaves
    me a bit confused..

    Thanks for any more help.

    Steve

    "Marina" <zlatkinam@nospam.hotmail.com> wrote in message
    news:OqNCaD2WDHA.1204@TK2MSFTNGP12.phx.gbl...
    > The session_end can fire that often, if you had started a new session
    every
    > 3-4 minutes. Then as those sessions end, the event is fired.
    >
    > "Steve Letford" <steve@straker.co.nz> wrote in message
    > news:uC8N2LzWDHA.1620@TK2MSFTNGP12.phx.gbl...
    > > Thanks for the reply,
    > > But I checked my memory usage for the aspnet worker process and it
    remains
    > > high when the session ends. Does this mean that it hasn't recycled?
    > >
    > > Also, I've noticed that without doing anything, i.e. clicking any
    buttons.
    > > I have put a break point on my session_end and it fires every 3 or 4
    > > minutes.
    > >
    > > Not too sure what is going on here?
    > > Any ideas?
    > >
    > > Thanks for your help.
    > >
    > > Steve
    > > "Ram" <rampabbaraju@yahoo.com> wrote in message
    > > news:fee5cd7f.0308050038.317fc3bb@posting.google.c om...
    > > > If ASPNET worker process is recycled, your application is restarted.
    > > > Then you will loose all your sessions also.
    > > >
    > > > "Steve Letford" <sletford@ems-global.com> wrote in message
    > > news:<#Tk6K2wWDHA.2032@TK2MSFTNGP11.phx.gbl>...
    > > > > Hi,
    > > > > I've just read the ms KB article on how sessions can die because of
    > the
    > > > > underscore in the machine name and don't think that it applies to
    me.
    > > I've
    > > > > tried using the IP address of the server and have tested it locally
    > > using
    > > > > localhost and my sessions still die.
    > > > >
    > > > > It seems to happen on one particular page. It has some heavy db
    > > activity
    > > > > but my connections are pooled.
    > > > >
    > > > > It also seems to happen before any activity occurs once it has
    started
    > > to
    > > > > fail then every postback to the same page will cause the session to
    > die.
    > > > >
    > > > > Does anyone have any ideas. Also if the aspnet worker process is
    > > recycled
    > > > > would the memory process be set back to a low figure?
    > > > >
    > > > > Thanks for any help.
    > > > >
    > > > > Steve
    > >
    > >
    >
    >

    Steve Letford Guest

  6. #5

    Default Re: session keeps dying?

    Finally figured it out.
    My page has a dynamically created javascript tree and I have a link that
    allows all the items in the tree to expand or contract.
    If this link is called then it loops through all the top level items and
    sets a cookie saying expanded or contracted.

    If I click on item at a time there is no problem the cookie is set and it
    all works. But when the procedure is called that sets all the cookies at
    once it kills my session????

    my cookie names are all numbers, there aren't any strange characters so its
    a bit of a mystery.

    Appreciate any enlightenment.

    Steve


    "Steve Letford" <sletford@ems-global.com> wrote in message
    news:OzYSM%234WDHA.1204@TK2MSFTNGP12.phx.gbl...
    > Thanks but I'm wondering why the session is ending. I'm not doing
    anything.
    > I'm just sitting watching the screen. My session timeout should be at 20
    > mins.
    >
    > If the aspnet worker process is recycling wouldn't I see the memory usage
    of
    > it going down each time as it recycles, this isn't happening. Which
    leaves
    > me a bit confused..
    >
    > Thanks for any more help.
    >
    > Steve
    >
    > "Marina" <zlatkinam@nospam.hotmail.com> wrote in message
    > news:OqNCaD2WDHA.1204@TK2MSFTNGP12.phx.gbl...
    > > The session_end can fire that often, if you had started a new session
    > every
    > > 3-4 minutes. Then as those sessions end, the event is fired.
    > >
    > > "Steve Letford" <steve@straker.co.nz> wrote in message
    > > news:uC8N2LzWDHA.1620@TK2MSFTNGP12.phx.gbl...
    > > > Thanks for the reply,
    > > > But I checked my memory usage for the aspnet worker process and it
    > remains
    > > > high when the session ends. Does this mean that it hasn't recycled?
    > > >
    > > > Also, I've noticed that without doing anything, i.e. clicking any
    > buttons.
    > > > I have put a break point on my session_end and it fires every 3 or 4
    > > > minutes.
    > > >
    > > > Not too sure what is going on here?
    > > > Any ideas?
    > > >
    > > > Thanks for your help.
    > > >
    > > > Steve
    > > > "Ram" <rampabbaraju@yahoo.com> wrote in message
    > > > news:fee5cd7f.0308050038.317fc3bb@posting.google.c om...
    > > > > If ASPNET worker process is recycled, your application is restarted.
    > > > > Then you will loose all your sessions also.
    > > > >
    > > > > "Steve Letford" <sletford@ems-global.com> wrote in message
    > > > news:<#Tk6K2wWDHA.2032@TK2MSFTNGP11.phx.gbl>...
    > > > > > Hi,
    > > > > > I've just read the ms KB article on how sessions can die because
    of
    > > the
    > > > > > underscore in the machine name and don't think that it applies to
    > me.
    > > > I've
    > > > > > tried using the IP address of the server and have tested it
    locally
    > > > using
    > > > > > localhost and my sessions still die.
    > > > > >
    > > > > > It seems to happen on one particular page. It has some heavy db
    > > > activity
    > > > > > but my connections are pooled.
    > > > > >
    > > > > > It also seems to happen before any activity occurs once it has
    > started
    > > > to
    > > > > > fail then every postback to the same page will cause the session
    to
    > > die.
    > > > > >
    > > > > > Does anyone have any ideas. Also if the aspnet worker process is
    > > > recycled
    > > > > > would the memory process be set back to a low figure?
    > > > > >
    > > > > > Thanks for any help.
    > > > > >
    > > > > > Steve
    > > >
    > > >
    > >
    > >
    >
    >

    Steve Letford Guest

  7. #6

    Default Re: session keeps dying?

    Hi,

    1) Check this:
    The number and the size of the cookies on a client are restricted.
    Maximal 300 cookies can be stored on a client.
    If the 301st cookies should be stored, the least recently used cookie
    will be deleted.
    Maximal 20 cookies per server or domain can be stored on a client.
    If the server wants to store its 21st cookie, the least recently used
    cookie (from this server) will be deleted.

    Try to use other method then cookies. It you need this data on the
    server you can store it in ViewState for example.

    2)aspnet_wp or w3wp process can shut down just one application which
    "lives" in one AppDomain. if that’s happened the process memory usage
    wont shrink dramatically.

    Natty Gur, CTO
    Dao2Com Ltd.
    34th Elkalay st. Raanana
    Israel , 43000
    Phone Numbers:
    Office: +972-(0)9-7740261
    Fax: +972-(0)9-7740261
    Mobile: +972-(0)58-888377


    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Natty Gur Guest

  8. #7

    Default Re: session keeps dying?

    I think my cooke was getting too big, which may have been killing the
    session?


    "Steve Letford" <sletford@ems-global.com> wrote in message
    news:%23Bp8FW8WDHA.1004@TK2MSFTNGP12.phx.gbl...
    > Finally figured it out.
    > My page has a dynamically created javascript tree and I have a link that
    > allows all the items in the tree to expand or contract.
    > If this link is called then it loops through all the top level items and
    > sets a cookie saying expanded or contracted.
    >
    > If I click on item at a time there is no problem the cookie is set and it
    > all works. But when the procedure is called that sets all the cookies at
    > once it kills my session????
    >
    > my cookie names are all numbers, there aren't any strange characters so
    its
    > a bit of a mystery.
    >
    > Appreciate any enlightenment.
    >
    > Steve
    >
    >
    > "Steve Letford" <sletford@ems-global.com> wrote in message
    > news:OzYSM%234WDHA.1204@TK2MSFTNGP12.phx.gbl...
    > > Thanks but I'm wondering why the session is ending. I'm not doing
    > anything.
    > > I'm just sitting watching the screen. My session timeout should be at
    20
    > > mins.
    > >
    > > If the aspnet worker process is recycling wouldn't I see the memory
    usage
    > of
    > > it going down each time as it recycles, this isn't happening. Which
    > leaves
    > > me a bit confused..
    > >
    > > Thanks for any more help.
    > >
    > > Steve
    > >
    > > "Marina" <zlatkinam@nospam.hotmail.com> wrote in message
    > > news:OqNCaD2WDHA.1204@TK2MSFTNGP12.phx.gbl...
    > > > The session_end can fire that often, if you had started a new session
    > > every
    > > > 3-4 minutes. Then as those sessions end, the event is fired.
    > > >
    > > > "Steve Letford" <steve@straker.co.nz> wrote in message
    > > > news:uC8N2LzWDHA.1620@TK2MSFTNGP12.phx.gbl...
    > > > > Thanks for the reply,
    > > > > But I checked my memory usage for the aspnet worker process and it
    > > remains
    > > > > high when the session ends. Does this mean that it hasn't recycled?
    > > > >
    > > > > Also, I've noticed that without doing anything, i.e. clicking any
    > > buttons.
    > > > > I have put a break point on my session_end and it fires every 3 or 4
    > > > > minutes.
    > > > >
    > > > > Not too sure what is going on here?
    > > > > Any ideas?
    > > > >
    > > > > Thanks for your help.
    > > > >
    > > > > Steve
    > > > > "Ram" <rampabbaraju@yahoo.com> wrote in message
    > > > > news:fee5cd7f.0308050038.317fc3bb@posting.google.c om...
    > > > > > If ASPNET worker process is recycled, your application is
    restarted.
    > > > > > Then you will loose all your sessions also.
    > > > > >
    > > > > > "Steve Letford" <sletford@ems-global.com> wrote in message
    > > > > news:<#Tk6K2wWDHA.2032@TK2MSFTNGP11.phx.gbl>...
    > > > > > > Hi,
    > > > > > > I've just read the ms KB article on how sessions can die because
    > of
    > > > the
    > > > > > > underscore in the machine name and don't think that it applies
    to
    > > me.
    > > > > I've
    > > > > > > tried using the IP address of the server and have tested it
    > locally
    > > > > using
    > > > > > > localhost and my sessions still die.
    > > > > > >
    > > > > > > It seems to happen on one particular page. It has some heavy db
    > > > > activity
    > > > > > > but my connections are pooled.
    > > > > > >
    > > > > > > It also seems to happen before any activity occurs once it has
    > > started
    > > > > to
    > > > > > > fail then every postback to the same page will cause the session
    > to
    > > > die.
    > > > > > >
    > > > > > > Does anyone have any ideas. Also if the aspnet worker process
    is
    > > > > recycled
    > > > > > > would the memory process be set back to a low figure?
    > > > > > >
    > > > > > > Thanks for any help.
    > > > > > >
    > > > > > > Steve
    > > > >
    > > > >
    > > >
    > > >
    > >
    > >
    >
    >

    Steve Letford Guest

  9. #8

    Default Re: session keeps dying?

    Count the number of your tree leaf and figure it up ;-).

    Anyway cookies don’t use to manage many state items.

    Natty Gur, CTO
    Dao2Com Ltd.
    34th Elkalay st. Raanana
    Israel , 43000
    Phone Numbers:
    Office: +972-(0)9-7740261
    Fax: +972-(0)9-7740261
    Mobile: +972-(0)58-888377


    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Natty Gur Guest

  10. #9

    Default Re: session keeps dying?

    I am not sure about the memory usage. You can check the ASPNET worker
    process recycling in the APplication Log of Windows Event Viewer.
    Check those events where the source is ASP.NET. It will show some
    thing like this

    Event Type: Error
    Event Source: ASP.NET 1.0.3705.288
    Event Category: None
    Event ID: 1003
    Date: 8/6/2003
    Time: 5:33:44 AM
    User: N/A
    Computer: RAM
    Description:
    aspnet_wp.exe (PID: 2456) was recycled because it was suspected to be
    in a deadlocked state. It did not send any responses for pending
    requests in the last 180 seconds.


    "Steve Letford" <sletford@ems-global.com> wrote in message news:<OzYSM#4WDHA.1204@TK2MSFTNGP12.phx.gbl>...
    > Thanks but I'm wondering why the session is ending. I'm not doing anything.
    > I'm just sitting watching the screen. My session timeout should be at 20
    > mins.
    >
    > If the aspnet worker process is recycling wouldn't I see the memory usage of
    > it going down each time as it recycles, this isn't happening. Which leaves
    > me a bit confused..
    >
    > Thanks for any more help.
    >
    > Steve
    >
    > "Marina" <zlatkinam@nospam.hotmail.com> wrote in message
    > news:OqNCaD2WDHA.1204@TK2MSFTNGP12.phx.gbl...
    > > The session_end can fire that often, if you had started a new session
    > every
    > > 3-4 minutes. Then as those sessions end, the event is fired.
    > >
    > > "Steve Letford" <steve@straker.co.nz> wrote in message
    > > news:uC8N2LzWDHA.1620@TK2MSFTNGP12.phx.gbl...
    > > > Thanks for the reply,
    > > > But I checked my memory usage for the aspnet worker process and it
    > remains
    > > > high when the session ends. Does this mean that it hasn't recycled?
    > > >
    > > > Also, I've noticed that without doing anything, i.e. clicking any
    > buttons.
    > > > I have put a break point on my session_end and it fires every 3 or 4
    > > > minutes.
    > > >
    > > > Not too sure what is going on here?
    > > > Any ideas?
    > > >
    > > > Thanks for your help.
    > > >
    > > > Steve
    > > > "Ram" <rampabbaraju@yahoo.com> wrote in message
    > > > news:fee5cd7f.0308050038.317fc3bb@posting.google.c om...
    > > > > If ASPNET worker process is recycled, your application is restarted.
    > > > > Then you will loose all your sessions also.
    > > > >
    > > > > "Steve Letford" <sletford@ems-global.com> wrote in message
    > news:<#Tk6K2wWDHA.2032@TK2MSFTNGP11.phx.gbl>...
    > > > > > Hi,
    > > > > > I've just read the ms KB article on how sessions can die because of
    > the
    > > > > > underscore in the machine name and don't think that it applies to
    > me.
    > I've
    > > > > > tried using the IP address of the server and have tested it locally
    > using
    > > > > > localhost and my sessions still die.
    > > > > >
    > > > > > It seems to happen on one particular page. It has some heavy db
    > activity
    > > > > > but my connections are pooled.
    > > > > >
    > > > > > It also seems to happen before any activity occurs once it has
    > started
    > to
    > > > > > fail then every postback to the same page will cause the session to
    > die.
    > > > > >
    > > > > > Does anyone have any ideas. Also if the aspnet worker process is
    > recycled
    > > > > > would the memory process be set back to a low figure?
    > > > > >
    > > > > > Thanks for any help.
    > > > > >
    > > > > > Steve
    > > >
    > > >
    > >
    > >
    Ram Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139