zigster64 / zig-zag-zoe

Multiplayer TicTacToe - in Zig - using HTMX for that zero-javascript experience
http://zig-zag-zoe.com
MIT License
19 stars 1 forks source link

runs fine for a while, then pegs the cpu to 100 #14

Closed zigster64 closed 11 months ago

zigster64 commented 11 months ago
image

CPU spike Looks like a slow memory leak as well

Investigate

zigster64 commented 11 months ago

Rebuilding with latest http.zig (cleans up arenas mid request) ... might resolve some of that apparent memleak, if its happening on the keepalive events.

🤷

Tweaking the buffer sizes and max header sizes down to reduce memory usage. Note that if you go too far, you can easily trash the output, if the write buffer is not big enough.

Make it at least as big as the the biggest audio file / image

zigster64 commented 11 months ago

This is fixed now, after patching http.zig

good work