Igor Kromin |   Consultant. Coder. Blogger. Tinkerer. Gamer.

| Views: 1808
Some of the recent work I've been doing required the use of SoapUI to do some basic load testing. When I first started this, every request I tried sending to the server was taking 30+ seconds to complete. This really stumped me because another, pretty much identical environment would respond immediately. I've finally tracked down the issue to DNS.

The environment I was trying to access was rarely used via SoapUI, so naturally I did not bother configuring its IP and hostname in the /etc/hosts file. So I simply used the IP address for the web service endpoint I was accessing and thought that should be sufficient. It turns out, however, that SoapUI tries to do a DNS lookup on the IP address and as this was an internal address, the network name server would not respond for a long time. This is where the delay was coming from.

The solution was to add the IP address to the hosts file. The hostname doesn't actually matter in this case, it can be anything. Once this is done, SoapUI started establishing connections to the server instantly.



-i

Have comments or feedback on what I wrote? Please share them below! Found this useful? Consider sending me a small tip.
comments powered by Disqus
Other posts you may like...