Re:Reasons to use Phoenix instead of Rails
by tychver on Monday November 27, 2017 @03:24AM
(#15785683)
500MB per worker is totally standard. What happens is a job causes a huge array or hash to be allocated, and after it‘s finished the memory can’t be returned to the OS due to heap fragmentation. Java does some crazy stuff with compaction. C programs typically try and internally allocate into arenas to avoid it.
Re:Reasons to use Phoenix instead of Rails
by 33degrees on Wednesday November 29, 2017 @01:14PM
(#15809264)
The thing is we're not even using rails, it's a simple Sinatra app with ActiveRecord, so there's not much being loaded that's not being used. Could be the ActiveRecord itself is the problem though.
I'm not sure if these same problems do or don't come up with Phoenix, but when I briefly used it, it did seem to have a smaller memory footprint.