Skip to main content

Allocating Memory Between the Server and Player (Linux)

Situation​

  • Linux
  • Server and MQTT Player installed on the same system
  • isign-server-docker-compose and isign-player-mqtt-docker-compose packages

When both the iSign Server and iSign MQTT Player are installed on a Linux system, they both run in Docker. In the default configuration, both components are configured to use almost all available memory. If both components request more memory than the system has available, one of them may crash.

Solution​

When running multiple components, allocate memory manually. The simplest option is to limit the player's memory:

Edit the file:

sudo nano /etc/isign/player/isign.player.conf

Add the following line (for example, to set an 8 GB limit):

player_max_mem="8g"

Then restart the player:

sudo systemctl restart isign.player
info

The iSign Player needs substantial memory to render images, so it is designed to handle a limited amount of memory. Other components can also be limited, but keep in mind that running out of memory can cause them to crash.