nginx-module-vts icon indicating copy to clipboard operation
nginx-module-vts copied to clipboard

Json gets cut off after 131073 bytes

Open ButteredCats opened this issue 11 months ago • 3 comments

Set this up on two of my nginx servers the other day, quickly noticed that after just a short bit the page stopped working on one of them, and then the other followed shortly after.

For whatever reason on both of them the json just gets cut off after 131073 bytes. Jsonp shows the same behavior. Screenshot_20241210_194031

The stats that are still included are still updating, although the html page no longer shows any stats once the json gets cut off.

ButteredCats avatar Dec 11 '24 00:12 ButteredCats

Looks like this was actually caused by by a module I have for zstd compression (https://github.com/tokers/zstd-nginx-module) and turning off zstd for the status page fixes it. Seems to line up with the default zstd_buffers value which is 131072 bytes.

Nothing else is getting cut off though, so I'm not sure if the problem lies within the zstd module or vts.

ButteredCats avatar Apr 26 '25 18:04 ButteredCats

@ButteredCats Thanks investigating. We will reinvestigate the concern about the zstd module. Could you tell us your using version of the zstd-module, nginx and other using modules?

u5surf avatar Apr 27 '25 06:04 u5surf

Nginx mainline 1.27.4 zstd module https://github.com/tokers/zstd-nginx-module latest commit (f4ba115) brotli module https://github.com/google/ngx_brotli latest commit (a71f931) more headers module https://github.com/openresty/headers-more-nginx-module latest commit (84a65d6) and 0.2.4 of the vts module

ButteredCats avatar Apr 27 '25 13:04 ButteredCats