Replies: 1 comment
-
Hello, if you want to debug CPU or memory spikes, you can enable pprof and download metrics when the spike happens: https://github.com/bluenviron/mediamtx?tab=readme-ov-file#pprof |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like to report was I think maybe is a bug as an issue, but since I can't recreate it, asking here for any ideas first:
MediaMTX version
v1.11.0
Issue:
I have a server running MediaMTX listening on a public internet IP on port 1935 for RTMP connections, and two IP cams that are connecting and publishing video. I have a short
runOnConnect
Python script that does some checks once a new connection is made and kicks any unwanted streams using the API.In the logs I see a fair bit of
closed: invalid rtmp version (71)
andclosed: invalid rtmp version (22)
, which I think are attempts to establish http or https connections.Usually the connection is just closed with no issue. But in this case the CPU usage on the server immediately jumped to 100% and stayed there until I restarted mediamtx a couple of hours later.
The server is quite over-sized for the task. Nothing else is running and usually with the two streams connected it's at around 2% CPU usage.
It was one thread in particular, and in my monitoring tool I can see the PID of the specific thread that was using up the CPU (
1513823
) and there is nothing in the logs written from that thread.Logs
Beta Was this translation helpful? Give feedback.
All reactions