Skip to content

Commit

Permalink
Use ruby that supports jemalloc
Browse files Browse the repository at this point in the history
In production, memory usage of the server can be steadily increased by
performing an activestorage request in an infinite loop. The issue can be
reproduced in development (though it is less pronounced)

When using a ruby configured with jemalloc, the issue is no longer reproducible
in development. So I'm hoping that the same will be true in production.
  • Loading branch information
chvp committed Nov 16, 2024
1 parent 179be08 commit b32f031
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
pkgs = import nixpkgs { inherit system; overlays = [ devshell.overlays.default ]; };
gems = pkgs.bundlerEnv rec {
name = "accentor-api-env";
ruby = pkgs.ruby_3_3;
ruby = pkgs.ruby_3_3.override { jemallocSupport = true; };
gemfile = ./Gemfile;
lockfile = ./Gemfile.lock;
gemset = ./gemset.nix;
Expand Down

0 comments on commit b32f031

Please sign in to comment.