On 31 January 2013 14:30, Ben Litchfield <[email protected]> wrote:
> I'm having an issue with getting jmeter to refresh it's DNS cache
>
> JRE 1.7
>
> I'm attempting to do some load testing against an amazon ELB.  The ELB
> is pre-warmed and has 8 ip addresses
>
> for example
>
> nslookup mylb.us-east-1.elb.amazonaws.com
> Addresses:  x.x.x.98
>           x.x.x.87
>           x.x.x.164
>           x.x.x.96
>           x.x.x.143
>           x.x.x.186
>           x.x.x.85
>           x.x.x.75
>
> But when I run my test it only ever uses a single ip address.
>
> I'm using a SOAP/XML-RPC Request KeepAlive=False and as its running I
> call "netstat -n -a" to see what IP it's connecting to.  For a test
> run it only uses a single ip address.  When I restart JMeter it will
> start using a new ip address.
>
> I reviewed on the web and have attempted to set
> networkaddress.cache.ttl=0 sun.net.inetaddr.ttl=0 in all recommended
> locations
>
> 1)adding -Dsun.net.inetaddr.ttl=0 to JVM_ARGS
> jmeter -q test.properties -t UnloadedPolling-5000.jmx java.exe
> -XX:+HeapDumpOnOutOfMemoryError -Xms512m -Xmx512m -XX:NewSize=128m
> XX:MaxNewSize=128m -XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=50
> -XX:MaxTenuringThreshold=2 -Dsun.rmi.dgc.client.gcInterval=600000
> -sun.rmi.dgc.server.gcInterval=600000 -XX:PermSize=64m
> -XX:MaxPermSize=64m  -Dsun.net.inetaddr.ttl=0 -jar
> "C:\javalib\apache-jmeter-2.8\bin\ApacheJMeter.jar" -q test.properties
> -t UnloadedPolling-5000.jmx
>
> 2)Adding the below to test.properties  (note above command line)
> networkaddress.cache.ttl=0
> sun.net.inetaddr.ttl=0
>
> 3)Updated JRE\lib\security\java.security
> networkaddress.cache.ttl=0
>
> But it still only uses a single address.
>
> Any additional thoughts?

The OS might also cache.

> Thanks,
> Ben
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to