Question

webapp hosted on ubuntu server works really slow

Posted April 21, 2016 2.2k views
Ubuntu Server Optimization Applications

I’m hosting my app on Ubuntu 14.04 server and what bothers me is that it loads really slow. http://188.166.160.66/ is the link to my app as I don’t have domain for it yet. Demo preview isn’t impletented yet (also it’s not going to use database so testing with it wouldn’t give any usefull information), so feel free to login as: Login: test Password: test1234. After you login, at first it looks like angular isn’t loaded properly and is displayed as html, after some time it disappears and then it finally shows properly (last time I checked it took it about 3 minutes to load everything). I’m using sqlite and from what I know it’s designed to be used locally, but I thought that since it’s just a showcase project it will be enough. While being logged in, it’s possible to use the api http://188.166.160.66/api/cards that will return existing cards as json, which usually is instant.

Github: https://github.com/ziombo/KISDNU

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

1 answer

Solution to my problem was adding proxy_set_header Connection keep-alive; to nginx .conf file.

Submit an Answer