Skip to content

Commit

Permalink
Merge pull request #385 from rsvoboda/fixes.v2
Browse files Browse the repository at this point in the history
Add more clarity for RSS and timeToFirstOKRequest
  • Loading branch information
mjurc authored Aug 13, 2024
2 parents 1d63522 + 5ce3400 commit 643dadc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,8 @@ public void testRuntime(TestInfo testInfo, Apps app, MvnCmds mvnCmds, Supplier<U
LOGGER.info("Calculating the stats");
long rssKbAvgWithoutMinMax = getAvgWithoutMinMax(rssKbList);
long timeToFirstOKRequestAvgWithoutMinMax = getAvgWithoutMinMax(timeToFirstOKRequestList);
LOGGER.info("AVG timeToFirstOKRequest without min and max values: " + timeToFirstOKRequestAvgWithoutMinMax);
LOGGER.info("AVG rssKb without min and max values: " + rssKbAvgWithoutMinMax);
LOGGER.info("AVG timeToFirstOKRequest (ms) without min and max values: " + timeToFirstOKRequestAvgWithoutMinMax);
LOGGER.info("AVG RSS (kB) without min and max values: " + rssKbAvgWithoutMinMax);
checkThreshold(app, mvnCmds, rssKbAvgWithoutMinMax, timeToFirstOKRequestAvgWithoutMinMax, SKIP);
} finally {
// Make sure processes are down even if there was an exception / failure
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public static void checkThreshold(Apps app, MvnCmds cmd, long rssKb, long timeTo
if (rssKb != SKIP) {
long rssThresholdKb = app.thresholdProperties.get(propPrefix + ".RSS.threshold.kB");
assertTrue(rssKb <= rssThresholdKb,
"Application " + app + " in " + cmd + " consumed " + rssKb + " kB, which is over " +
"Application " + app + " in " + cmd + " consumed " + rssKb + " kB of RSS memory, which is over " +
rssThresholdKb + " kB threshold.");
}
if (timeToReloadedOKRequest != SKIP) {
Expand Down

0 comments on commit 643dadc

Please sign in to comment.