Out of Memory
If you ever face OutOfMemory errors of the Java daemon (you will find them in the e2ws-debug.err file),
you are very likely using a high level of concurrency through internal concurrent_threads
parameter and/or parallel jobs.
To overcome this situation you can:
Reduce
concurrent_threads
parameter.Reduce the number of jobs running in parallel.
If you cannot do that, you should increase JVM memory.
To increase JVM memory, you will need to:
Create this file: ‘/opt/bacula/etc/e2ws_backend.conf’.
Below, an example of the contents: E2WS_JVM_MIN=2G E2WS_JVM_MAX=8G
Those values will define the MIN (E2WS_JVM_MIN) and MAX (E2WS_JVM_MAX) memory values assigned to the JVM Heap size. In this example, we are setting 2Gb for the minimum, and 8Gb for the maximum. In general, those values should be more than enough. Be careful if you are running jobs in parallel, as very big values and several jobs at a time could quickly eat all the memory of your host.
The ‘/opt/bacula/etc/e2ws_backend.conf’ won’t be modified through package upgrades, so your memory settings will be persistent.
See also
Go back to Certificate Problem
Go to Throttling
Go back to the main Troubleshooting article.