Solved

Inconsistent JavaMail Performance

Posted on 2008-10-03
7
661 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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
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…
To show how to create a transport rule 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 >> Rules tab.:  To cr…

705 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

19 Experts available now in Live!

Get 1:1 Help Now