Using large pages in Linux
Using large pages allows the JVM and the operating system to manage memory more efficiently, having to page memory in and out less frequently.
Getting ready
You need to have Oracle SOA Suite 11g installed on a Linux server for this recipe, and to have enabled HugePages in the operating system. This recipe assumes that you are starting WebLogic using the startWebLogic
or startManagedWebLogic
scripts, and if you are using the node manager or some other mechanism, simply apply the startup parameter to the relevant place. You will need the file system permissions to edit the WebLogic start script for this recipe.
This recipe assumes you are using the Sun (HotSpot) JVM, and if you are using JRockit, the parameter is different (for more information on this, see the There's more... section at the end of this recipe).
How to do it…
To use large pages in Linux, perform the following steps:
Check if
HugePages
support is enabled in the kernel:cat /proc/meminfo | grep Huge
You are...