[ https://issues.apache.org/jira/browse/JAMES-4023?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benoit Tellier updated JAMES-4023: ---------------------------------- Attachment: Screenshot from 2024-03-29 16-30-53.png > 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 > > > 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