[ 
https://issues.apache.org/jira/browse/JAMES-4023?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

René Cordier resolved JAMES-4023.
---------------------------------
    Resolution: Fixed

https://github.com/apache/james-project/pull/2167 resolved the issue and has 
been merged

> SMTP server is blocking on the IO thread
> ----------------------------------------
>
>                 Key: JAMES-4023
>                 URL: https://issues.apache.org/jira/browse/JAMES-4023
>             Project: James Server
>          Issue Type: Bug
>          Components: POP3Server, SMTPServer
>    Affects Versions: master, 3.8.0, 3.8.1
>            Reporter: Benoit Tellier
>            Priority: Major
>             Fix For: 3.9.0, 3.8.2
>
>         Attachments: Screenshot from 2024-03-29 16-30-53.png, 
> cnb-imap-29-03-2024.html
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> While conducting a routine flame graph analysis [attached] I realized some 
> file calls where done on the event loop [screenshot attached]
> By printing the thread that performs the enqueuing I was able to confirm this:
> {code:java}
> ENQUEUING on smtpserver-io-1
> {code}
> Blocking on the netty eventloop blocks all other concurrent requests to that 
> thread and can cause significant delays by making the overall server 
> irresponsive. This shall be avoided at all cost!
> By reworking slightly the Netty pipeline, and relying on the 
> eventExecutorGroup for the core handler this had effectively been mitigated:
> {code:java}
> ENQUEUING on smtpserver-0
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org

Reply via email to