Summary: | local ip address configurable | ||
---|---|---|---|
Product: | JMeter - Now in Github | Reporter: | Heinrich Soebke <heinrich> |
Component: | Main | Assignee: | JMeter issues mailing list <issues> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | ||
Priority: | P3 | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Hardware: | Other | ||
OS: | other | ||
Attachments: | sample |
Description
Heinrich Soebke
2004-01-14 17:58:04 UTC
I don't understand - where would this be used? in cases where the client is identified in the server by its ip-address (normally the identification is done by the session identifier). The actual topic is creating GPRS load in a GSM network. in cases where the client is identified in the server by its ip-address (normally the identification is done by the session identifier). The actual topic is creating GPRS load in a GSM network. I would use this too. Having the ability to round-robin requests/sessions as coming from different client IPs helps a lot when trying to simulate real network performance for the lower level software (e.g. kernel networking stacks). If all traffic comes from one IP address, that is not very real world. -Eric Not sure how this can be done - any suggestions? Also, note that proxies will present the same IP address to the server even though there may be many different IPs behind the proxy. It is wrong to assuming that an IP address is unique to a host - let alone a session, as there maye be many sessions/browsers running on a single host. Created attachment 17557 [details]
sample
> Not sure how this can be done - any suggestions? I'm no longer in that project, but I try to remember: There was a solution based on the org.apache.commons.httpclient package. We had to configure every ip-address which was used for a request on the local machine, otherwise no request with that address was possible. This was possible on Windows and on Linux. We created for every source ip address http requests in a loop. The attached code snippet may demonstrate it. Starting point is the method runTest. > Also, note that proxies will present the same IP address to the server even > though there may be many different IPs behind the proxy. > It is wrong to assuming that an IP address is unique to a host - let alone a > session, as there maye be many sessions/browsers running on a single host. Yes, that's true, but in that special case we needed requests with different source ip addresses. I've added the code to the 2.1 branch. It will be in the next release, and in the the nightly from 2-1.20060414 Sorry it has taken so long. Note that it will only work with the Apache HttpClient sampler. This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/1291 |