Page 1 of 1

Performances (memory settings)

PostPosted: Wed Sep 10, 2014 8:40 am
by phm
Hi,

I would like to correctly adjust the performances on a dedicated OMERO server on Centos 6.5 with 32 Go. I read the documentation (http://www.openmicroscopy.org/site/supp ... mance.html). However, some points are not clear for me. The default configuration givet 3 blitz process :
Domero.name=Blitz-0 -Xmx5042m, XX:MaxPermSize=1g
Domero.name=Indexer-0 -Xmx3361m, -XX:MaxPermSize=1g
Domero.name=PixelData-0 -Xmx5042m, -XX:MaxPermSize=1g

Should I allocate the total memory to the server :
bin/omero config set omero.jvmcfg.system_memory 32000

And set the maximum system memory seen by an OMERO to 32 Go
bin/omero config set omero.jvmcfg.max_system_memory 32000

Or I should reserve some space for the system.

Thanks

Philippe

Re: Performances (memory settings)

PostPosted: Thu Sep 11, 2014 7:24 am
by jmoore
If you physically have 32GB of memory on the system, you will definitely need to keep some in reserve for other processes. Setting `system_memory` will result in:
Code: Select all
$ bin/omero config set omero.jvmcfg.system_memory 32000
$ bin/omero admin jvmcfg
JVM Settings:
============
blitz=-Xmx4800m -XX:MaxPermSize=1g # Settings({'system_memory': '32000'})
indexer=-Xmx3200m -XX:MaxPermSize=1g # Settings({'system_memory': '32000'})
pixeldata=-Xmx4800m -XX:MaxPermSize=1g # Settings({'system_memory': '32000'})
repository=-Xmx3200m -XX:MaxPermSize=1g # Settings({'system_memory': '32000'})


You can then use the "percent" values to bump the components:
Code: Select all
$ bin/omero config set omero.jvmcfg.percent.blitz 20
$ bin/omero admin jvmcfg
JVM Settings:
============
blitz=-Xmx6400m -XX:MaxPermSize=1g # Settings({'system_memory': '32000', 'percent': '20'})
indexer=-Xmx3200m -XX:MaxPermSize=1g # Settings({'system_memory': '32000'})
pixeldata=-Xmx4800m -XX:MaxPermSize=1g # Settings({'system_memory': '32000'})
repository=-Xmx3200m -XX:MaxPermSize=1g # Settings({'system_memory': '32000'})

Alternatively, you can simply set the heap as you see fit:
Code: Select all
$ bin/omero config set omero.jvmcfg.percent.blitz  # unset
$ bin/omero config set omero.jvmcfg.system_memory   # unset
$ bin/omero config set omero.jvmcfg.heap_size.blitz 10000
$ bin/omero admin jvmcfg
JVM Settings:
============
blitz=-Xmx10000m -XX:MaxPermSize=1g # Settings({'heap_size': '10000'})
indexer=-Xmx2523m -XX:MaxPermSize=1g
pixeldata=-Xmx3784m -XX:MaxPermSize=1g
repository=-Xmx2523m -XX:MaxPermSize=1g

Once you're happy with the results, you'll need to restart the server.

Cheers,
~Josh