Solved

Inconsistent JavaMail Performance

Posted on 2008-10-03
7
671 Views
Last Modified: 2013-12-17
I have a Java web application using Apache & Tomcat on a Linux server with SendMail as my mail server. After years without an issue, I have suddenly experienced wide performance swings when sending out an email via my web app. From < 1 second to > 20 seconds. It is very sporadic and on some days it is consistently really slow ( > 30 seconds).  Any ideas on how/why this could happen and what can be done about it?
0
Comment
Question by:scott_m_ruby
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2
7 Comments
 
LVL 26

Expert Comment

by:jar3817
ID: 22641582
What do you mail logs say is going on? Look at /var/log/maillog
0
 

Author Comment

by:scott_m_ruby
ID: 22642213
Everything looks good in the maillog. Is there anything else to check?
0
 

Author Comment

by:scott_m_ruby
ID: 22642232
The other really odd thing is that it seems like every other day it gets very slow to send an email all day. It has taken between 20-30 seconds to send every email today. When I say the logs look good, I mean that there are no errors. Is there something else in the logs that might be telling?
0
Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

 
LVL 26

Expert Comment

by:jar3817
ID: 22642246
I would look at the times for each entry related to one of these messages, to see perhaps at what stage of sending the mail it gets delayed. Have you checked your DNS setup? It could just be related to the time it takes to resolve the IP of the server it needs to send to. Do you run your own resolver or are you using your ISP's?
0
 

Author Comment

by:scott_m_ruby
ID: 22649672
I have added some additional logging to see if I can better track the delay, as you suggest. We don't run our own resolver.
0
 

Author Comment

by:scott_m_ruby
ID: 22662585
My logging is indicating that after executing my send method (Java Mail API )  it may take 25 seconds to return from the method call. The entry in the maillog will typically show up about 15 seconds after the send method has completed. It matches the exact delay value indicated in the maillog.
0
 

Accepted Solution

by:
scott_m_ruby earned 0 total points
ID: 24118380
Rebooting my entire server resolved the problem.
0

Featured Post

Major Incident Management Communications

Major incidents and IT service outages cost companies millions. Often the solution to minimizing damage is automated communication. Find out more in our Major Incident Management Communications infographic.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
In this video we show how to create an Address List in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Organization >> Ad…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question