Closed Arsnael closed 6 months ago
For Email/get, we seem to buffer body binary parts using Mime4J to be able to recalculate the size of the part.
This causes James to consume a very high amount of memory, which can cause performance issues if there is too many of those.
We should try to find a way to avoid buffering the binary parts in order to save memory, and boost performance for Email/get JMAP method.
JIRA ticket: https://issues.apache.org/jira/browse/JAMES-3995
PR: https://github.com/apache/james-project/pull/2005
Other PR that serves email/get optimization as well: https://github.com/apache/james-project/pull/2024
For Email/get, we seem to buffer body binary parts using Mime4J to be able to recalculate the size of the part.
This causes James to consume a very high amount of memory, which can cause performance issues if there is too many of those.
We should try to find a way to avoid buffering the binary parts in order to save memory, and boost performance for Email/get JMAP method.
JIRA ticket: https://issues.apache.org/jira/browse/JAMES-3995