Chapter 16. Tuning Mule
In this chapter
- Mule’s threading model
- Configuring threading profiles
- Profiling and performance tuning
Whether you have predetermined performance goals and want to be sure to reach them, or you’ve experienced issues with your existing configuration and want to solve them, the question of tuning Mule will occur to you sooner or later in the lifetime of your projects. Like any application, Mule is constrained by the limits of memory size and CPU performance. Tuning Mule is about finding the sweet spot where your business needs meet the reality of software and hardware constraints.
The same way a race car needs tuning to adapt to the altitude of the track or to the weather it will race in, Mule can require configuration changes to deliver its best performance in the particular context of your project. Up to this point of the book, we’ve relied on the default configuration of Mule’s internal thread pools and haven’t questioned the performance of the different moving parts, whether they’re standard or custom. We’ll now tackle these tough questions.