Benoit Tellier created JAMES-4023:
-------------------------------------
Summary: 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
Fix For: 3.8.2, 3.9.0
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: [email protected]
For additional commands, e-mail: [email protected]