2013-01-18

Configuring JMeter Part 6 - HTTP/HTTPS or other Protocols?

In this article we are going to see how can we configure jmeter by changing property of JMeter.
Jmeter has many of properties. In this section we will see the protocol settings in jmeter.propertie.

In the jmeter installed bin directory(in my case C:\apache-jmeter-2.8\bin), we get a file named jmeter.properties. Open this with note pad. We can find various properties which are activated and some are not yet activated.

------HTTPS/SSL Section---
- To enable/Disable SSL session sharing
https.sessioncontext.shared=true

-To set Default HTTPS protocol level
https.default.protocol=TLS
Note : we can set  SSLv3 here

-To Enable multiple HTTPS protocols (Careful before doing):
https.socket.protocols=SSLv2Hello SSLv3 TLSv1

-To reuse cache in SSL[false will reset cache]
https.use.cached.ssl.context=true

-To set Start/End index for keystores with many entries[Default is 0]
https.keyStoreStartIndex=0
https.keyStoreEndIndex=0


------HTTP Section---

-To set retry 3 times of HTTP Java sampler
http.java.sampler.retries=3

-To define Http Client parameters (Commons/Apache)
httpclient.parameters.file=httpclient.parameters
hc.parameters.file=hc.parameters
[Note : See httpclient.parameters/hc.parameters file in bin folder]

-To set the socket timeout 200(ms)[No time out is 0]
httpclient.timeout=200

-To Set the http version [defaults to 1.1]
httpclient.version=1.0

-To Define characters per second [Grater 0 to emulate slow connections]
httpclient.socket.http.cps=0
httpclient.socket.https.cps=0

-To enable loopback
httpclient.loopback=true

-To Define the local host address to be used for multi-homed hosts(multi agent running)
httpclient.localaddress=1.2.3.4

-To set retry count on http 3 or 4 
httpclient3.retrycount=1
httpclient4.retrycount=1

..Thanks...:)...

No comments:

Post a Comment