Logo Help Center

Elvis 4 Server memory configuration

Elvis 4 Server memory configuration

For optimal performance, we advise to set about 70% of the machine's total with a minimum of 1GB.

Note: In most cases it's best to set the initial amount (-Xms) to the same value as the maximum amount of Java heap memory.

About -Xmx

The -Xmx option controls just the Java 'heap' memory block. The actual Java process may use more memory because it also has blocks of non-heap and native memory. It is advisable to leave sufficient memory available for the OS. Most modern operating systems will use any remaining memory to speed up the disk cache. This can hugely improve performance of the search engine.

Changing the memory settings

The following samples show how to modify the memory settings on all platforms. The samples assume a machine with 16 GB RAM installed, resulting in about 8 GB assigned to Elvis.

Note: For platforms with a higher or lower amount of memory, adjust the memory values according to the recommendations outlined above.

For information about how much memory you should use for your Elvis server, see Hardware recommendations.

Windows Elvis server

  • Open the Jetty config in Notepad or another text editor

<Program Files>\Elvis Server\elvis-service\elvis-service.conf

  • Change the following lines and save the changes

wrapper.java.initmemory=10240

wrapper.java.maxmemory=10240

  • Restart the server

Mac OS X Elvis server

  • Open the Terminal and type the following

$ sudo nano /Library/LaunchDaemons/com.dutchsoftware.elvis.server.launchd.plist

  • Change the Xmx and Xms settings

<string>-Xms10g</string>

<string>-Xmx10g</string>

  • Save the changes and exit by typing CTRL-X followed by Y.
  • Restart the server.

Mac OS X Elvis processing server

  • Open the Terminal and type the following

$ sudo nano /Library/LaunchDaemons/com.dutchsoftware.elvis.processing-server.launchd.plist

  • Change the Xmx and Xms settings (like in the regular server)

<string>-Xms10g</string>

<string>-Xmx10g</string>

  • Save the changes and exit by typing CTRL-X followed by Y.
  • Restart the server.

Linux Elvis server

  • Type the following in the command line:

$ sudo nano /srv/elvis-server/app/wrapper/conf/wrapper.conf

  • Comment out:

wrapper.java.initmemory=1024

wrapper.java.maxmemory=6144

  • At the end of the file, change wrapper.java.additonal.{1,2}. I.e.:

wrapper.java.additional.1 = -Xms10g

wrapper.java.additional.2 = -Xmx10g

  • Save the changes and exit by typing CTRL-X followed by Y.
  • Restart the server.
Was this article helpful?
0 out of 0 found this helpful / Created: / Updated:
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.