Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Why does my JTS show services hanging in MailerService.sendMessage()?

If I look in the active services I frequently see a lot of calls to the MailerService which take a long time to complete.

Is this a problem and what could be causing this?


1 vote



One answer

Permanent link
 If MailService calls are visibly queuing up and taking several minutes to be processed then there is a potential problem since these calls could potentially prevent license requests for new client connections.

There are several possible causes of this including a bad SMTP configuration, however if emails are eventually sent then you should look the details of the waiting service calls and see if any of them include a call to SMTPTransport.isConnected.

If this code is frequently hit then you may be encountering a situation where JTS is trying to keep an SMTP connection open by sending NOOP messages which is known to interact with some firewall configurations designed to defeat denial of service attacks.

If this is the case there are two possible workarounds, one is to change the network configuration so that it no longer reacts to frequent NOOP messages. This approach however may not be approved by corporate IT standards.

The second workaround is to reduce reuse of the SMTP connection by setting "Transport Reuse Count" in the JTS mail configuration to 5(the default is 19). 

1 vote

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 7,495

Question asked: Mar 11 '14, 1:18 p.m.

Question was seen: 6,108 times

Last updated: Jun 19 '14, 12:35 p.m.

Confirmation Cancel Confirm