[ 
https://issues.apache.org/jira/browse/JAMES-3487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17256901#comment-17256901
 ] 

ASF GitHub Bot commented on JAMES-3487:
---------------------------------------

chibenwa commented on a change in pull request #285:
URL: https://github.com/apache/james-project/pull/285#discussion_r550433315



##########
File path: docs/modules/servers/pages/distributed/configure/index.adoc
##########
@@ -59,4 +59,27 @@ By omitting these files, no extra behaviour is added.
 ** xref:distributed/configure/spam.adoc[This page] documents Anti-Spam setup 
with SpamAssassin.
 ** xref:distributed/configure/remote-delivery-error-handling.adoc[This page] 
proposes a simple strategy for RemoteDelivery error handling.
 ** xref:distributed/configure/collecting-contacts.adoc[This page] documents 
contact collection
-** xref:distributed/configure/collecting-events.adoc[This page] documents 
event collection
\ No newline at end of file
+** xref:distributed/configure/collecting-events.adoc[This page] documents 
event collection
+
+== System properties
+
+Some tuning can be done via system properties. This includes:
+
+.System properties
+|===
+| Property name | explanation
+
+| james.message.memory.threshold
+| (Optional). String (size, integer + size units, example: `12 KIB`, supported 
units are bytes KIB MIB GIB TIB). Defaults to 100KIB.
+This governs the threshold MimeMessageInputStreamSource relies on for storing 
MimeMessage content on disk.
+Below, data is stored in memory. Above data is stored on disk.
+Lower values will lead to longer processing time but will minimize heap memory 
usage. Modern SSD hardware
+should however support a high throughput. Higher values will lead to faster 
single mail processing at the cost
+of higher heap usage.
+
+
+| james.message.usememorycopy
+|Optional. Boolean. Defaults to false. Recommended value is true.

Review comment:
       that is a typo. Of course MUST be false




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


> Configure MimeMessageInputStreamSource THRESHOLD
> ------------------------------------------------
>
>                 Key: JAMES-3487
>                 URL: https://issues.apache.org/jira/browse/JAMES-3487
>             Project: James Server
>          Issue Type: Improvement
>          Components: James Core
>            Reporter: Benoit Tellier
>            Priority: Major
>
> This represents the point at which we should switch from a memory storage 
> into a file storage.
> Defaults is 100 Kb.
> Obviously this parameter is important:
>  - Higher values will operate mostly in-memory thus will have low latencies 
> but will trash the heap and might trigger a GC hell.
>  - Lower values will defensively operate on files. Higher latencies but 
> predictable throughtput. Modern SSDs and FS cache should enable to keep up 
> with high rates.
> Optimally we should have some bench showing the impact of this parameter.
> Related to JAMES-3477.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to