MediaHub
High Memory Usage on MediaHub Server
Problem
MediaHub Server may show high memory usage on the machine running the search engine.
Cause
From version 3.5 onwards, MediaHub uses Meilisearch for search instead of Elasticsearch. Meilisearch is bundled with MediaHub, installed and upgraded by the MediaHub installer, and runs as its own service on localhost:7700. It does not run on a Java Virtual Machine, so there is no Java heap and no jvm.options file to edit, and MediaHub does not expose a memory setting for it.
High memory usage is normally tied to indexing - importing a large number of assets at once, or re-indexing the whole library.
Solution
- Import assets in smaller batches, so less work is in flight at once.
- Avoid running a full Re-Index Search Engine at the same time as a large import, and do not start one just before going on air.
- Make sure the server has enough RAM for the size of your media library (see Recommended Hardware).
If high memory usage persists after the steps above, contact our support team.
Note
On MediaHub 3.3 and earlier the search engine was Elasticsearch, and its heap size was set with Xms / Xmx in C:\Program Files\Erizos\Elasticsearch\config\jvm.options. That file does not exist in MediaHub 3.5. If you upgraded from an older version, the old Elasticsearch installation is left in place and keeps using memory until you uninstall it - see Search in Media Hub Doesn't Work After Upgrade.