NetTalk Central

Author Topic: CLOSE SESSIONS - BUSY MESSAGE  (Read 3241 times)

ralonso2001

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
    • Qúbigo ERP
    • Email
CLOSE SESSIONS - BUSY MESSAGE
« on: August 31, 2015, 04:55:39 AM »
Hi, I have two quetions (for today)

1) I'm looking at my performance monitor in my web server and see too many session in order of the users I can track as logedin. This web server has 25 users but im seein about 100 sessions. Why is this happening I how can I close sessions.

2) I have a code (that "took" from NT) to display a "busy message" in case of x amount of threads opened.
 The code in the web server - Start New Thread

 g:ThreadHighLimit   = self.MaxThreads
 g:ThreadReopenLevel = 20
 
 SELF._Trace('WebServer Mem: Threads:'&self.performance.NumberOfThreads&' '&|
             '/Max Usado: '&self.performance.MaximumThreads&' /Max:'&self.MaxThreads&'')       

 If (g:ThreadHighLimit > 0 AND self.performance.NumberOfThreads >= g:ThreadHighLimit)
     g:NoService = TRUE
 END
 IF g:NoService AND self.performance.NumberOfThreads =< g:ThreadReopenLevel
     g:NoService = FALSE
 END
 IF g:NoService
     SELF._Trace('No Service Threads='&self.performance.NumberOfThreads&' /Max:'&g:ThreadHighLimit&' - Not processing this request')
     self.senderror(500,'Servidor Ocupado','El servidor está ocupado realizando operaciones, por favor reintente en '&|
                        'unos minutos.')
     Return
 End

It works, but the self.senderror statement doesnt display a error message window in the browser...what Im doing wrong?

Thank you!
Regards,
Rodrigo Alonso
Mendoza - Argentina

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: CLOSE SESSIONS - BUSY MESSAGE
« Reply #1 on: August 31, 2015, 07:19:06 AM »
>> 1) I'm looking at my performance monitor in my web server and see too many session in order of the users I can track as logged in. This web server has 25 users but I'm seeing about 100 sessions. Why is this happening I how can I close sessions.

Sessions close automatically when there has been no activity on the session for a period of time. A user can start multiple sessions by closing their browser, and opening it again.

>> 2.

I'd need to see an example.

cheers
Bruce