-
Notifications
You must be signed in to change notification settings - Fork 401
Enhancements Jmeter autostop plugin #729
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@Override | ||
public void sampleOccurred(SampleEvent se) { | ||
SampleResult sr = se.getResult(); | ||
statCalc.addSample(sr); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be resource consuming, from what I remember. Please enclose it into if(testValuePercentileRespTime > 0) {}
, so it's only called when actually used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the suggestion. Have moved it under if(testValuePercentileRespTime > 0) {}
</Constraint> | ||
</Constraints> | ||
</Component> | ||
<Component class="javax.swing.JLabel" name="jLabel13"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please attach to PR the screenshot of resulting UI, to review the visual
log.debug(testPercentileValue+"Percentile Response >"+testValuePercentileRespTime+"until"+testValuePercentileRespTimeSec+"currentValue"+percentileResponseTime); | ||
log.debug(testActualValue+">>"+testExpectedValue+">>"+skipIter+">>"+testValueCustomSec); | ||
if(percentileResponseTime > testValuePercentileRespTime) { | ||
log.dubeg((sec - percentileRespTimeExceededStart)+" "+getPercentileResponseTimeSecsAsInt()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dubeg?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo. Have corrected and commented out. Thanks for the correction
} | ||
} | ||
|
||
if(testValuePercentileRespTime > 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This whole block of code is not formatted well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also excessive calls with concatenation will cost a lot of memory and CPU for JMeter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have formatted and commented out debug statements
Cool. |
Thanks |
Added auto-stop feature based on percentile value for response time.
Considering micro-services, this feature is helpful for latency sensitive application's where P95 and P99 are used to determine SLA breeches and stop the load automatically with the help of this plugin