JS Client app & busy Omnis server
Hi Mayada,
There are properties of the remote task instances that you can utilize to monitor and manage activity. For example the $lastresponse property will indicate when the last server side event was triggered. And $timeout can be used to specify the number of minutes a remote task can be idle before automatically closing.
One thing that I have done in the past is create a window with a timer that builds a list of all the remote tasks.
Do $iremotetasks.$makelist($ref.$ident,$ref.$clientaddress,$ref.$lastresponse) returns TaskList
In the window I have a button that I can use to selectively close remote tasks.
$iremotetasks.[TaskList.C1].$close() ;; TaskList.C1= Remote task $ident
If multiple connections are being established when a form is loaded, you may want to check your HTML source to see if multiple references to a remote form is being made. Typically there should be one remote task per form.
> On Nov 21, 2017, at 2:17 PM, Mayada Al-Kishtini <malkishtini@gmail.com> wrote:
>
> Hi $all,
>
> We are running into an issue with our web app at one of our sites, the
> issue appears when we have more than 35-40 simultaneous connections to the
> OS server 6.3/64bit with 50 users license.
>
> What happens is when I try to connect to the web app at that site and the
> server has more than 35 connections (not sure of the exact number of
> connections that will cause the problem to appear, but something more than
> 30-35), it takes a while to load the form and I when I check the log I
> notice that 2 remote task connections, sometimes 3 are established when the
> form is loaded, then when a user disconnects from the server, that will
> close only one of the connections (the last one) and leave the rest as
> orphan connections and that will consume licenses and then the site will
> soon runs out of web licenses and we have to restart the server.
>
> My first time to encounter this issue, anyone else has seen any issue like
> this before?
>
> Any advise on how to check for server state (busy or not) in the remote
> task, so one can code around it?
>
> Thank you,
> Mayada
> _____________________________________________________________
> Manage your list subscriptions at lists.omnis-dev.com
_____________________________________________________________
Manage your list subscriptions at lists.omnis-dev.com