The table below contains typical parameters of memory close to 0.x vCore workers:
| 0.1 vCore, MiB | 0.2 vCore, MiB | |
|---|---|---|
| HEAP | 480 | 960 |
| Metaspace | Default, 128 | Default, 128 |
| Direct Memory | 32 | 128 |
| Code Cache | 64 | Default, 240 |
1. Open the application run configuration:
2. Open Arguments -> VM Arguments tab (1):
3. Add VM arguments (2) similar to:
-Xms480m -Xmx480m -XX:ReservedCodeCacheSize=64m -XX:MaxDirectMemorySize=32m
-Xms960m -Xmx960m -XX:MaxDirectMemorySize=128m
4. Click "Apply" and "Run" (3). The application will be deployed with memory allocations close to a certain app worker size
5. Conduct an impact assessment exercise by, for example, load testing or by feeding the app the payload of the maximum size possible.
6. Verify the console for any errors. If needed increase the memory further.
7. Use any visual tool like JConsole or VisualVM for a better troubleshooting experience.
As a result, the application will be better prepared for running in CloudHub on a fractional vCore worker leading to less downtime in the future.
Disclaimer: This solution provides a suggestion that should be considered in conjunction with your specific use case and requirements and does not represent a complete solution for all circumstances.
Application Deployed to a Fractional vCore Worker in CloudHub Throws "java.lang.OutOfMemoryError: Direct buffer memory"
How to monitor JVM native memory usage by enabling native memory tracking
How to Detect When Linux Kills Mule Runtime Process Due to Native Memory OOMKiller Error
Advanced Troubleshooting of Mule 4 Application Performance
CloudHub Worker Sizes
001116739

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.