Skip to content

Commit

Permalink
Promote Process.warmup for after_mold_fork with supported Rubies
Browse files Browse the repository at this point in the history
  • Loading branch information
Earlopain committed May 7, 2024
1 parent b55f7d0 commit 9a84f44
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/CONFIGURATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,13 @@ end
```ruby
after_mold_fork do |server, mold|
Database.disconnect!

# Ruby < 3.3
3.times { GC.start } # promote surviving objects to oldgen
GC.compact

# Ruby >= 3.3
Process.warmup
end
```

Expand Down

0 comments on commit 9a84f44

Please sign in to comment.