Collectors are set to use 128MB of RAM by default. If your Collectors are collecting more than a few files, you should increase the max heap size the Collector can use.
To increase the maximum Java Heap size:
1. Open [install_directory]/config/user.properties.
2. Add or locate the following parameter:
3. Increase the
wrapper.java.maxmemory value to one of the following levels based on the number of files you expect to collect from.
- 512MB for dozens of files
- 1024MB for 100 files
- 2048MB for more than 100 files
- 4096MB for more than 1000 files
These are general guidelines since your exact memory requirement depends on how many Sources are configured, log volume, use of wildcards and recursive scans in the path expressions, and filters.
4. Restart the Collector using the command
Increasing memory for Collectors that were upgraded from versions below 19.137
If the user.properties file has the following content,
wrapper.app.parameter.2=-b wrapper.app.parameter.3=installerSources/selected.json wrapper.filter.trigger.1000=java.lang.OutOfMemoryError
you must append the following to the end of the <Sumo_install_dir>/config/wrapper.conf file.
# Overwrite the defaults with any properties in user.properties #include ./config/user.properties
Then update user.properties as follows:
- Delete the above-mentioned three lines (the lines that begin with
- Add the following line:
You can now restart the Collector as described in Start or Stop a Collector Using Scripts.