Forum

This content is now out of date.

Visit Our Community

Memory Usage

as far as I can see web server that is being used by Yellowfin (Apache Tomcat) is now using 200Mb of main memory and 300Mb of virtual memory.

Please advise!
200Mb of main memory actually doesn't seem all that much to me. When Tomcat starts up it is given a minimum and maximum amount of memory it can use. It will eventually allocate this entire amount of memory, and use it as it needs to. Having a look at your info page (http://www.easy-audit.com:8082/info.jsp
) shows this:

JVM current total memory: 254.1 MB
Free memory: 95.3 MB
JVM max memory: 254.1 MB

This means the maximum memory allowed is 254mb, and Tomcat has requested the entire amount. However nearly 100mb of that is currently unused.

To set the min/max memory usage, you will need to do the following:

1. Shut down the Yellowfin service
2. Edit the file Yellowfinappserverbinservice.bat
Find this section near the top:

rem Memory limits.
rem Set JvmMs to minimum JVM stack size (in Mb) rem Set JvmMx to maximum JVM stack size (in Mb) set JAVA_OPTS=%JAVA_OPTS% --JvmMs 128 --JvmMx 256

Change the numbers in the last line to the memory limits you want. For example, to set the minimum memory usage to 64mb and the max to 512mb,
use:
set JAVA_OPTS=%JAVA_OPTS% --JvmMs 64 --JvmMx 512

3. You will need to reinstall the Windows service.
Open a Command Prompt window and go to the Yellowfinappserverbin directory
Run "service remove Yellowfin" to uninstall the service
Run "service install Yellowfin" to reinstall the service with the new memory limits.
4. Restart the Yellowfin service

The amount of memory Yellowfin uses depends on a number of things, such as the number of users you have, how often the system is used, and the size and complexity of reports.