Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Active sessions problem
#19
(06-26-2019, 10:06 AM)Alexandre Machado Wrote: Interesting.... which IW version are you using?

From the session data, looks like you have some content handlers... Do you terminate the session after executing these content handlers?

I'm using IW 15.0.23 and Delphi 10.3.1.

Yes, all the content handlers end with aSession.Terminate;

(06-26-2019, 10:55 AM)Alexandre Machado Wrote: Some interesting data I collected from your log file:
- Most ghost sessions were created by Firefox  (>90%).
- They all have the same IP addresses of legitimate users (same IP address has another "normal" session, at an earlier point in time)
- almost all ghost sessions have only one request. The request created a new session and session creation events ran until completion (no exceptions)
- after this first request, session stays inactive (it is alive but doesn't receive any other request) but is not collected by timeout thread

Given this information, seems to me that (the ultra-mega-stupid) Firefox "feature" which refreshes the toolbar images in "Top sites" toolbar is responsible for that "ghost" request.

However, this "feature" is well known and we have extensively tested this behavior. I'm not sure if some initialization code you have might be interfering with this...

The normal behavior would be:
- First request creates a session. Timeout of that session is set to 1 minute (the minimum timeout).
- If no other request is received, the session will be collected by the timeout thread on its first (or second) run (it runs once each 1 minute)
- If a second request is received, the session timeout of that specific session is set to the default value specified by server controller

I'll have to collect a bigger list on stuck sessions and the corresponding logsessionevent file because usually the stuck sessions are not just from firefox (at least that what it seems in the first list I posted in my first post). What I don't understand is why those sessions appear only at random times, the server runs fine for many hours and then... bam, 3000 sessions.

Also, if it matters, the server is built using http.sys.
Reply


Messages In This Thread
Active sessions problem - by ioan - 06-12-2019, 07:06 PM
RE: Active sessions problem - by kudzu - 06-12-2019, 09:53 PM
RE: Active sessions problem - by ioan - 06-13-2019, 01:25 PM
RE: Active sessions problem - by kudzu - 06-13-2019, 03:18 PM
RE: Active sessions problem - by DanBarclay - 06-13-2019, 08:38 PM
RE: Active sessions problem - by DanBarclay - 06-14-2019, 06:06 AM
RE: Active sessions problem - by ioan - 06-20-2019, 06:05 AM
RE: Active sessions problem - by ioan - 06-20-2019, 06:31 PM
RE: Active sessions problem - by ioan - 06-26-2019, 07:47 AM
RE: Active sessions problem - by ioan - 06-26-2019, 06:38 PM
RE: Active sessions problem - by ioan - 06-27-2019, 07:27 AM
RE: Active sessions problem - by ioan - 06-27-2019, 10:40 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)