This forum is now out of date, for our new forum Click Here
OutOfMemoryError: PermGen space
Frequently Asked Question
If you are encountering the error:

Error: java.lang.OutOfMemoryError: PermGen space

in the Yellowfin log files, this is to do with the amount of memory the Java VM allocates for caching class and method definitions.

You can adjust the amount of memory available in the startup batch files. Which files to modify depends on how you start Yellowfin.

Linux/Unix/Mac OS X
If you run Yellowfin on Linux/Unix/Mac OS X, the memory limits are in the startup script catalina.sh.

Find this section:
# If you are experiencing "java.lang.OutOfMemoryError: PermGen space"
# errors, uncomment the following line:
# JAVA_OPTS="$JAVA_OPTS -XX:PermSize=64m -XX:MaxPermSize=128m"


Uncomment the line above and restart Yellowfin. If you still get the error, try increasing the MaxPermSize value.

Windows Start Menu
If you run Yellowfin on Windows, and start Yellowfin from the Start Menu or by running the startup.bat batch file, the memory limits are in the file catalina.bat.

Find this section:
rem If you are experiencing "java.lang.OutOfMemoryError: PermGen space"
rem errors, uncomment the following line:
rem set JAVA_OPTS=%JAVA_OPTS% -XX:PermSize=64m -XX:MaxPermSize=128m


Uncomment the line above and restart Yellowfin. If you still get the error, try increasing the MaxPermSize value.

Windows Service
If you run Yellowfin on Windows, and start Yellowfin as a Windows Service, you will need to modify the service startup settings.

Open a command prompt and change to the appserver\bin directory under the Yellowfin installation directory. Run the command:
tomcat5w.exe //ES//Yellowfin



This will run the service manager for the Yellowfin service. Go to the "Java" tab, and modify the PermSize and MaxPermSize options in the Java Options box:


If you still get the error, try increasing the MaxPermSize value.


Steve

Mon Jul 19, 2010 10:23 AM

Comment
Incidentally, an easy way to find out what your current permgen settings are is to run the info.jsp page:

http://<hostname>:<port>/info.jsp

and then expand the System Properties section of the results and about 4 screens down you should see the following Startup Parameters (which includes the MaxPermSize value):





however, if you are on a pre 7.0 version of YF then the permgen settings won't be part of the results, in which case just downlaod the attached startup_params.jsp and put it in the folder <yellowfin home>\appserver\webapps\ROOT and run it:

http://<hostname>:<port>/startup_params.jsp
Attachments:
Must be logged in to view attachments

David

Thu Sep 4, 2014 12:28 PM