Jump to content

Applications using Hyper Server become slow when there are more than 200 sessions


Muhammad Idris

Recommended Posts

12 hours ago, Farshad Mohajeri said:

It seems that slow down occurs when peak request is above 300. It indicates that requests are coming faster than the speed system can process them. It can be the database back-end which is not able process too many concurrent requests as fast as it must be done.

but why is it that when I divide the service into 3 hyperservers the application slowdown doesn't occur

image.png.6a2cbac2a96acb423aebeb92b6389dc7.png

image.png.caa9a6735d02872b8d16682f4c8c8700.png

image.png.9c5dd1d8b0c02905aca513dadc2cb120.png

Link to comment
Share on other sites

53 minutes ago, Muhammad Idris said:

How many sessions in your application can be handled by the hyperserver?

Salam Muhammad,

I apologize for this.

I didn't use til now hyperservers technic.

As Farshad has done many improvment in the recent versions, i thought that it was OK.

Link to comment
Share on other sites

2 hours ago, Muhammad Idris said:

what technique do you use and how many sessions can it handle?

- A simple Unigui as Service,  HyperServer.

- No more than 10 users 

I would have really wanted to launch a new project with 1000 users in real time and exploit farm server for load balancing (what you are currently using with your 3 servers) but my plan failed.

Maybe you should review the structure of your program.

- use frames that open and close.

- Free up Dataset resources (RAM) immediately.

- minimize size of exe file 

- use Pool connection to avoid braking RDB system

_ etc...

 

Link to comment
Share on other sites

On 11/6/2023 at 11:42 PM, Farshad Mohajeri said:

It seems that slow down occurs when peak request is above 300. It indicates that requests are coming faster than the speed system can process them. It can be the database back-end which is not able process too many concurrent requests as fast as it must be done.

 

On 11/6/2023 at 10:15 PM, Muhammad Idris said:

image.png.420975137778a38afac1240542a3c584.png

If you are using mysql database,you need to card the "slow query problem",

what means that if your sql operation on the field not be indexed,

the query will be  very slowly.

Link to comment
Share on other sites

18 hours ago, Abaksoft said:

- A simple Unigui as Service,  HyperServer.

- No more than 10 users 

I would have really wanted to launch a new project with 1000 users in real time and exploit farm server for load balancing (what you are currently using with your 3 servers) but my plan failed.

Maybe you should review the structure of your program.

- use frames that open and close.

- Free up Dataset resources (RAM) immediately.

- minimize size of exe file 

- use Pool connection to avoid braking RDB system

_ etc...

 

MY project in my office network,

about seventy users,

a *.exe runs fast.

Link to comment
Share on other sites

On 11/13/2023 at 7:34 PM, picyka said:

You need to have a good pool of connections in the DB, and analyze your qry to see if there is anything slow, I would recommend using the API.

If it's a connection problem to the database, why is it that when I divide it into 3 hyperserver services the problem is slow to resolve?

which I have screenshot above

Link to comment
Share on other sites

On 11/13/2023 at 1:01 PM, Abaksoft said:

- A simple Unigui as Service,  HyperServer.

- No more than 10 users 

I would have really wanted to launch a new project with 1000 users in real time and exploit farm server for load balancing (what you are currently using with your 3 servers) but my plan failed.

Maybe you should review the structure of your program.

- use frames that open and close.

- Free up Dataset resources (RAM) immediately.

- minimize size of exe file 

- use Pool connection to avoid braking RDB system

_ etc...

 

Can you give an example of how to fix this:

- use frames that open and close.

- Free up Dataset resources (RAM) immediately.

- minimize size of exe file 

- use Pool connection to avoid braking RDB system
 

Link to comment
Share on other sites

On 11/7/2023 at 5:03 AM, Muhammad Idris said:

but why is it that when I divide the service into 3 hyperservers the application slowdown doesn't occur

image.png.6a2cbac2a96acb423aebeb92b6389dc7.png

image.png.caa9a6735d02872b8d16682f4c8c8700.png

image.png.9c5dd1d8b0c02905aca513dadc2cb120.png

Muhammad,

1. Are you using your own technic for loadbalancing or official Server Farm hyperservers ?

2. In the second case, did you follow step by step the doc :

https://www.unigui.com/doc/online_help/hyperserver-server-farm.htm

 

Link to comment
Share on other sites

9 hours ago, Abaksoft said:

Muhammad,

1. Are you using your own technic for loadbalancing or official Server Farm hyperservers ?

2. In the second case, did you follow step by step the doc :

https://www.unigui.com/doc/online_help/hyperserver-server-farm.htm

 

i just split the service into 3 hyperservers running the same exe in different folders and different ports. so we allow clients to access 3 different ports:

8077, 8075, 8078

Link to comment
Share on other sites

6 hours ago, Abaksoft said:

Definitivly, this is not a good way for absorbing much incoming sessions.

Can you take time to read the doc and deploy correctly your project on a true and conventional farm servers.

Consider this is a real chalenge this week :)

Can the 3 service farms that I create with 3 ports become one port? so that the client only goes to port 8077 for example

Link to comment
Share on other sites

nginx   .conf


split_clients "${remote_addr}AAA" $app_addr {
 30.0% "127.0.0.1:8075";
 30.0% "127.0.0.1:8077";
 *     "127.0.0.1:8078";
}

server {
 
 #...
 
 location / {
  proxy_pass http://$app_addr;
  proxy_set_header X-Real-IP $remote_addr;
  proxy_set_header Host $host:$server_port;
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  proxy_set_header X-Forwarded-Host $host;
 }
 
}

 

Link to comment
Share on other sites

20 hours ago, Kos said:

nginx   .conf


split_clients "${remote_addr}AAA" $app_addr {
 30.0% "127.0.0.1:8075";
 30.0% "127.0.0.1:8077";
 *     "127.0.0.1:8078";
}

server {
 
 #...
 
 location / {
  proxy_pass http://$app_addr;
  proxy_set_header X-Real-IP $remote_addr;
  proxy_set_header Host $host:$server_port;
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  proxy_set_header X-Forwarded-Host $host;
 }
 
}

 

Previously I had used nginx, but it could only run app.exe, not hyperserver.exe

image.png.df3e3099bf6dfcde3fac1bfa67d17893.png

Link to comment
Share on other sites

  • 2 weeks later...
On 11/14/2023 at 7:32 AM, 55143681 said:

MY project in my office network,

about seventy users,

a *.exe runs fast.

My application is accessed by more than 250 users.

and before using UniGui, our SQL Server database had been running and accessed from 2012 with various performance tuning indexes, queries and partiton tables.

If there is someone in this group whose application is accessed by more than 250 users and is stable and not slow, then please provide a solution.

Link to comment
Share on other sites

On 11/15/2023 at 10:14 PM, Kos said:

nginx   .conf


split_clients "${remote_addr}AAA" $app_addr {
 30.0% "127.0.0.1:8075";
 30.0% "127.0.0.1:8077";
 *     "127.0.0.1:8078";
}

server {
 
 #...
 
 location / {
  proxy_pass http://$app_addr;
  proxy_set_header X-Real-IP $remote_addr;
  proxy_set_header Host $host:$server_port;
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  proxy_set_header X-Forwarded-Host $host;
 }
 
}

 

Sir, how do I set it to read and save PDF files in the specified folder?

because when using Nginx the PDF file is not readable, whereas using the hyperserver itself it can be read.

Thank You

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...