Concurrent access to Scout application [message #1855584] |
Fri, 21 October 2022 08:57  |
Eclipse User |
|
|
|
Hi.
I have Scout application and I testing it.
I tried opening the page from several different computers and also from several different browser tabs at the same time. I found this:
When I have less than 5 accesses open, the app seems to work fine. During the sixth and subsequent accesses, page loading is significantly slowed down, it takes up to several minutes, sometimes the error "Initialization failed" also occurs. When I close one of the previously opened tabs, the loading in the newly opened tab is usually instantaneous again.
Unfortunately, I don't know Scout well enough to know where this problem might be coming from. Can anyone give me some advice on what to focus on? Where can the problem be?
The application runs on Linux under Tomcat and communicates with an Oracle database on the same machine. Unfortunately, I didn't install or configure the system, so I don't know the exact parameters at this point.
Thank you in advance.
|
|
|
|
|
Re: Concurrent access to Scout application [message #1856396 is a reply to message #1855588] |
Thu, 08 December 2022 07:20   |
Eclipse User |
|
|
|
Opening the application in 10 tabs in the same browser is not a good test. It's not a realistic scenario. There will be only one instead of 10 HTTP sessions, since the session cookie is shared between all tabs. You will also run into the max-connections-per-host limit enforced by the browser. This limit is quite low (I think 5 or 6 in Chrome, a bit higher in Firefox). Unfortunately, there is nothing you can do about this.
You also need to make sure that your application has enough resources (RAM, CPU). If you are running it behind a firewall or reverse proxy, check the connection limits. If you access the database, check the limits on the connection pool, the JDBC driver and the database itself. Generally, the resources available and the limits set should match the kind of application (small and simple vs. large and computation-heavy) and the number of users.
We have large Scout applications running with hundreds of concurrent users every day without any issues.
Regards,
Beat
|
|
|
Re: Concurrent access to Scout application [message #1862576 is a reply to message #1855584] |
Tue, 12 December 2023 06:23  |
Eclipse User |
|
|
|
Hi Miloslav
If you use a reverse-proxy, WAF or load-balancer in front of your Scout application (recommended), you could try to enable HTTP/2 and https (TLS) on it. Modern browsers will then automatically use HTTP/2 which supports TCP multiplexing. This should solve the issue of having multiple tabs to the same Scout application open on a client.
If users connect to a e.g. Tomcat directly, you can enable HTTP/2 and TLS there.
Scout version >= 24 will also enable HTTP/2 on the Jetty server by default.
Hope this helps
Mat
|
|
|
Powered by
FUDForum. Page generated in 0.04493 seconds