Why is my default mean app running so slow?

I created a 1gb droplet with the one click app selection of Mean 0.5.0 on Ubuntu 16.04. I bought a domain name and I’m using nginx to create a proxy server that routes to the default mean application under /opt/mean. I navigate to /opt/mean and run npm start to start the web server. When I open the page in the browser it takes up to 25 seconds to load my website. Here is the output from the server when I request the website. When I try to load the page, it gets to the line that requests users.client.service.js and gets stuck there for a really long time before finally loading the page. My guess is that I’m doing something wrong setting up nginx?

info: GET /modules/users/client/services/password-validator.client.service.js 304 0.695 ms - -

info: GET /modules/users/client/services/users.client.service.js 304 0.565 ms - -

info: GET /modules/core/client/views/header.client.view.html 304 0.730 ms - -

info: GET /modules/core/client/views/home.client.view.html 304 0.491 ms - -

I also changed the nginx default file under sites-enabled to the following

server {
        listen 80 default_server;
        listen [::]:80 default_server;


        location / {
                # First attempt to serve request as file, then
                # as directory, then fall back to displaying a 404.
                #try_files $uri $uri/ =404;
                proxy_pass http://MYIPADDRESS;
                proxy_http_version 1.1;
                proxy_set_header Upgrade $http_upgrade;
                proxy_set_header Connection 'upgrade';
                proxy_set_header Host $host;
                proxy_cache_bypass $http_upgrade;


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.


It’s definitely not your NGINX configuration. I just deployed a test droplet with the same configuration and I’m experiencing the same extended delays. The default application is meant more so for testing, though shouldn’t be performing that poorly in any case.

What I’d do is submit a support ticket requesting assistance. Provide them with a link to a screenshot of the output from the CLI as well, that way they have some numbers to work with.

On my end, I’m seeing delays of up to 326ms.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel