menu

Reducing Memory Consumption

By default the main Exply process consumes 1 GB of memory. This is usually a fair trade–off between performance and resource footprint.

If you want to change it you might experience poor performance or out of memory errors. However you can give it a try by editing the exply-server.conf and the exply-server.service. You will find commented placeholders to adjust the memory consumption.

We recommend the minimal and maximal head size to be equal and not more than 50 % of the available memory. NewSize should be 1/3 of the heap size. Be sure to keep the settings in the two files in sync.

exply-server.conf

This file resides in /etc/init with the follow default content.

description "Exply on Premise main server"
start on filesystem or runlevel [2345]
stop on runlevel [!2345]

respawn
umask 022
#nice
#chroot /
chdir /var/exply/app/
#limit core <softlimit> <hardlimit>
#limit cpu <softlimit> <hardlimit>
#limit data <softlimit> <hardlimit>
#limit fsize <softlimit> <hardlimit>
#limit memlock <softlimit> <hardlimit>
#limit msgqueue <softlimit> <hardlimit>
#limit nice <softlimit> <hardlimit>
#limit nofile <softlimit> <hardlimit>
#limit nproc <softlimit> <hardlimit>
#limit rss <softlimit> <hardlimit>
#limit rtprio <softlimit> <hardlimit>
#limit sigpending <softlimit> <hardlimit>
#limit stack <softlimit> <hardlimit>
setuid exply
setgid exply
console log # log stdout/stderr to /var/log/upstart/

env EXPLY_DATA_DIR=/var/exply/Data
# env JAVA_OPTS="-Xms1024M -Xmx1024M -XX:NewSize=341M -XX:MaxNewSize=341M"

exec /var/exply/app/bin/server 

exply-server.service

This file resides in /lib/systemd/system with the follow default content.

[Unit]
Description=Exply on Premise main server

[Service]
Type=simple
User=exply
Group=exply
Restart=always

Environment="EXPLY_DATA_DIR=/var/exply/Data"
# Environment="EXPLY_DATA_DIR=/var/exply/Data" 'JAVA_OPTS=-Xms512m -Xmx512m -XX:NewSize=170m -XX:MaxNewSize=170m'

WorkingDirectory=/var/exply/app/
ExecStart=/var/exply/app/bin/server

[Install]
WantedBy=multi-user.target
Depending on your operating system you can adjust the memory allocation in a similar way:

Just make sure Exply starts with the correct JAVA_OPTS.