0
Answered

High Memory Usage in QNAP

linearkinetics 4 years ago updated by Tom 4 years ago 1

Hihi, I recently installed Ubooquity server on my QNAP NAS. It's an amazing app. The only thing is that the memory usage racks up very quickly, and does not reduce even during inactivity. Memory usage initially stands at 200MB, and that is fine. But it quickly goes over 1GB after reading a few comics, and that does not go down even after I finished reading. This then makes my entire NAS system very slow (4GB in total of RAM). Is there any settings I could change in order to limit, or release memory usage, when Ubooquity is not in use?  Many thanks. 

Answered

You can limit the quantity of memory Ubooquity is allowed to use by using the "Xmx" parameter in the command line.

For instance the following command will launch Ubooquity with a hard limit of 512 MB of RAM:


java -Xmx512m -jar Ubooquity.jar


Now if this quantity is too small, you might sometime saturate it with when performing memory intensive operations.
That’s when you get java.lang.OutOfMemoryError: Java heap space errors.


It's up to you to choose the best compromise for the hardware you use and the operations you perform with Ubooquity (PDF processing can be memory intensive with the current version).