Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing statistics data #334

Open
kn007 opened this issue Jul 10, 2021 · 2 comments
Open

Missing statistics data #334

kn007 opened this issue Jul 10, 2021 · 2 comments

Comments

@kn007
Copy link

kn007 commented Jul 10, 2021

worker_processes auto(4 core) with rtmp_auto_push on. No publishers, no clients. In bytes/out bytes is 0KB.

If change worker_processes to 1, working well. It seems that statistics cannot show the out bytes of hls stream.
I only have one app with using hls.

rtmp {
	server {
		...
		application stream {
			...
			deny play all;
			meta off;
			live on;
			record off;
			hls on;
			...
		}
	}
}

Any way to troubleshoot? Thx.

@kn007
Copy link
Author

kn007 commented Jul 10, 2021

OK, I found the problem.

Config:

server {
        listen 127.0.0.1:80;
        server_name 127.0.0.1;
        ...
        #location /rtmp_stat {
        #    rtmp_stat all;
        #    allow 127.0.0.1;
        #    deny all;
        #}
        ...
}
server {
        listen 443 ssl http2;
        server_name example.com;
        ...
        location /stat {
            rtmp_stat all;
            rtmp_stat_stylesheet stat.xsl;
        }
        ...
}

Then example.com/stat no data.

After remove comment content, it's working well.

It seems that Nginx with mutli workers cannot count the number of clients well.

Will out bytes statistics be added for hls?

Thanks

@kn007
Copy link
Author

kn007 commented Jul 10, 2021

Still have problem with statistics data, it seems that I was able to get statistics because I visited the corresponding worker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant