[Solved] New nodebb install running very slow
-
So in my learning as I'm going development of a site for a group of friends I set up a digital ocean droplet (the smallest size one) and install the ghost blog platform on the main domain and nodebb for the forum. subdomain and the reverse proxy stuff is being handled by nginx. However with this install I'm having an issue with nodebb running very slowly, for example when I launched it for the first time and went to the forum.domain.com address the top navigation bar loaded pretty much straight away but the categories didn't for about 8 seconds.
Now this is the first time I've had more than one node.js app running on the same VPS so I'm wondering if I need to use a bigger droplet (Though I did try a 2 core 2Gb resize though that seemed to make no difference) or if I've screwed up the nginx setup somehow (though I would have thought that would slow down the ghost blog as well, which is running fine.) or if something else I can't even think of is happening (likely, I am not a bright man).
Any help/thoughts would be appreciated.
-
Actually playing around with it a bit more the slowdown is ONLY occuring when I go back to the main landing page of the forum, it loads in the nav bar then you are sat there waiting for a few seconds before it pops the rest in, also the nav bar doesn't show you as logged in until the delay is over.
Everything else is lightning fast as always.
-
About active users that title is misleading. That section shows active sockets in rooms. You probably have 4 sockets active in those rooms. Can you check your network tab and see if the slowdown is caused by an xhr call on the homepage? Are sockets working as they should instead of falling back to xhr?
-
@baris said:
Can you check your network tab and see if the slowdown is caused by an xhr call on the homepage? Are sockets working as they should instead of falling back to xhr?
Sorry but where is this network tab?
@julian said:
Yeah, a @baris mentioned, it sounds like websockets isn't working properly. Are you perchance using CloudFlare as well?
No just a digital ocean droplet, nothing special at all. Is there any special setup I need to do to my nginx settings to enable websockets?
-
-
@Watchopolis Hm, I'm getting a websocket error. Did you follow this guide to set up the proxy for Apache?
-
@julian yes i followed everything step by step,
look here on the sidebar stats, the numbers are loading after 6 seconds when the page fully loads
btw i dont have proxy_wstunnel installed because i am using vestacp
if i follow this guide will it break my vestacp ?