Mongodb performance gone down after upgrading from 4.0 to 5.0 version upgrade

Hi All,

Thank you in advance.
It was observed that unprocessed file has gone up after upgrading from 4.0 to 5.0 version.
Also memory and CPU utilization has go up.
can anyone advise what we can look into to improve this situation.