ubuntu 18.04 server 8GB RAM and 50GB Storage. I have installed
MongoDB 4.2 and
Node JS 12 LTS.
In current server has 30 GB
MongoDB storage. I have 4 micro service on same server. I have installed
pm2 to start all 4 services.
Don't know why my all services responds delay.
I have checked
pm2 start 0 it takes 4-5 mins to show logs.
I have already remove db caching and flush
pm2 logs. But still
mongodb service takes 50% CPU usage.
I have checked all code and found there is no 3rd party APIs call and optimize all queries and adding indexing on server. But still server taking too much times.
Most of time I got server timeout error. Please assist me. How to make my