Skip to main content

Increase RAM allocation

In this article, we go through how you can increase RAM allocation in Mosaic.

Y
Written by Yusef Abulaynain
Updated over 5 months ago

The minimum RAM allocation should be at least 2048MB, you might also transfer a portion of the Max Heap to this server on top of the 2048MB and the 1024MB reserved for metaspace. This reflects the proportion of the load that is handled by the WebAPI. You'll need to monitor the exact proportion to make sure both servers run efficiently.

  1. Go to the Runtime tab.

  2. In the Browse By section, select Server Groups.

  3. Go to the Runtime tab.

  4. Next to the View button for main-server-group, open the menu.

  5. Click Copy from the dropdown.

  6. Give a Name to the new server group i.e. api-server-group and click Add.
    ​

Add server-api-one

You can add a server-api-one by creating a copy of server-one:

  1. Go to the Runtime tab.

  2. In the Browse By section, select Server Groups.

  3. Choose main-server-group.

  4. Find server-one and click Copy from the menu next to the View button.

  5. Give a Name to the new server i.e. server-api-one. Select master as Host and the server group created above api-server-group as Group.

    πŸ“Œ Note: The full-sockets is the Socket Binding Group for both server groups. Its details can be viewed from Configuration tab, Socket Bindings and full-sockets. The default http and https ports of this binding group are 8080 and 8443 respectively.

    Socket Binding Port Offset is the offset added to the default port number of the Socket Binding Group associated with the server group i.e. full-sockets. Having 300 as Socket Binding Port Offset will set the http and https of the server to 8380 and 8743 respectively.

  6. Click Add.

Disable Auto Start

1. Click the View button for server-api-one.
2. Select Configuration from the left panel.
3. Click Edit.
4. Set Auto Start to false.
5. Click Save.
​

πŸ“Œ Note: The system properties must not start with -D
Because System Properties of the source server are copied to the target server, the value of framework.log.dir and customContextRoot for server-api-one must be changed. Other values can remain the same unless advised elsewhere in this document.

Name

Value - Windows

Value - Linux

framework.log.dir

E:\mosaic\logs\server-api-one

/mosaic/logs/server-api-one

customContextRoot

mosaic_api

This will be the context root for the application for webAPIs. Suggested values are mosaic_api, moslive_api, mosdev_api etc.

server-api-one Windows System Properties

server-api-one Linux System Properties

Did this answer your question?