Score:0

Website loads too long if more than 60 people are online (Apache nodejs)

ng flag

If you visit https://tapwar.io, it loads for so long (well, by the time I wrote this post) and it only happens when more than 60 people are connected.

Here are the further details on the app: It is a nodejs app listening on port 5000, I used Apache CentOS 7. The server is working properly if there are less traffic, I used proxy.conf like so:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1$1 [R=301,L]

RewriteCond %{REQUEST_URI} ^/socket.io [NC]
RewriteCond %{QUERY_STRING} transport=websocket [NC]
RewriteRule /(.*) ws://localhost:5000/$1 [P,L]

ProxyPass / http://localhost:5000/
ProxyPassReverse / http://localhost:5000/

curl localhost:5000 works just fine, I have tried increasing the max_clients and server_limit, but I don't think it gives any effect. If you have any suggestions please help me :)

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.