ERPNext V 10.1 performance issue

Hi,

has anyone tried in erpnext version 10.1 usage is quite high compare to the older version?.. is this alright?
usage of the gunicorn process is being high all the time on every request…

THanks,
Bobby

1 Like

@bobzz_zone Can you share the stats?

Yes… you want top stats or? anything else ?

Yeah!

Share top/htop stats and also share supervisor configurations.

i’m part of @bobzz_zone team

this top status when normal operate with ± 40 user

and this supervisor.conf

; Notes:
; priority=1 --> Lower priorities indicate programs that start first and shut down last
; killasgroup=true --> send kill signal to child processes too

[program:frappe-bench-frappe-web]
command=/home/myme/frappe-bench/env/bin/gunicorn -b 127.0.0.1:8000 -w 3 -t 120 frappe.app:application --preload
priority=4
autostart=true
autorestart=true
stdout_logfile=/home/myme/frappe-bench/logs/web.log
stderr_logfile=/home/myme/frappe-bench/logs/web.error.log
user=root
directory=/home/myme/frappe-bench/sites


[program:frappe-bench-frappe-schedule]
command=/usr/local/bin/bench schedule
priority=3
autostart=true
autorestart=true
stdout_logfile=/home/myme/frappe-bench/logs/schedule.log
stderr_logfile=/home/myme/frappe-bench/logs/schedule.error.log
user=root
directory=/home/myme/frappe-bench

[program:frappe-bench-frappe-default-worker]
command=/usr/local/bin/bench worker --queue default
priority=4
autostart=true
autorestart=true
stdout_logfile=/home/myme/frappe-bench/logs/worker.log
stderr_logfile=/home/myme/frappe-bench/logs/worker.error.log
user=root
stopwaitsecs=1560
directory=/home/myme/frappe-bench
killasgroup=true
numprocs=1
process_name=%(program_name)s-%(process_num)d

[program:frappe-bench-frappe-short-worker]
command=/usr/local/bin/bench worker --queue short
priority=4
autostart=true
autorestart=true
stdout_logfile=/home/myme/frappe-bench/logs/worker.log
stderr_logfile=/home/myme/frappe-bench/logs/worker.error.log
user=root
stopwaitsecs=360
directory=/home/myme/frappe-bench
killasgroup=true
numprocs=1
process_name=%(program_name)s-%(process_num)d

[program:frappe-bench-frappe-long-worker]
command=/usr/local/bin/bench worker --queue long
priority=4
autostart=true
autorestart=true
stdout_logfile=/home/myme/frappe-bench/logs/worker.log
stderr_logfile=/home/myme/frappe-bench/logs/worker.error.log
user=root
stopwaitsecs=1560
directory=/home/myme/frappe-bench
killasgroup=true
numprocs=1
process_name=%(program_name)s-%(process_num)d



[program:frappe-bench-redis-cache]
command=/usr/bin/redis-server /home/myme/frappe-bench/config/redis_cache.conf
priority=1
autostart=true
autorestart=true
stdout_logfile=/home/myme/frappe-bench/logs/redis-cache.log
stderr_logfile=/home/myme/frappe-bench/logs/redis-cache.error.log
user=root
directory=/home/myme/frappe-bench/sites

[program:frappe-bench-redis-queue]
command=/usr/bin/redis-server /home/myme/frappe-bench/config/redis_queue.conf
priority=1
autostart=true
autorestart=true
stdout_logfile=/home/myme/frappe-bench/logs/redis-queue.log
stderr_logfile=/home/myme/frappe-bench/logs/redis-queue.error.log
user=root
directory=/home/myme/frappe-bench/sites


[program:frappe-bench-redis-socketio]
command=/usr/bin/redis-server /home/myme/frappe-bench/config/redis_socketio.conf
priority=1
autostart=true
autorestart=true
stdout_logfile=/home/myme/frappe-bench/logs/redis-socketio.log
stderr_logfile=/home/myme/frappe-bench/logs/redis-socketio.error.log
user=root
directory=/home/myme/frappe-bench/sites


[program:frappe-bench-node-socketio]
command=/usr/bin/node /home/myme/frappe-bench/apps/frappe/socketio.js
priority=4
autostart=true
autorestart=true
stdout_logfile=/home/myme/frappe-bench/logs/node-socketio.log
stderr_logfile=/home/myme/frappe-bench/logs/node-socketio.error.log
user=root
directory=/home/myme/frappe-bench




[group:frappe-bench-web]
programs=frappe-bench-frappe-web,frappe-bench-node-socketio



[group:frappe-bench-workers]
programs=frappe-bench-frappe-schedule,frappe-bench-frappe-default-worker,frappe-bench-frappe-short-worker,frappe-bench-frappe-long-worker



[group:frappe-bench-redis]
programs=frappe-bench-redis-cache,frappe-bench-redis-queue,frappe-bench-redis-socketio

You may also want to check your MySQL processlist, if disk is being used then it also increases CPU Usage. What is your innodb_buffer_pool_size ?