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.
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
| Check | How | Why it matters |
|---|---|---|
| webMethods version | IS Admin > About | Support 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 launched | USE_WRAPPER in the instance’s bin/custom_setenv.sh / setenv.sh | Decides which config file takes the JVM options (step 2) — not Classic vs MSR alone |
| Java version | Run the binary in wrapper.java.command with -version | Java 8 must not get --add-opens; Java 9+ needs it |
| Agent version | Use 2.2.68 or later | webMethods weaving was added in 2.2.68 |
| Target project | The license key and collector host of the correct WhaTap project | A wrong license sends the data to a different pcode |
| Collector reachability | nc -vz <collector-host> 6600 from the IS host | 6600 is the agent port |
| Access | Root/admin on the IS host and a restart window | Attaching 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:
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.monitorweaving=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 does | Where the agent options go |
|---|---|---|
yes | Runs the wrapper script (STARTUP_MODE=service); Tanuki reads its own config and never looks at $JAVA_OPTS | wrapper.java.additional.N= in configuration/custom_wrapper.conf |
| anything else | Builds java $JAVA_OPTS … -Xbootclasspath/a:… itself and execs it | JAVA_CUSTOM_OPTS / JAVA_OPTS in bin/setenv.sh |
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:
# 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-UNNAMEDNon-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-11variant 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:textwrapper.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=TRUEmakes it re-readcustom_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/aargument. 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 insetenv.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:
- 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. - 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.
- 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
| Path | Purpose |
|---|---|
/opt/whatap/ (your choice) | Agent home: the agent jar, whatap.conf, logs/whatap.log |
<SoftwareAG_dir>/profiles/IS_<instance>/configuration/custom_wrapper.conf | Classic IS — where the wrapper options live |
<instance_dir>/configuration/custom_wrapper.conf | MSR in wrapper mode (the default) — same wrapper options |
<IS_dir>/bin/setenv.sh | Non-wrapper mode only — JAVA_CUSTOM_OPTS carries the same options |
<agent>/logs/whatap.log | Where 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
Restart IS, then watch the agent log:
bashtail -f /opt/whatap/logs/whatap.logYou want the connection line, with your pcode:
textThe WhaTap Connection is open: <collector-host>:6600 pcode=<pcode>A healthy agent is quiet. If
CountCollector.warningorRead timed outlines 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.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-10on 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_WRAPPERdecides the file, not the IS type. A wrapper-launched MSR ignoresJAVA_OPTS; put the agent incustom_wrapper.confat 400+.- The Java version decides the option set: Java 8 takes the
-javaagentand the agent name only; Java 9+ also needs--add-opens. - Name the agent explicitly.
-Dwhatap.onameper 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 inwhatap.log, andcom.wm.*classes in Loaded Classes.licenseitself 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.