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!