Skip to content

JIM Removal and EUM Web-Server Cleanup

Remove JIM and Monitor-JVM instrumentation and clean EUM injection from web servers.

3 min read Updated SS

Spring Boot / Standalone Java#

# Find the PID
ps -ef | grep <your_app_jar>
kill <PID>

Remove Monitor-JVM Shared Library#

Monitor-JVM uses a shared library (libhealagent.so) that is preloaded into all JVM processes via /etc/ld.so.preload.

# 1. Check and remove the preload entry
cat /etc/ld.so.preload
# Look for a line containing: /$LIB/libhealagent.so
# Remove just the libhealagent line, or if it's the only entry:
> /etc/ld.so.preload

# 2. Remove the shared library symlinks
rm -f /lib64/libhealagent.so
rm -f /lib/libhealagent.so

# 3. Remove the heal.conf symlink
rm -f /etc/heal.conf

# 4. Refresh the shared library cache
ldconfig

Tip

If /etc/ld.so.preload contains entries for other applications (not just HEAL), edit the file and remove only the libhealagent.so line instead of clearing the entire file.

Remove Monitor-JVM Directory#

rm -rf <AGENT_HOME>/monitor-jvm/

Restart the Application (Without JIM Arguments)#

After removing the shared library and symlinks, restart the application using your normal startup procedure. It should start without the JIM/JMX arguments.

After the application starts, verify that the following arguments are NOT present in the process:

ps -ef | grep <your_application_process>

These arguments should NO longer appear:

  • -javaagent:<AGENT_HOME>/JIMAgent/heal-jim-opentelemetry-javaagent.jar
  • -Dcom.sun.management.jmxremote.port=<PORT>
  • -Dotel.javaagent.configuration-file=<AGENT_HOME>/JIMAgent/config/...agent-cache.properties

If JIM arguments still appear after restarting, verify the removal was complete:

# Ensure /etc/ld.so.preload is empty or does not contain libhealagent
cat /etc/ld.so.preload

# Ensure /etc/heal.conf is removed
ls -la /etc/heal.conf

# Ensure no symlinks remain
ls -la /lib64/libhealagent* 2>/dev/null
ls -la /lib/libhealagent* 2>/dev/null

Remove JIM Agent Data#

# Remove JIM Agent directory (if not already removed during JIM Agent uninstallation)
rm -rf <AGENT_HOME>/JIMAgent/

JIM Removal Checklist#

Item Path / Action Done
/etc/ld.so.preload Remove libhealagent.so entry [ ]
/lib64/libhealagent.so Remove symlink [ ]
/lib/libhealagent.so Remove symlink (if exists) [ ]
/etc/heal.conf Remove symlink [ ]
ldconfig Refresh shared library cache [ ]
Monitor-JVM directory Remove <AGENT_HOME>/monitor-jvm/ [ ]
JIM Agent directory Remove <AGENT_HOME>/JIMAgent/ [ ]
Application restart Verify no JIM/JMX args in ps output [ ]

EUM Prerequisites & Arguments Removal#

EUM (End User Monitoring / DEM) involves components across multiple servers:

  • Target server: Web server configuration, EUM SDK JavaScript, LogScan agent, Filebeat/Rsyslog
  • HEAL server: OpenSearch pipelines, Logstash, OTEL Collector config, Grafana dashboards

This section covers the complete removal of all EUM-related components.

Target Server — Web Server Cleanup#

The EUM SDK is integrated into your web application via the web server. The cleanup steps depend on the type of web server in your environment.

Identify What Was Configured#

During EUM setup, the following changes were made to your web server:

  1. EUM SDK injection — A <script> tag referencing healeum.min.js was injected into HTML responses (either via web server module or directly in application pages).
  2. Trace redirection — A reverse proxy rule was added to forward /v1/traces requests to the OTEL Collector.
  3. Access log format — A custom access log format was configured to capture EUM-specific data.
  4. EUM SDK file — The healeum.min.js file was placed on the web server or application server.

Apache HTTPD#

# If EUM was configured via a separate conf file:
rm -f /etc/httpd/conf.d/heal-eum.conf

# If EUM directives were added to httpd.conf, edit and remove:
#   - The <Location> block with Substitute directive (SDK injection)
#   - The ProxyPass/ProxyPassReverse for /v1/traces
#   - The LogFormat and CustomLog for EUM access logs
#   - The Alias /scripts directive (if added for EUM)
vi /etc/httpd/conf/httpd.conf

# Remove the EUM SDK file
rm -f <WebServer_DocRoot>/scripts/healeum.min.js
# Example: rm -f /var/www/html/scripts/healeum.min.js

# Remove EUM access log
rm -f /var/log/httpd/eum_access_log

# Restart HTTPD
systemctl restart httpd

If HTTPD was installed solely for EUM and is no longer needed:

systemctl stop httpd && systemctl disable httpd
yum remove httpd   # or: dnf remove httpd

IBM HTTP Server (IHS)#

# Edit the IHS configuration and remove:
#   - The SetOutputFilter/AddOutputFilter SUBSTITUTE directives
#   - The Substitute rule for healeum.min.js injection
#   - The <VirtualHost> block for /v1/traces proxy
#   - The custom LogFormat for EUM
vi <IHS_HOME>/conf/httpd.conf

# Remove the EUM SDK file
rm -f <IHS_HOME>/htdocs/scripts/healeum.min.js

# Restart IHS
<IHS_HOME>/bin/apachectl restart