ActionMailbox uses lots of RAM although not in use - how to remove?

Is there a way to remove ActionMailbox from my Rails app? I’m getting out of memory errors with Rails 6, and derailer shows action_mailbox as the lead memory hog — even though my app doesn’t use it:

TOP: 116.9336 MiB
  rails/all: 62.0156 MiB
    action_mailbox/engine: 35.7305 MiB

When using rails new --skip-action-mailbox it comments out the line require "action_mailbox/engine" in config/application.rb:

So I’d try replacing require "rails/all" with this:

require "active_record/railtie"
require "active_storage/engine"
require "action_controller/railtie"
require "action_view/railtie"
require "action_mailer/railtie"
require "active_job/railtie"
require "action_cable/engine"
# require "action_mailbox/engine"
require "action_text/engine"
require "rails/test_unit/railtie"
require "sprockets/railtie"
2 Likes

Excellent - great idea.