recently (last half week or so) my vps has started to max out cpu, so I looked into it and I saw the peertube user had an nginx process that had fully utilised all cpu!
when I stop this process (kill pid) the prrocess restarts and goes to full cpu usage straight away.
this is affecting other services on the server.
any advice would be appreciated.
I could not see any notable errors in the logs for either peertube or nginx.
—edit—
I saw there was a second nginx process for peertube running, so when I stopped that the cpu-intensive process stopped restarting (it looks like) so at least my vps is not at full cpu currently. however why this is occurring and how to address it I do not know.
Hello, I would do it this way, I would completely reinstall peertube on a new server, copy it via rsync, and see how it goes. Ngnix is a regular proxy, it can’t raise the load, and have you changed the nginx config? And also as an option I would update peertube to the latest version as written in version 6.3.1
hallo, thanks for the suggestion. after viewing the peertube.access and peertube.error logs, I did not see any detail that looked like an issue, though I do not know exactly what I am looking for.
can you give me any advice on how too see an error in these logs?
hi, I am not able to start a new instance on another server, I only have this one. I will look at updating peertube to newest version and see if that helps.
If it is nginx that is using CPU, I don’t think Peertube is the problem.
The question is « what the **** is nginx doing?! ». You can maybe try to use lsof -p 123 (where 123 is the PID - Process ID - of the nginx process that uses 100%).
This will show you the list of opened file descriptors for the nginx process (files and even network streams).
It could be hard to read when you are not familiar, but maybe you could see some unusual files opened (for example, if you see hundreds of similar files, it could help you understand what is happening).
Just a question: have you any other service than Peertube on this server?