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

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

chibenwa commented on pull request #280:
URL: https://github.com/apache/james-project/pull/280#issuecomment-745701937


   BTW here is a run for 10MB
   
   ```
   Scenario: Startup + 3 messages for 5 rcpts, 10MB each + Shutdown
   Code version: Locking version of COW
   Benchmark                                                                  
Mode  Cnt            Score              Error   Units
   MimeMessageBenchTest.benchmark1                                            
avgt    3        49901.215 ±        92917.167   ms/op
   MimeMessageBenchTest.benchmark1:·gc.alloc.rate                             
avgt    3           85.808 ±          156.009  MB/sec
   MimeMessageBenchTest.benchmark1:·gc.churn.G1_Eden_Space                    
avgt    3          511.349 ±          977.955  MB/sec
   MimeMessageBenchTest.benchmark1:·gc.churn.G1_Old_Gen                       
avgt    3           76.985 ±          165.456  MB/sec
   MimeMessageBenchTest.benchmark1:·gc.churn.G1_Survivor_Space                
avgt    3            2.232 ±           13.451  MB/sec
   MimeMessageBenchTest.benchmark1:·gc.count                                  
avgt    3          549.000                     counts
   MimeMessageBenchTest.benchmark1:·gc.time                                   
avgt    3         8716.000                         ms
   
   Scenario: Startup + 3 messages for 5 rcpts, 10MB each + Shutdown
   Code version: Always COPY
   Benchmark                                                                  
Mode  Cnt            Score              Error   Units
   MimeMessageBenchTest.benchmark1                                            
avgt    3        55688.810 ±       163013.521   ms/op
   MimeMessageBenchTest.benchmark1:·gc.alloc.rate                             
avgt    3           77.816 ±          207.068  MB/sec
   MimeMessageBenchTest.benchmark1:·gc.churn.G1_Eden_Space                    
avgt    3          462.497 ±         1271.321  MB/sec
   MimeMessageBenchTest.benchmark1:·gc.churn.G1_Old_Gen                       
avgt    3           70.097 ±          189.172  MB/sec
   MimeMessageBenchTest.benchmark1:·gc.churn.G1_Survivor_Space                
avgt    3            1.939 ±           13.101  MB/sec
   MimeMessageBenchTest.benchmark1:·gc.count                                  
avgt    3          558.000                     counts
   MimeMessageBenchTest.benchmark1:·gc.time                                   
avgt    3         9021.000                         ms
   ```
   
   Maybe we should plan running similar bench on real implems, not just memory, 
before taking decisions?


----------------------------------------------------------------
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]


> MimeMessageCopyOnWriteProxy is not thread safe
> ----------------------------------------------
>
>                 Key: JAMES-3477
>                 URL: https://issues.apache.org/jira/browse/JAMES-3477
>             Project: James Server
>          Issue Type: Wish
>            Reporter: Benoit Tellier
>            Priority: Major
>
> https://www.mail-archive.com/[email protected]/msg69221.html
> & 
> https://github.com/jeantil/james-project/commit/c0354ea21c5b0a8f6d46e9919f7db0d97db9eb23
> proves there is a concurrency issue in MimeMessageCopyOnWriteProxy class that 
> we need to investigate.
> It causes our test suite to be flacky.



--
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