on 06-23-2009 12:19 PM
hi every one,
While iam trying to generate crystal report, iam getting the following error.......
com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: PermGen space---- Error code:-2147467259 Error code name:failed
Exception: java.lang.OutOfMemoryError: PermGen space
Please let me know, how to overcome this problem?
Edited by: abhishek.c1984 on Jun 23, 2009 2:00 PM
You must increase the amount of memory that you allocate to the "permanent memory" storage space. This is done by modifying the arguments of the JVM and adding something like:
-XX:MaxPermSize=256m
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Just follow these steps to configure your JVM memory settings;
Right click on your Project->Run As-> Run configurations-> It opens the tabbed window, where you can find the 'Argruments' tab.
Under this Tab go to ' VM arguments' n set this data over there.
-XX:+CMSPermGenSweepingEnabled -XX:MaxPermSize=256m
-Xmx768m
-> Click on Apply-> Run.
>do i need to set all these three values under VM options?
>-XX:+CMSPermGenSweepingEnabled -XX:MaxPermSize=256m
>-Xmx768m
the -XX:MaxPermSize=256m should fix your problem.
>Will these settings depends on Operating System and RAM configurations........if yes how can i set these settings dynamically?
Should be the same regardless of operating system. The amount of RAM you allocate to Java will depend on the RAM available on the machine. You will want to leave some RAM free for other programs to use.
>where can i find the JVM settings............so that i can modify it accordingly
>Iam using tomcat server......do i need to set these settings in the catalina.bat file?
If you are using windows there is a program that sets the config for you. It can often be found at:
C:\Program Files\Apache Software Foundation\Tomcat\bin\tomcat6w.exe
In the java tab, there is a section for java options. You could add it there.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.