I have django application in a Digital Ocean(512MB Memory) with Postgres, Nginx, and Gunicorn on Ubuntu 16.04. On running the application, it consuming more memory. If I navigate through the pages, it also consuming the memory on checking with top command. What will be the problem and what are the possible reason.
Gunicorn
[Unit]
Description=veeyar daemon
After=network.target
[Service]
User=root
Group=www-data
WorkingDirectory=/home/webapps/myproject/
ExecStart=/home/webapps/myproject/venv/bin/gunicorn --access-logfile - --workers 3 --bind unix:/home/webapps/myproject/myproject.sock myproject.wsgi:application
[Install]
WantedBy=multi-user.target
Nginx
server {
listen 9090;
location = /favicon.ico { access_log off; log_not_found off; }
location ^/static/ {
root /home/webapps/myproject/staticfiles;
}
location / {
include proxy_params;
proxy_pass http://unix:/home/webapps/myproject/myproject.sock;
}
}
And also in settings.py I had set DEBUG=False.
I tried by googling it but i cannot understand properly.why it is happening so and did I missed anything. Can you guys please help me to sort out this problem. This will be very great full for me. Thanks in advance.