.
This trigger will check the actual size of the Java heap for the Mule process and compare it with the maximum allowed size. If the usage percentage is higher or lower (depending on the operator choose) the trigger with fire and the action executed. Note that this control the heap size, no the other memory spaces available, like metaspace, permgen or native memory.
IMPORTANT: Heap trigger requires the same user of mule process to work. Run support-watch with the same user that owns the Mule Runtime PID.
This trigger will fire when the CPU usage for the Mule Runtime process id (PID), is higher or lower (depending on the operator choose) than the parameter. The parameter is in usage percentage.
This trigger checks the current thread count of the Mule Runtime process id (PID). If it's higher or lower (depending on the operator choose) than the parameter, then it fires.
This trigger will fire when the number of sockets opened by the Mule Runtime process id (PID) is higher or lower (depending on the operator choose) than the parameter. It takes inbound and outbound sockets into consideration.
IMPORTANT: Connections trigger requires the same user of mule process to work. Run support-watch with the same user that owns the Mule Runtime PID.
This trigger fires every X seconds, where X is configured by parameters.
This trigger executes a script if it fails, then it fires. It's considered a failure when the script returns a non-zero value. In Windows/Linux, it would be "exit 1" for a BAT/SH scripts respectively; "exit 0" is considered a success.
support-watcher help
support-watcher help watch
support-watcher pids
For example, the next line will start a watching process over the Mule process ID 9999. If the CPU % is over 80%, or 5 minutes has passed, it will call the jstack command with the PID.
support-watcher watch -p 9999 -t "time=300" -t "cpu>80" -a "jstack <PID>"
Example of running "echo" every 5 seconds, 3 times.
IMPORTANT NOTE:
This command will access the java process directly. It required that the same user that is the owner of the process run this command.
- In Linux/Max you can use sudo to run the command as another user.
i.e., 'sudo -u <user_owner> support-watcher interactive'
- In Windows, you can use psexec tool provided by Microsoft.
i.e., psexec -s support-watcher interactive
support-watcher interactive
Example of running "echo" every 5 seconds, 3 times.
IMPORTANT NOTE:
This command will access the java process directly. It required that the same user that is the owner of the process run this command.
- In Linux/Max you can use sudo to run the command as another user.
i.e., 'sudo -u <user_owner> support-watcher interactive'
- In Windows, you can use psexec tool provided by Microsoft.
i.e., psexec -s support-watcher interactive
It's very simple to use the support-collector with this tool to gather information. Just use it with the download command in the action parameter.
For example, to gather the logs every 5 minutes, 3 times you can use the command as follows:
support-watcher watch -p 9999 -t "time=300" -o 3 -a "support-collector -p <PID> -o logs -w <WORKDIR>"
This will generate 3 compressed output files from support-collector in the current folder.
NOTE: you need the support-collector tool and support-watcher in your environment PATH to use like the example. Otherwise you'll need to explicit the fullpath to the executable. Remember that you can use "--test" argument to just run the action to check everything works as expected.
If you required to run an action that contains several steps, the best way to do it is with a dedicated script.
For example, for linux you can have the next script that will search a loaded class for the indicated process ID:
#!/bin/sh
PID=$1
echo "my process id is ${PID}"
jcmd ${PID GC.class_histogram | grep org.mule.module.launcher.MuleApplicationClassLoader
To call this action just use "sh script.sh <PID>" as the action.
Same concept applies to Windows and OSX
This tool contains a feature to ease the upgrade to the latest versions. This feature use a HTTPS Rest API request to check for new versions so it requires an internet connection.
If your system doesn't have internet access, the tool will work as usual, but you'll need to check for new versions in this article and upgrade it manually if required. The manual upgrade process is very simple, just replace the previous binary with the new one.
The command `update` will check for new version and upgrade when possible. If it's not possible to perform the automatic upgrade you'll be notified.
Also, each command check for new version at execution time letting you choose to upgrade or not.
001117000

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.