I have a node app that uses express and get data from mongodb and elastic search. On our production server, after some time, it starts to use CPU 100%, which makes the app unresponsive and we had to kill the process to make system idle.
I think there is a certain query (code) which is causing this issue. What are the latest practises to debug this kind of issue?