Why does JMeter SMTP Sampler take significantly longer to send an email?
I’m testing an app on a closed network. Mcafee HIPS and endpoint protection is enabled. We can send emails to our SMTP relay successfully, using either Powershell's send-mail message or our MSTest .NET C# based automated tests, at an approx rate of one email per second. However, when using JMeter’s SMTP Sampler, I’m seeing an average of 36 seconds per email to the very same SMTP relay from the same originating client pc.
One thought I had was that maybe there is a ton of overhead in establishing/disconnecting of a connection for each iteration in a loop but that doesn’t seem to affect PowerShell and JMeter SMTP Sampler has acceptable rates when ran outside this network pointed toward Gmail.
Maybe Mcafee treats Java mail x (JMeter’s underlying library) SMTP packets differently than when they come from .net or Powershell?
Don't forget, when your helpful posts earn a kudos or get accepted as a solution you can unlock perks and badges. Those aren't the only badges, either. How many can you collect? Click here to learn more.
Community Help Hub
New to the forums or need help finding your way around the forums? There's a whole hub of community resources to help you.