On Wed, 2005-07-27 at 20:19 +0200, Sergei Riaguzov wrote: > On 7/27/05, Michael Stover <[EMAIL PROTECTED]> wrote: > > > It's been around for a while - I would say it's probably time to start > > using the HttpSampler2 in production settings. > But is it stable? What does it lack to stop being alpha version?
It lacks someone making an executive decision to change the name. > > > If you don't use a listener that stores the response, the response will > > be discarded pretty quick. > I've looked quickly into the code and it seems that HttpSampleResult > or some similar class (I don't remember the name right now) object > which is saved in JMeterThread is then given as a parameter to > notifyListeners() and some other methods. I also found out that there > is always a previous HttpSampleResult saved in threadContext - why? > > All the responseBody is taken by httpMethod.getResponseBody() and then > given as a > parameter to HttpSampleResult.setResponseData() as an array of bytes. > In SizeAssertion the size of the data is checked as this array length. > > And it appears that this bunch of data in HttpSampleResult (this array > of bytes with response) may be providing to memory usage when there > are about 1000 thread downloading a page of 50 Kb simultaniously for > example. > > Do you think that changing it a little may improve memory usage? Maybe > it would make sense to remove all the links to this data as soon as > possible if there's no need in regular expressions checking and > listeners like that? throwing away data or never downloading it would surely save on memory, but that data is very often used - either to check it against assertions, or to parse information from it for the next sample. Also, actually downloading every byte is an important part of the process, in terms of performance testing. 1000 threads is probably beyond the reach of most client machines. -Mike > > > JMeter does not do IP spoofing. > Thanx for the answer. > > --------------------------------------------------------------------- > 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]
