Troubleshooting · October 2026

Attach the WhaTap Java agent to a webMethods Integration Server

Step-by-step setup for webMethods monitoring with the WhaTap Java agent (2.2.68+): where the JVM options go (custom_wrapper.conf or setenv.sh, decided by USE_WRAPPER), weaving=webmethods-10, field notes from webMethods 11 Microservices Runtime, the Java 8 vs 9+ split, and how to verify the session in whatap.log.

Published Updated 9 min readPublished

What this gets you

WhaTap monitoring for a webMethods Integration Server — the middleware tier, not just the Java apps behind it. The WhaTap Java agent is attached inside the IS JVM and put in webMethods weaving mode, so IS transactions and the server’s own com.wm.* classes show up in the WhaTap console alongside the rest of the estate.

There is no separate collector and no separate service to run: this is an agent configuration change plus an Integration Server restart.

Before you start

CheckHowWhy it matters
webMethods versionIS Admin > AboutSupport is stated for 10.15. 11.1 (MSR) has been run in the field with the same settings — see webMethods 11. On any other version, confirm with WhaTap before you start
How the JVM is launchedUSE_WRAPPER in the instance’s bin/custom_setenv.sh / setenv.shDecides which config file takes the JVM options (step 2) — not Classic vs MSR alone
Java versionRun the binary in wrapper.java.command with -versionJava 8 must not get --add-opens; Java 9+ needs it
Agent versionUse 2.2.68 or laterwebMethods weaving was added in 2.2.68
Target projectThe license key and collector host of the correct WhaTap projectA wrong license sends the data to a different pcode
Collector reachabilitync -vz <collector-host> 6600 from the IS host6600 is the agent port
AccessRoot/admin on the IS host and a restart windowAttaching the agent requires an IS restart

You also need the WhaTap Java agent package — ask WhaTap for your distribution if you do not already have it.

1. Prepare the agent

Extract the agent somewhere sane (the examples use /opt/whatap/) and edit whatap.conf in the agent folder:

text
license=<project license key>
whatap.server.host=<collector host>
weaving=webmethods-10
# optional — defaults, as documented in the release notes:
# trace_webmethods_url_ignore_prefixes=wm.server
# trace_webmethods_service_ignore_prefixes=wm.server,wm.monitor

weaving=webmethods-10 is the switch that turns on webMethods awareness — without it you get plain Java APM telemetry from the IS JVM. The trace_webmethods_enabled and trace_webmethods_service_enabled switches already default to true, so weaving is the only key you have to add.

2. Attach the agent to the Integration Server

First, find out who builds the java command. It is tempting to read this as “Classic IS → wrapper file, MSR → setenv.sh”. It is not that simple: a Microservices Runtime instance is very often launched by the Tanuki wrapper too, and then anything you put in JAVA_OPTS / JAVA_CUSTOM_OPTS is silently ignored.

USE_WRAPPER (default yes)What startup.sh doesWhere the agent options go
yesRuns the wrapper script (STARTUP_MODE=service); Tanuki reads its own config and never looks at $JAVA_OPTSwrapper.java.additional.N= in configuration/custom_wrapper.conf
anything elseBuilds java $JAVA_OPTS … -Xbootclasspath/a:… itself and execs itJAVA_CUSTOM_OPTS / JAVA_OPTS in bin/setenv.sh
bash
grep -n "USE_WRAPPER\|STARTUP_MODE" <instance_dir>/bin/*setenv.sh
ls <instance_dir>/configuration/*wrapper*

Wrapper mode (Classic IS, and most MSR installs) — edit custom_wrapper.conf (back it up first): <SoftwareAG_dir>/profiles/IS_<instance>/configuration/ on Classic IS, <instance_dir>/configuration/ on an MSR instance. Leave the installer-managed wrapper.conf alone. Use option numbers that are not already in use — the file’s own header asks for 400 or higher for custom properties, and the 300–310 range must be avoided:

text
# Java 8
wrapper.java.additional.601=-javaagent:/opt/whatap/whatap.agent-<version>.jar
wrapper.java.additional.602=-Dwhatap.oname=<IS-instance-name>

# Java 11 / 17 — the two above plus:
wrapper.java.additional.603=--add-opens=java.base/java.lang=ALL-UNNAMED
# heap histogram only:
wrapper.java.additional.604=-Djdk.attach.allowAttachSelf=true
wrapper.java.additional.605=--add-opens=jdk.attach/sun.tools.attach=ALL-UNNAMED

Non-wrapper mode — the same options go into JAVA_CUSTOM_OPTS in <IS_dir>/bin/setenv.sh. The script runs the command unquoted (exec $START_CMD), so keep the agent path and every -D value free of spaces and quotes.

Give the agent a fixed name. -Dwhatap.oname overrides -Dwhatap.name, and each IS instance on a host needs its own value (each has its own custom_wrapper.conf). Without a fixed name the generated default includes the port or PID, so every restart registers a new agent and your history fragments. Setting auto_oname_enabled=true in whatap.conf turns both name mechanisms off.

webMethods 11 (Microservices Runtime): field notes

The plugin is still documented for 10.15, but it has been run on a webMethods 11.1 Microservices Runtime instance (wrapper script sagis111) with no change to the agent settings:

  • weaving=webmethods-10 — same value, no -11 variant needed.

  • The instance ran in wrapper mode (USE_WRAPPER=yes, STARTUP_MODE=service, the defaults), so the agent went into <instance_dir>/configuration/custom_wrapper.conf:

    text
    wrapper.java.additional.400=-javaagent:/opt/whatap/whatap.agent-<version>.jar
    wrapper.java.additional.401=-Dwhatap.oname=<MSR-instance-name>
  • Restart through the instance’s wrapper script (<instance_dir>/bin/sagis111 restart); wrapper.restart.reload_configuration=TRUE makes it re-read custom_wrapper.conf.

  • Result: the agent connected and the webMethods transactions — for example a portal login — appear in WhaTap as webMethods transactions. Outbound integration services calling external systems have not been verified yet, so check those yourself before relying on them, and confirm 11.x with WhaTap for production.

Two things to know about the wrapper on this platform:

  • Some vendors document that their agent must come before any -Xbootclasspath/a argument. Index 400 (after the vendor’s own entries) worked for the WhaTap agent; only renumber below the bootclasspath entry if the agent does not load.
  • In wrapper mode the heap comes from custom_wrapper.conf (wrapper.java.initmemory / maxmemory), not from the memory variables in setenv.sh. Size it with the agent in mind.

Unrelated to the agent but worth a look while you are in those files: an instance template may ship custom_wrapper.conf with remote JMX enabled without SSL or authentication — firewall that port. And a custom_setenv.sh with a literal INSTALL_AREA={{INSTALL_AREA}} line is an unrendered template that overrides the real path and sends startup logs to the wrong place.

The surprising-but-correct behaviours

Three things here read like failures and are not:

  1. A Java 8 server must not get --add-opens. It is a Java 9+ option; adding it to a Java 8 wrapper configuration gives you an IS that will not launch. The Java-version check in the table above is what prevents this — do it before you edit anything.
  2. The wrapper gives up after 5 failed launches. A bad JVM option does not produce a slow retry loop; the IS wrapper aborts after five attempts. Check the wrapper log for the option error, fix it, and start IS manually. An IS that “suddenly will not start” right after this change is almost always this.
  3. A wrong license is silent at the agent level. The agent connects happily and streams to whatever pcode the license belongs to — no error, data just lands in the wrong project. That is why the pre-check asks for the license key and collector host of the intended project together.

What gets installed

PathPurpose
/opt/whatap/ (your choice)Agent home: the agent jar, whatap.conf, logs/whatap.log
<SoftwareAG_dir>/profiles/IS_<instance>/configuration/custom_wrapper.confClassic IS — where the wrapper options live
<instance_dir>/configuration/custom_wrapper.confMSR in wrapper mode (the default) — same wrapper options
<IS_dir>/bin/setenv.shNon-wrapper mode only — JAVA_CUSTOM_OPTS carries the same options
<agent>/logs/whatap.logWhere the agent says whether it connected, and to which pcode

There is no service account to create and no daemon to register. The agent runs as a -javaagent inside the Integration Server process, so it runs as whatever user runs IS. That also means: no agent without a restart, and the agent’s lifetime is the IS process’s lifetime.

Verify

  1. Restart IS, then watch the agent log:

    bash
    tail -f /opt/whatap/logs/whatap.log

    You want the connection line, with your pcode:

    text
    The WhaTap Connection is open: <collector-host>:6600 pcode=<pcode>
  2. A healthy agent is quiet. If CountCollector.warning or Read timed out lines repeat about every 30 seconds, the agent is fine on the IS side and the problem is on the collection side — check the collector rather than re-editing the wrapper.

  3. In the WhaTap console, confirm hitmap transactions are arriving and that Instance Performance > Loaded Classes lists com.wm.* classes. Those classes are the proof that webMethods weaving — not plain Java APM — is active.

Gotchas

Data is landing in the wrong project → the license. Change license (and whatap.server.host if needed) in whatap.conf. The agent re-reads that file every 5 seconds and picks up a corrected license on reconnect — no IS restart needed. Note you cannot fix license from the console’s Agent CONF screen; it is a file-side setting.

Transaction names are empty → a naming/format question, not a broken attach. Expected format is restv2/<folder>:<service>/<path>. If names come through empty while the Original URL is empty too, raise it with WhaTap support and include the request URL, one unnamed and one named trace (TXT export), and your whatap.conf — it is diagnosable, but not from the console alone.

You cannot find your service class in Loaded Classes → the filter is a plain substring match. No wildcards. Java services compile to a class named after their folder (e.g. pub.pollingNotificationUtils), so search by folder prefix, not by service name. And flow services have no class at all — nothing will ever match them there.

You want a hook on a class without downtime → Redefine. hook_service_patterns accepts Class.*, and you apply it with Redefine in Loaded Classes; no restart required.

Everything looks connected but the console is still thin → check both halves. The agent log proves the JVM side. The console needs the console-side project and the actual traffic: a correctly attached agent on an idle IS shows a connection and very little else until transactions flow.

Takeaways

  • webMethods monitoring is agent configuration, not an install: weaving=webmethods-10 on the Java agent attached to the IS JVM. Support is stated for webMethods 10.15 with agent 2.2.68+; the same setting traces inbound transactions on webMethods 11.1 MSR in the field.
  • USE_WRAPPER decides the file, not the IS type. A wrapper-launched MSR ignores JAVA_OPTS; put the agent in custom_wrapper.conf at 400+.
  • The Java version decides the option set: Java 8 takes the -javaagent and the agent name only; Java 9+ also needs --add-opens.
  • Name the agent explicitly. -Dwhatap.oname per IS instance, or every restart creates a new agent because the default name carries the port or PID.
  • Verify in two places: the WhaTap Connection is open … pcode= line in whatap.log, and com.wm.* classes in Loaded Classes. license itself is hot-reloadable; the wrapper options are not.

Derived from internal field work; client-identifying details and environment-specific values have been generalised. File paths, option numbers, configuration keys and supported versions are as shipped.

  • guide
  • installation
  • rum
  • real-user-monitoring
  • browser-monitoring
  • mobile-monitoring
  • systemd
  • linux
  • whatap

Minimal setup for WhaTap Edge Server (RUM on-premise: rumagent + rumctl)

Enable WhaTap Real User Monitoring — browser and mobile — on an on-premise Collection server with two modules: download the all-in-one package, drop rumagent and rumctl under /data, write their config.yaml files, register both with systemd. Ports, config keys and the traps included.

· 5 min read

  • guide
  • installation
  • whatap-ai
  • systemd
  • linux
  • llm
  • openai

Minimal setup for WhaTap AI on an on-premise Collection server

Install the argus service that runs WhaTap AI inside your own network: unpack, run the installer twice, fill in two config files, verify the health endpoint. Includes the config traps that cost the most time.

· 7 min read

  • debugging
  • csp
  • content-security-policy
  • rum
  • browser-monitoring
  • session-replay
  • nginx
  • web-worker
  • whatap

Session replay missing from WhaTap browser monitoring? Check worker-src in your CSP

A Content Security Policy with no worker-src falls back to script-src, which blocks the WhaTap browser agent's blob: Web Workers. Page-load beacons keep returning 200 while session replay silently never sends. One directive fixes it, verified end to end in a lab.

· 7 min read

Keep reading the field notes

Every note starts as a real escalation: the symptom, the metric that proved it, and the fix that shipped.

Browse all guides