Wiki Markup |
---|
{scrollbar} |
Anchor | ||||
---|---|---|---|---|
|
5. Troubleshooting, Debugging and Profiling
Troubleshooting
If you end up with a ServiceMix kernel in a really bad state (i.e. you can not boot it anymore) or you just want to revert to a clean state quickly, you can safely remove the data
directory just in the installation directory. This folder contains transient data and will be recreated if you remove it and relaunch the Kernel.
You may also want to remove the files in the deploy
folder to avoid them being automatically installed when the Kernel is started the first time.
Debugging
Usually, the easiest way to debug ServiceMix Kernel or any application deployed onto it is to use remote debugging.
Remote debugging can be easily activated by setting the SERVICEMIX_DEBUG
environment variable to TRUE
.
...
Last, inside your IDE, connect to the remote application (the default port to connect to is 5005).
Profiling
YourKit
You need a few steps to be able to profile ServiceMix Runtime using YourKit.
The first one is to edit the etc/config.properties
configuration file and add the following property:
...