Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Inconsistent JavaMail Performance

Posted on 2008-10-03
7
Medium Priority
?
679 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
Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

 
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Marketers need statistics and metrics like everybody else needs oxygen. In this article we explain how to enable marketing campaign statistics for Microsoft Exchange mail.
Steps to fix error: “Couldn’t mount the database that you specified. Specified database: HU-DB; Error code: An Active Manager operation fail”
In this video we show how to create a Resource Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: Navigate to the Recipients >> Resources tab.: "Recipients" is our default selection …
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Suggested Courses

972 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