Henri25 Posted January 14, 2009 Share Posted January 14, 2009 Hi,I get the Out of Memory Java Heap space error, when i want to generate big reports (more dan 40.000 pages).I have used all options with the virtualizer, but i got still the error.Can anyone help me..it's a big problem for me.?Sincerely,Henri MegensGouwITThe Netherlands Link to comment Share on other sites More sharing options...
vickirk Posted January 14, 2009 Share Posted January 14, 2009 Hi,You could try setting a java jvm option on the command used to start iReprt, e.g. try ireport -J-Xmx512m If you are are wnidows you will probably have to modify the shortchut via right click>properties, then add the " -J-Xmx756m" (without quotes but with space) to the end of the target field.If that doesnt work try increasing the number. Hope this helps.Regards, Vic Link to comment Share on other sites More sharing options...
vickirk Posted January 14, 2009 Share Posted January 14, 2009 Sorry, shoul dhave mentioned what this does. It sets the max memory allowed to be used via java to be 512Mb (or 756Mb in the second example!) Link to comment Share on other sites More sharing options...
Henri25 Posted January 19, 2009 Author Share Posted January 19, 2009 Hi. It doesn't matter....Have you got any other ideas?I hope so..it's a very important problem for my. Thanks in advance,Henri MegensGouwITTHe Netherlands..... Here's my whole content of the startup.bat of i-report.@echo offset TMP_CLASSPATH=%CLASSPATH%for %%i in (%0) do cd /d %%~dpi..set CLASSPATH=%CLASSPATH%;.classes;.fonts;rem for %%i in ("%FLEX_SDK_HOME%lib*.jar") do call ".bincpappend.bat" %%irem Add all jars....for %%i in (".lib*.jar") do call ".bincpappend.bat" %%ifor %%i in (".lib*.zip") do call ".bincpappend.bat" %%i set IREPORT_CLASSPATH=%CLASSPATH%set CLASSPATH=%TMP_CLASSPATH%if not "%IREPORT_HOME%" == "" goto gotIReportHomeset IREPORT_HOME=%CD%:gotIReportHomejava -cp "%IREPORT_CLASSPATH%" -Direport.home="%IREPORT_HOME%" -Djava.security.policy="%IREPORT_HOME%/policy.all" -Xms1024m -Xmx1024m it.businesslogic.ireport.gui.MainFrame %* Link to comment Share on other sites More sharing options...
gsxstylee Posted July 22, 2009 Share Posted July 22, 2009 vickirkWrote: Hi, You could try setting a java jvm option on the command used to start iReprt, e.g. try ireport -J-Xmx512m If you are are wnidows you will probably have to modify the shortchut via right click>properties, then add the " -J-Xmx756m" (without quotes but with space) to the end of the target field. If that doesnt work try increasing the number. Hope this helps. Regards, Vic I noticed that this does not work anymore, is there another place where the heap size is set now? Link to comment Share on other sites More sharing options...
Giulio Toffoli Posted July 23, 2009 Share Posted July 23, 2009 You can set the java heap space in the file:<ireport 3.1.0 and laters>/etc/ireport.confThere is a line like that:default_options="-J-Xms256m -J-Xmx512m -J-Dfile.encoding=UTF-8 -J-Dorg.netbeans.ProxyClassLoader.level=1000"From this configuration file you can force the use of a specific java virtual machine.Giulio Link to comment Share on other sites More sharing options...
lotion46 Posted July 23, 2009 Share Posted July 23, 2009 Hi,I also get an "out of memory" error while generating an excel export.Above mentioned hints are not working or respectively it's not clear to me what to do exactly.But I´m surprised that my report works with IR 2.04 but not with IR 3.5.2. Post Edited by lotion46 at 07/23/2009 10:45 Link to comment Share on other sites More sharing options...
Giulio Toffoli Posted July 24, 2009 Share Posted July 24, 2009 iReport 3.5.2 uses much more memory, so if the heap space is the same, you'll probably get more easily an out of memory.This is what you should do to execute very large reports:1, If the error happens at filling time, you can use a virtualizer to limit the use of memory (Tools->Options->iReport->Compilation and execution (tab) ->Execution options (tab) check "Use virtualizer". The vitualizer can be configured in the tab "Virtualizer".2. If the error happens at export time, the virtualizer is not useful, and you have to increase the heap size (meaning set a bigger value for the option -J-Xmx512mGiulio Link to comment Share on other sites More sharing options...
lotion46 Posted August 4, 2009 Share Posted August 4, 2009 So the error happens while report generation. I tried it with the virtualizer (all kinds) but the report still won't be created.In 2.04 it takes round about 15 minutes to get the report but 3.5.2 has even after two hours not finished. Link to comment Share on other sites More sharing options...
rodnikosh Posted December 10, 2012 Share Posted December 10, 2012 i have the same error in 4.8.0.none of the solutions above work.any solution for this? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now