Open edwardstevenw opened 6 days ago
There is no way to set the memory limit of the web viewer as of today (it always defaults to 2GiB -- wasm32's memory limit).
Is there any reason your client cannot use the native viewer btw? The native viewer can connect to a Rerun WebSocket server just the web viewer does (with orders of magnitude better performance).
E.g. rerun ws://1.2.3.4:9877
.
Related:
The client I am using here is a tablet device, so I am not able to install rerun native in there, therefore I was using the rerun web browser to view the data from the server.
Describe the bug
I am running a rerun web-server which logs data over HTTP, and the client side opens a web browser to view the data. The problem I encountered is the memory of my client is piling up due to the memory limit in the client side rerun browser is set to 2.3GB. I am logging high frequency live data, so it piles up the memory used by the web browser very quickly and freezes the system. Is there a way to limit the memory in rerun web browser.
To Reproduce Steps to reproduce the behavior:
Expected behavior
Running rerun viewer natively does what is expected, the memory limit can be set and will drop old data when memory limit is reached.
On the bottom left, memory limit is ~100MB which is what was expected.
Desktop (please complete the following information):
Rerun version
rerun-cli 0.20.0 (default map_view nasm native_viewer release web_viewer) [rustc 1.79.0 (129f3b996 2024-06-10), LLVM 18.1.7] x86_64-unknown-linux-gnu release-0.20.0 2bed90b, built 2024-11-14T15:43:35Z Video features: av1 default ffmpeg nasm serde