This is a production streaming server running nginx and munin. Its only purpose is to serve static video using nginx (no PHP, no MySQL).
All statistics and monitoring tools show the server being healthy (at least from my understanding) other then gstat which shows 100% busy with a network transfer rate of 33 MB/s. If I restart nginx, the server can do even 40 MB/s with gstat only showing around 40% busy. However, over time, % busy creeps up to 100% and L(q) shoots to 10 instead of staying mostly at 0 (which is the case after a restart).
I believe it has something to do with the many concurrent connections.
[CMD=]netstat -a[/CMD] shows 230 "ESTABLISHED" connections. SSH interactivity is a bit slow. As soon as I stop nginx, everything is fine again.
I had assigned 5MB mp4_buffer_size in nginx. Maybe since 5MBx230 Connections = 1150GB of memory is required for nginx? Also, why do I have about 1 GB of memory inactive? How can I tell FreeBSD to use all the memory available?





All statistics and monitoring tools show the server being healthy (at least from my understanding) other then gstat which shows 100% busy with a network transfer rate of 33 MB/s. If I restart nginx, the server can do even 40 MB/s with gstat only showing around 40% busy. However, over time, % busy creeps up to 100% and L(q) shoots to 10 instead of staying mostly at 0 (which is the case after a restart).
I believe it has something to do with the many concurrent connections.
[CMD=]netstat -a[/CMD] shows 230 "ESTABLISHED" connections. SSH interactivity is a bit slow. As soon as I stop nginx, everything is fine again.
I had assigned 5MB mp4_buffer_size in nginx. Maybe since 5MBx230 Connections = 1150GB of memory is required for nginx? Also, why do I have about 1 GB of memory inactive? How can I tell FreeBSD to use all the memory available?




