Skip to content

Memory Issue with 1.0.0 #117

Open
Open

Description

@jeremybdk

What version of Bootstrap Email are you using?

1.0.0 alpha 3.1

How are you compiling?

Rails

Describe your issue

Hello,
We recently started using BootstrapEmail 1.0.0 alpha 3.1 and we noticed a huge jump in memory consumption in our rails app.

I benchmarked it using get_process_mem and here is my results when sending 1 and 100 mails.

Version 1.0.0 alpha 3.1
1 Mail:
Starting Mailer method Memory : 342.27734375 Mb
Ending Mailer method Memory : 363.30078125 Mb
100 Mails:
Starting Mailer method Memory : 280 Mb
Ending Mailer method Memory : 360.871633 Mb

Version 0.3.4
1 Mail:
Starting Mailer method Memory : 311.4140625 Mb
Ending Mailer method Memory : 312.51171875 Mb
100 Mails:
Starting Mailer method Memory : 279 Mb
Ending Mailer method Memory : 299 Mb

Without Gem
1 Mail:
Starting Mailer method Memory : 319.19921875 Mb
Ending Mailer method Memory : 319.234375 Mb
100 Mails:
Starting Mailer method Memory : 270 Mb
Ending Mailer method Memory : 281 Mb

I don't know exactly where this happens, but it's a huge raise for Version 1.0.0

Thank you!

Activity

  1. stuyam commented on Jun 15, 2021

    @stuyam
    Member

    Just out of curiosity, what are the units for those numbers? bytes, kb, mb, gb? Bummer that that is the case, however not totally surprising. Im hoping that performance will be part of a 1.1.0 release, right now the alpha focuses mostly on functionality. So once that is done performance which be another aspect to work on.

    Thank you for bringing this up those it will be a great problem to fix 👍

  2. added
    v1Relates to version v1.x of Bootstrap Email
    on Jun 15, 2021
  3. jeremybdk commented on Jun 15, 2021

    @jeremybdk
    Author

    Just out of curiosity, what are the units for those numbers? bytes, kb, mb, gb? Bummer that that is the case, however not totally surprising. Im hoping that performance will be part of a 1.1.0 release, right now the alpha focuses mostly on functionality. So once that is done performance which be another aspect to work on.

    Thank you for bringing this up those it will be a great problem to fix 👍

    Sorry I forgot the units when I formatted the text properly, it's mb, so sending 100 emails increase the process memory by 80Mb.

    We noticed this when we deployed to Heroku as the process was using too much memory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    v1Relates to version v1.x of Bootstrap Email

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions