NetTalk Central

Author Topic: 7.04 Site Feedback  (Read 3474 times)

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11239
    • View Profile
7.04 Site Feedback
« on: February 05, 2013, 02:00:51 AM »
As some of you may be aware I try and keep the engine on www.capesoft.com as up to date as possible, in part to make use of new features, but also in part so that the engine is getting a good work-out as well.
Usually this is pretty transparent to everyone, something you don't, or at least shouldn't, notice at all.

With 7.04 that changed because the server became very unstable - crashing multiple times per day. At first it seemed like a memory leak was causing it, and I held back the 7.05 build until the cause was known for sure.

The short report is - no, it wasn't a memory leak, and the issue was confined to the HOST.EXE program, so it's not something you need to worry about too much. If you are using the Host though I recommend upgrading to 7.05 as soon as possible.

The issue only occurred because of two factors. One is the large number of DLL's attached to the Host on the CapeSoft site. At the moment we have around 17 DLL's (and around 40 static domains) being served by the server. This means it also gets a large number of sessions (typically 600 or so sessions are active at a time) and a fair amount of traffic (around 20 000 hits per day).

This large amount of DLL's means that the Ram consumed to start a thread is quite high. Recent changes in the host sends a NotifyDelete message to each DLL (on it's own thread) when a session is deleted. These threads were not being considered when calculating the maximum threads the server should have open at any one time.

Couple all these facts together and it was possible for 100 to 200 threads to be created "instantly" when a bunch of sessions were marked for deletion. This drove the memory up too high, and Windows spat the program.

Once the cause was understood it was relativity simple to fix. DeleteSession threads are now counted against the thread limit and other minor tweaks help keep the load under control.

On the up side the Logging in the host has been extended a lot. This can be seen on the "Log File" tab of the hot. Many machine related parameters are now captured with requests, and requests are logged both as they arrive, and when they complete. If a request should crash the server for some reason, it'll be a lot easier to see that in the log.

In addition the "Sites" tab, which shows list of DLL's now includes the date and time the DLL was compiled, and also the Exe date and time. This should make spotting version mis-matches a lot easier.

Thanks for all your patience during this time - I appreciate that it's a pain not being able to access the site on demand. However the result is a stronger engine for all of us, which I think is a good thing overall.

Cheers
Bruce



osquiabro

  • Hero Member
  • *****
  • Posts: 685
    • View Profile
    • Email
Re: 7.04 Site Feedback
« Reply #1 on: February 05, 2013, 02:26:15 AM »
7.05 is available?? capesoft site said : UPDATE OF WEB FOLDER REQUIRED - Try pressing Ctrl-F5. Server is on version 7.05 but web folder is on version 7.04

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11239
    • View Profile
Re: 7.04 Site Feedback
« Reply #2 on: February 05, 2013, 06:03:38 AM »
don't confuse the version the CapeSoft.com server is using (now 7.05) and the NetTalk build. The site is indeed on 7.05, the NetTalk build is going up at the moment - I'll post here as soon as it's up.

cheers
Bruce

mriffey

  • Newbie
  • *
  • Posts: 43
    • View Profile
    • Email
Re: 7.04 Site Feedback
« Reply #3 on: February 05, 2013, 08:03:21 AM »
Thanks for the update, Bruce. Transparency, what a concept:)

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11239
    • View Profile
Re: 7.04 Site Feedback
« Reply #4 on: February 05, 2013, 09:24:45 AM »
7.05 is up...