Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/noma4i/rails_malloc_trim
Ruby GC malloc_trim for Rails
https://github.com/noma4i/rails_malloc_trim
gc malloc rails ruby
Last synced: 3 days ago
JSON representation
Ruby GC malloc_trim for Rails
- Host: GitHub
- URL: https://github.com/noma4i/rails_malloc_trim
- Owner: noma4i
- License: mit
- Created: 2019-06-25T04:28:50.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-09T12:51:45.000Z (about 5 years ago)
- Last Synced: 2024-10-31T13:47:01.511Z (13 days ago)
- Topics: gc, malloc, rails, ruby
- Language: Makefile
- Size: 12.7 KB
- Stars: 9
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# RailsMallocTrim
Drop-in library for RAILS app to save some memory.
Gem will call `malloc_trim` after every GC run. This gem solves the problem with the minimum possible effort.
It will check if `malloc_trim` is available and then enables trimming along with loading your Rails app## Installation
Just put it in your Gemfile:
```ruby
gem 'rails_malloc_trim', '~> 0.2'
```Done!
## Impact
- 99th percentile performance is slightly impacted
- CPU is very slightly higher## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
### Based on idea from
* https://www.joyfulbikeshedding.com/blog/2019-03-14-what-causes-ruby-memory-bloat.html
* https://github.com/tessi/malloc_trim