Solved

Inconsistent JavaMail Performance

Posted on 2008-10-03
7
667 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
  • 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
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Uninstall Exchange 2013 error 1 62
GMAIL ISSUE 4 34
exchange out of office 8 49
mail server backup 10 33
Email signatures have numerous marketing benefits. Here are 8 top reasons to turn your email signature into a marketing channel.
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
In this video we show how to create an Accepted Domain 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 Mail Flow >> Ac…
In this video we show how to create a mailbox database 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 Servers >> Data…

815 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now