EUM Overhead Data
EUM Overhead Data in EUM Installation & Integration Guide.
EUM Overhead Data#
The following benchmark measures the overhead introduced by the EUM script:
- Load: 10 TPS
- Duration: 20 minutes
- Application: Apache HTTPD — PetClinic
CPU, Memory, and Load Average#
| Metric | With EUM Script | Without EUM Script | Overhead |
|---|---|---|---|
| Total CPU (%) | 13% | 11% | +2% |
| httpd CPU (%) | ~0.5% | ~0.5% | 0% |
| httpd Memory (%) | Stable | Stable | 0% |
| Load Average | 13 | 11 | +2 |
Observation: CPU usage and system load increase slightly due to additional script injections and beacon calls, while memory utilization remains constant.
Network Throughput#
| Metric | With EUM Script | Without EUM Script | Overhead |
|---|---|---|---|
| Network In (MBps) | 0.1 | 0.05 | +0.05 |
| Network Out (MBps) | 1.2 | 0.8 | +0.4 |
Observation: Outbound network traffic is slightly higher due to EUM beacons sent to the collector, remaining within acceptable operational limits.
Note
Sample application responses are generally small (under 100 KB), whereas the EUM script is approximately 400 KB. As a result, the network bandwidth observed during the performance test is primarily due to transmitting the larger EUM script with each request.
Response Time#
| Metric | With EUM Script | Without EUM Script | Difference |
|---|---|---|---|
| Avg Response Time (ms) | 65.80 | 64.43 | +1.37 |
| Request Volume (avg) | 1110 | 678 | +432 |
Observation: Average response time differs by only 2%, within acceptable variance.
Note
Request volume is higher in the "With EUM Script" test due to the additional calls made for /v1/traces and the EUM JavaScript files, which increase outbound network requests.
Summary#
| Area | Observation | Overhead | Impact |
|---|---|---|---|
| CPU Usage | Slight increase | Minor | Acceptable |
| Memory Usage | Stable | None | Acceptable |
| Load Average | Slight rise with CPU | Minor | Acceptable |
| Network Bandwidth | Increased due to beacon and JS calls | Expected | Acceptable |
| Response Time | 1.4 ms difference | Negligible | Acceptable |
Conclusion: The EUM script introduces negligible overhead on the test application.
- CPU usage and load average increase minimally and remain stable.
- Memory usage and response times remain unaffected.
- Outbound network usage rises slightly due to expected telemetry requests.
- No degradation observed in memory, response times, or server stability.
- All observed differences are within acceptable operational thresholds.
- It is safe to proceed with EUM deployment in production environments.
Web Application Integration#
This section provides step-by-step instructions for integrating HEAL EUM into your web application for advanced monitoring and tracing capabilities. Two injection methods are available; web server injection is recommended.
Option 1: Web Server Injection (Recommended)#
Injecting the HEAL EUM SDK JavaScript into your application via the web server is the recommended method, as it does not require manual modifications to web pages.
- Identify the web server where your application is hosted and locate its configuration path.
-
Copy the HEAL EUM SDK JavaScript files to the web server's target directory. Standard directories include:
- For HTTPD:
/var/www/html - For IHS:
/IBM/HTTPServer/htdocs
Note
Check the HTTPD configuration file for the exact web directory path.
- For HTTPD:
-
Configure the web server by adding the following to its configuration file, adjusting for your specific environment.
For RHEL and CentOS:
# Updated EUM-Conf for HEALEUM AddType application/x-javascript .js <Location /applicationURL> AddOutputFilterByType SUBSTITUTE text/html #SubstituteMaxLineLength 500M Substitute "s|</body>|<script src='/scripts/heal-eum-sdk.js'></script></body>|i" </Location>For Solaris:
# Updated EUM-Conf for HEALEUM AddType application/x-javascript .js <Location /applicationURL> SetOutputFilter SUBSTITUTE AddOutputFilter SUBSTITUTE text/html #SubstituteMaxLineLength 500M Substitute "s|</body>|<script src='/scripts/heal-eum-sdk.js'></script></body>|i" </Location> -
Update the configuration for your environment:
applicationURL— Replace with your application's URL path. Example: setting it to/myappapplies the configuration to any URL containing/myapp.- Update the script path in the
Substituterule to the location ofheal-eum-sdk.jsin your web directory.
Note
If you encounter the following error, uncomment the
SubstituteMaxLineLengthline and adjust the value as necessary:AH01328: Line too long, URI <uri>, referrer: <referrer uri> -
Update the
heal-eum-sdk.jsfile as described in the SDK Configuration Reference below.
Note
Depending on the OS, ensure modules such as mod_substitute, mod_filter, mod_proxy, and mod_sed are enabled on your web server.
Option 2: Direct Page Injection#
For direct web page modifications:
- Copy the HEAL EUM SDK JavaScript file to the directory containing your target web pages.
-
Inject the HEAL EUM SDK script into your web pages (e.g.,
.jsp,.html) right before the closing</body>tag:<script src='./heal-eum-sdk.js'></script> -
Update the
heal-eum-sdk.jsfile as described in the SDK Configuration Reference below.
SDK Configuration Reference (heal-eum-sdk.js)#
Whichever injection method you use, configure the following parameters in heal-eum-sdk.js:
| Parameter | Description |
|---|---|
heal_receiver_ip |
IP address where the HEAL EUM server is running, to which data will be sent. If redirected via the web server, use the web server IP. |
heal_receiver_port |
Port number where the HEAL EUM server is running. If redirected via the web server, use the web server port. |
enable_eum |
Set to true to enable end-user metric data collection, or false to disable. |
enable_tracing |
Set to true to enable transaction traces, or false to disable. |
is_https |
Set to true if the receiver endpoint is HTTPS, or false for HTTP. |
trace_config |
Required for enabling transaction tracing; see the keys below. |
absoluteBeaconURL |
Optional. Absolute URL where EUM metrics should be sent. |
beaconHandler |
Overrides the EUM metrics endpoint. Default is /boomerang_handler. |
absoluteTraceURL |
Optional. Absolute URL where traces should be sent. |
traceHandler |
Overrides the trace endpoint. Default is /v1/traces. |
beacon_type |
HTTP verb used to send EUM metrics. Default is AUTO; GET is recommended. |
custom_variables |
Map of custom values included with every EUM payload sent to the server. Can be left empty if not needed; see the keys below. |
trace_config keys:
| Key | Description |
|---|---|
application_name |
Application name to add as an attribute in the collected trace. |
SERVICE_NAME |
Service name to add as an attribute in the collected trace. |
stage |
Release stage, e.g. dev, prod. Defaults to prod if unspecified. |
ignore_urls |
Comma-separated URLs or URL patterns, in quotes, to exclude from trace collection. Example: ['\/v1\/traces'] |
propagate_urls |
Comma-separated URLs or URL patterns, in quotes, for which trace context from this service is propagated to all other distributed services. Example: ['http*'] |
custom_variables keys:
| Key | Description |
|---|---|
user_id |
Application user ID, used for EUM analytics. |
t_name |
Page name. |
a_name |
Application name to add as an attribute in EUM metric data. |
Redirecting Trace Requests through the Web Server#
To redirect trace requests from the client application to the OTEL Collector on the HEAL server via the web server, add the following redirection rules to the web server configuration (sample redirection rule from IHS):
Listen 443
<VirtualHost *:443>
ProxyPass /v1/traces http://<app-server-hostname>:<app-server-port>/v1/traces
ProxyPassReverse /v1/traces http://<app-server-hostname>:<app-server-port>/v1/traces
</VirtualHost>
Contact your web administrator for the equivalent configuration in other web components.