Skip to content

Commit

Permalink
Merge pull request #112 from Earlopain/promote-process-warmup
Browse files Browse the repository at this point in the history
Promote `Process.warmup` for `after_mold_fork` with supported Rubies
  • Loading branch information
casperisfine committed May 7, 2024
2 parents 87a7f18 + 9a84f44 commit 1430579
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/CONFIGURATION.md
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 1430579

Please sign in to comment.