Issue
- Liferay DXP is not reporting the correct number of cores.
- For example:
- A machine has 4 physical cores in the CPU. However Liferay DXP is reporting 8 cores on the <domain>/c/portal/license page.
- Alternatively we assigned a VM/Container 2 vCPUs, however Liferay DXP is reporting 4 cores on the <domain>/c/portal/license page.
- For example:
Environment
- Any environment running Liferay DXP where a physical CPU or vCPU can support multiple logical processes
Resolution
-
Each logical process provided by the physical CPU/vCPU is considered to be a single core by the methods used to count the number of cores.
-
The formula for calculating the number of Cores is the number of cores (physical CPU or vCPU) x the number of threads per core.
-
Examples:
The Intel® Xeon(R) CPU E3-1505M v6 cpu is a 4 core processor which supports a total of 8 threads (2 per core). When a Liferay DXP server is brought online a total of 8 cores are available to the server and will be reported to the server.
IBM Power9 architecture allows for 8 threads per physical CPU or vCPU. Thus there are 8 logical processes per machine core assigned to the environment. If an additional machine core is added then a total of 16 cores would be reported to Liferay DXP.
Additional Information
-
How do we determine the number of cores that are available to the Liferay DXP server without bringing the server online?
- Native commands or applications within operating systems can provide this information
- In Linux the lscpu or nproc commands can be used
- In Windows the Task Manager displays this information
- Native commands or applications within operating systems can provide this information
-
How are the numbers of processors calculated?
- License Manager in DXP 7.1 is using Sigar, a 3rd party library, to count the processor cores allocated to the Liferay instance.
- License Manager in 7.2 and above is using native Java to count the processor cores allocated to the Liferay instance. This is more accurate in virtualized environments.
-
We increased the number of cores that are available to Liferay DXP and now our licenses no longer validate, what do we do?
- Liferay’s pricing for Liferay DXP Subscriptions is based on the Sizing of the applicable Instance. Activation keys are limited to the purchased Subscription’s Sizing.
- If the increase in the number of available cores is intentional please reach out to your Liferay account representative for assistance with increasing the Instance Sizes that are available for your account.
- If the increase in number of available cores was unintended and is not needed then review the Operating System or Virtualization method being used to determine how to reduce the number of available cores.
- Lastly please feel free to open an Activation Key & Project Administration ticket within the Help Center if there are any questions that Liferay Support can assist with regarding this information.