-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Labels
questionFurther information is requestedFurther information is requested
Description
Which version are you using?
1.12.3
Which operating system are you using?
Linux arm7 standard
Which hardware are you using?
Raspberry Pi 4 Model B 4Gb
Describe how to replicate the issue
- Start the server.
- Register 6 paths: cam1, cam2, cam3, ... cam6.
- Assign several hooks to these paths.
- Publish a 20-second video to each path in a loop, with a 10-second interval:
ffmpeg -re -stream_loop 0 -t 20 -i video.mp4 -c copy -f rtsp -rtsp_transport tcp rtsp://localhost:8554/cam1 - Access it through the device, which internally uses GStreamer (RTSP), whenever MediaMTX reports that it is ready.
Expected results
- MediaMTX consumes resources moderately.
Actual results
- MediaMTX initially consumes a small amount of CPU and memory, but the usage increases over time.
- After 40000 sessions the CPU consumption is 270% and the memory consumption is 42%.
- Stopping publishing & accessing the server doesn't help.
Temporary fix
Restart MediaMTX
Server logs
Logs for the last hour: mediamtx.log
CPU/Memory consumption: top.log
Network dump
No response
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested