Skip to content

C# Client SDK memory/GC spikes of 64KB/250KB several times a second #4099

@rekhoff

Description

@rekhoff

We have received a bug report had the text:

"Looks like C# client SDK is frequently allocating a substantial amount of memory (250 kb up to several times a second, see red spikes in screenshot). Some of those allocations are pretty beefy (64kb)."

They are currently using SpacetimeDB 1.7.0, but I don't believe that is a factor. They also included a screenshot from Unity's Profiler, showing the SpacetimeDB Network Thread creating these spikes on the Memory section, under the GC Allocated in Frame category.

These spikes are consistent with per-message allocations in the client’s websocket receive pipeline, plus decompression buffering.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions