andre.pletschette Posted December 10, 2013 Share Posted December 10, 2013 Hello,I actually have a memory problem in Jaspersoft previews. I often see in online forums to set JAVA_MEM_OPTS. Example:-server -Xmx3000M -Xms500M -XX:MaxPermSize=512m -XX:-UseThreadPriorities -XX:JavaPriority1_To_OSPriority=127 -XX:JavaPriority2_To_OSPriority=127 -XX:JavaPriority3_To_OSPriority=127 -XX:JavaPriority4_To_OSPriority=127 -XX:JavaPriority5_To_OSPriority=127 -XX:JavaPriority6_To_OSPriority=127 -XX:JavaPriority7_To_OSPriority=127 -XX:JavaPriority8_To_OSPriority=127 -XX:JavaPriority9_To_OSPriority=127 -XX:JavaPriority10_To_OSPriority=127 -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Dsun.rmi.dgc.client.gcInterval=600000 -Dsun.rmi.dgc.server.gcInterval=600000 -XX:SoftRefLRUPolicyMSPerMB=1My question is how and where do I need to set this kind of parameter?Thanks for any help... Link to comment Share on other sites More sharing options...
cameron_1 Posted December 11, 2013 Share Posted December 11, 2013 In Windows, you can use tomcat6w.exe to make this change. But you need to stuff around a little first (assuming you're using the bundled Tomcat)...Navigate to your JS install DIR, the apach-tomcat folder. Go into the 'bin' folder. In there there's a file called tomcat6w.exe, make a copy of that and rename it to jasperreportsTomcatw.exe.Right click this file, and choose "run as administrator". In here, go to the Java tab, and you'll see the Java Options listed there. Make your recommended changes here and click OK! (and restart Tomcat of course). If you're not using the bundled J2EE server, you should read the documentation of your server in use, it'll usually have the methods listed on how to change that.Not sure at all about the Linux version, sorry, don't have a copy of it running to check with... Link to comment Share on other sites More sharing options...
Steve Park Posted December 11, 2013 Share Posted December 11, 2013 Hi Andre,If you're not using JRS and want to change the memory settings in iReport or JSS, you can change them in the following locations (assuming you're on Windows):iReport: C:Program FilesJaspersoftiReport-Professional-x.x.0etcireportpro.confJSS: C:Program FilesJaspersoftJaspersoft Studio Professional-x.x.0.finalJaspersoft Studio Professional.iniSteve 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