Allocating resources for the Portal

Allocating resources for the Portal

Adapt the configuration of the Portal to your available hardware resources in order to maximize their utilization and optimize performance. To that end, edit the configuration file startup.properties in the Portal and set the appropriate running mode and memory options depending on your hardware resources and size of your installation.

Find the suitable running mode and memory settings for your installation size in the table below. The Total memory size corresponds to the actual memory installed, according to the specified minimum hardware requirements for the Portal appliance. If you are using a single appliance for both the Engine and the Portal, divide the memory installed by two (hardware requirements for a single appliance) to get an estimation of the Total memory for the Portal:

Max devices Total Memory Configuration
500 6 GB
MODE=SMALL
SMALL_MEMORY=4G
5k 8 GB
MODE=SMALL
SMALL_MEMORY=6G
10k 8 GB
MODE=SMALL
SMALL_MEMORY=6G
20k 12 GB
MODE=MEDIUM
MEDIUM_UI_MEMORY=8G
MEDIUM_INFRA_MEMORY=2G
50k 18 GB
MODE=MEDIUM
MEDIUM_UI_MEMORY=14G
MEDIUM_INFRA_MEMORY=2G
100k 36 GB
MODE=MEDIUM
MEDIUM_UI_MEMORY=31G
MEDIUM_INFRA_MEMORY=3G
150k 54 GB
MODE=MEDIUM
MEDIUM_UI_MEMORY=46G
MEDIUM_INFRA_MEMORY=4G
>150k Ask
Ask

To edit the configuration file of the Portal and set the values that fit your hardware:

  1. Log in to the CLI of the Portal appliance.
  2. Stop the Portal:
    sudo systemctl stop nxportal
  3. Make a copy of the sample configuration file to use it as the current configuration file:
    sudo cp /var/nexthink/portal/conf/startup.properties.sample \
    /var/nexthink/portal/conf/startup.properties
  4. Edit the configuration file with the appropriate values from the table above:
    sudo vi /var/nexthink/portal/conf/startup.properties
  5. Restart the Portal:
    sudo systemctl start nxportal

For example, in an installation with 45 000 devices, look up in the table above and find that, for a maximum of 50k devices, you must set the running mode of the Portal to MEDIUM, and allocate 12 GB of memory for the user interface, in addition to 2 GB more for the infrastructure.

In that case, change the values of those parameters in the startup.properties configuration file of the Portal. The file should look like this:

# allowed modes are SMALL and MEDIUM
MODE=MEDIUM

SMALL_MEMORY=2G

MEDIUM_UI_MEMORY=12G
MEDIUM_INFRA_MEMORY=2G


For large installations, please contact Nexthink for instructions on how to properly allocate resources for the Portal. You may also need to increase the number of connections to the Portal database.