Answer the question
In order to leave comments, you need to log in
NodeJS - statistics?
Good day. I have long wanted to get acquainted with nodeJS, and at the same time try my hand at writing my own website engine. It was always interesting to try it myself. The result - the engine has written, the site seems to be running fast, little by little I finish it when I have free time and desire.
Problem: Over time, the site starts to work more slowly. But this “over time” is not so small that I can easily understand what is the reason. An example - the main page after launch is generated in 20-50ms, and after a week or two or three about 100-150ms. A typical blog page is generated after launch in 5-35ms, after - 25-130ms. And the spread is quite large.
I use: mongodb (mondodb-native), node-sync, jade.
Q: How can I trace the problem area? What could be the problem? In which direction to dig? Are there ready-made monitoring tools?
So far, only 1 thought has come to mind - to organize a page for the administrator, on which there will be a monitor of useful data-information (memory consumption,% CPU usage, etc.). Unfortunately, I still have a hard time imagining how difficult it is to write this, because. still a very beginner linux user. I could not google ready-made solutions.
Answer the question
In order to leave comments, you need to log in
I don't restart, why? I don't restart for months. The problem in the topic was that OpenVZ is evil. Never again will I buy servers on OpenVZ. Only Xen or KVM.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question