I am currently experiencing a significant slowdown with our ERP system. We are using ERPNext in a production environment, running on an OVM file in a virtual machine (VM). When opening patient names or accessing related records, the system hangs for approximately five minutes, severely impacting workflow efficiency.
I would greatly appreciate your assistance in resolving this issue. Below are some key details for your reference:
**ubuntu 16.04.4 erp next vm vbuilt on marach 31 2018
Host System Configuration: [e.g., CPU, 16gbRAM, and 50 storage allocated to the VM]
Virtualization Platform: [ VirtualBox]
Steps to Reproduce:
Navigate to [i.
Open a patient name or record.
Experience prolonged lag or hanging (5 minutes or more). i couldn’t open any file , its taking long time to open.
Could you please advise on potential causes or provide guidance on optimizing the system for better performance? If additional information or logs are required, kindly let me know, and I will provide them promptly.
Check the ERPNext logs for any errors or warnings that could point to the root cause. Look in these log files:
ERPNext logs: /home/erpnext/frappe-bench/logs/
System logs: /var/log/syslog, /var/log/dmesg, /var/log/mysql/error.log
Check MySQL (MariaDB) Configuration:
ERPNext relies heavily on MySQL (MariaDB). If the database is not properly optimized, it can cause delays when fetching patient records or other data.
MySQL Performance: Check the performance of MySQL by running the following commands:
sudo systemctl status mysql
sudo mysql -u root -e "SHOW STATUS LIKE 'Innodb_buffer_pool%';"
sudo mysql -u root -e "SHOW STATUS LIKE 'Qcache%';"
Increase InnoDB Buffer Pool Size: If you have more available RAM, consider increasing the InnoDB buffer pool size in /etc/mysql/my.cnf. A larger buffer pool helps with database caching, which can improve query performance.
Check slow queries: Look into the MySQL slow query log to identify slow queries that might be contributing to the lag. You can enable the slow query log if it’s not already enabled.