Test New Relic impact on FOLIO

Test New Relic impact on FOLIO

Overview


The task at hand involves conducting performance tests on Check-in/Check-Out operations under two different conditions:

  • Test Run 1: Running without New Relic.

  • Test Run 2: Running with the New Relic monitoring tool enabled.

  • Test Run 3: Running with the New Relic monitoring tool enabled and changed JVM mod-oa parameter from -XX:MaxMetaspaceSize=128m to -XX:MaxMetaspaceSize=256m

These tests were performed using 20 virtual users to simulate the load on the system. The environment was used for these tests QCP1.

The primary goal of these tests is to assess whether the New Relic monitoring tool impacts the system’s performance.
Ticket: https://folio-org.atlassian.net/browse/PERF-920

Summary

Test Run 1 (Without New Relic). Generate 3159 Check-out transactions and 2420 Check-in transactions. The error rate during the test was 0.04 %. Median Response time for CO = 960 seconds and median Response time for CI =640 seconds.

Test Run 2 (With New Relic). Generate 3180 Check-out transactions and 2381 Check-in transactions. The error rate during the test was 0.04 %. Median Response time for CO = 968 seconds and median Response time for CI = 594 seconds.
Test Run 3 (With New Relic + mod-oa(256m)). Generate 3212 Check-out transactions and 2402 Check-in transactions. The error rate during the test was 0.04 %. Median Response time for CO = 948 seconds and median Response time for CI = 588 seconds.

Conclusion. Two separate tests were conducted in order to determine the impact of enabling New Relic monitoring tool on the Check-in/Check-Out process. The aim of the test was to identify any significant variations in key performance metrics that could potentially be attributed to New Relic.

Comparative analysis of the key performance metrics obtained from both tests yielded the following insights:

  1. Response Times: The median and 95th percentile values for response times exhibited similar trends across both test runs, indicating that New Relic did not add any noticeable overhead to the response times.

  2. Error Rate: The error rates remained consistent in both test scenarios. This suggests that the integration of New Relic did not compromise the stability of the Check-in/Check-Out process.

  3. CPU Usage: The slight variation in CPU usage within the tolerance limit of 5% between the test runs poses no significant concern and is well within acceptable boundaries.

  4. Memory Usage: No changes in memory usage patterns were observed upon enabling New Relic, implying the tool has minimal if any, impact on the memory resources of the system.

In conclusion, the results of the tests demonstrate that utilizing the New Relic monitoring tool does not adversely affect the check-in/check-out process and the overall system performance remains unaffected, but after deployment of New RElic we observed high CPU consumption and OOM errors on mod-oa service.

  1. After increasing mod-oa parameter from -XX:MaxMetaspaceSize=128m to -XX:MaxMetaspaceSize=256m memory CPU utilization decrease to 80%.

Recommendations & Jiras (Optional)

  • While the current tests provided insights into how New Relic impacts the CICO process, it's recommended for future analysis to cover a more extensive range of operations to fully evaluate the impact of New Relic on the system performance during data-import, data-export, or other workflows.

  • Investigate errors described in the Error section, high CPU consumption and OutOfMemoryError on mod-oa module

Test Runs 

  • Test Run 1: Running without New Relic.

    • Test setup: 20 Virtual users, 4000 seconds, 200 seconds of rump up period.

  • Test Run 2: Running with the New Relic monitoring tool enabled.

    • Test setup: 20 Virtual users, 4000 seconds, 200 seconds of rump up period

  • Test Run 3: Running with the New Relic monitoring tool enabled and mod-oa(256m).

    • Test setup: 20 Virtual users, 4000 seconds, 200 seconds of rump up period

Results

NAME

Test 1. Without New Relic

Test 2. With New Relic

Test 3. With New Relic + mod-oa(256m)

CO

CI

CO

CI

CO

CI

TTL REQ, COUNT

3159

2420

3180

2381

3212

2402

THRGHPT, REQ/SEC

1.585

1.214

1.594

1.193

1.638

1.239

ERRORS, COUNT

36

23

43

16

36

24

MIN, MS

24

39

25

46

28

35

MEDIAN, MS

959

640

968

594

947

588

PCT95, MS

1,226

759

1,247

740

1,150

682

MAX, MS

6,504

20,712

14,834

12,165

12,694

17,582