JS Client app & busy Omnis server
Thank you for your reply.
I’m actually using the monitor window at that site to monitor the
connections (but running it in run time, so it is hard to trace what
actually is happening, I have also added a log when connecting to the
remote task and I see the log is added twice to the file)..
I don’t have a dev lic for a high number of users to run the same test in a
dev environment. I couldn’t reproduce the issue with a 5 users dev lic.
When the multiple connections issue occurs, the connection time and last
response time are exactly the same for the multiple connections.
As for the call to the form, I can only see one call to the form at a
time..But who knows what is going on when the server is busy and a new
request is sent to the server.
I hoped that there was a server.$state attribute that one could use to
handle cases when the remote task gets a request for a new connection and
the server is busy…
On Tue, Nov 21, 2017 at 2:40 PM, Thad Bogert <email@example.com> wrote:
> 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
> $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
> > On Nov 21, 2017, at 2:17 PM, Mayada Al-Kishtini <firstname.lastname@example.org>
> > 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
> > 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
> > 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
> > 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
> > 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
Manage your list subscriptions at lists.omnis-dev.com