Hi Hussein! Thank you VERY MUCH for your help! Adding the "-XX:MaxPermSize=512m » option to the .sh file solved the problem. The 332pages of the document (286Mo) were finally rendered! One last question about the Java Runtime to be used… What’s the best option in your opinion? I have the 1.6.0.jdk runtime installed in my /System/Library/Java/JavaVirtualMachines/ folder, and nothing in the /Library/Java/JavaVirtualMachines/ folder. Is it better to remove the virtual machine I have already and to use the bundled one? Thanks again, you made my day!
David > Le 22 janv. 2015 à 09:59, Hussein Shafie <[email protected]> a écrit : > > On 01/21/2015 04:41 PM, David Duperron wrote: >> Thanks for your answer! This happens when using the « Convert to PDF » >> function from a Docbook5 file. I have just tried to increase the memory to >> 4096 and even 8192Mo, without success. The process still crashes after >> rendering approximately 190 pages. I have attached the screenshot of the >> error, and the log file… >> > > The error is: > > --- > java.lang.OutOfMemoryError: PermGen space > ... > org.apache.xmlgraphics.image.loader.cache.ImageCache.needImageInfo > --- > > This is error is triggered by a FOP (generates PDF) + Batik (converts SVG to > PDF). > > See > http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-users/200909.mbox/%[email protected]%3E > > > > --> First, please double-check what you did. You can see the amount of memory > made available to XMLmind XML Editor + its plug-ins like FOP, Batik, by using > "Help|About XMLmind XML Editor". > > > > --> Then consider using submenu "View|Display Images" and selecting "as > Bounding Boxes", then "Use as Default". Then please restart XMLmind XML > Editor. This should save a considerable amount of memory, in addition to > speeding up opening your document. > > See > http://www.xmlmind.com/xmleditor/_distrib/doc/help/viewMenu.html#displayImagesMenu > > > > --> Then revert to -Xmx4096m or -Xmx2048m (that is, a value more reasonable > than -Xmx8192m) in xxe-mac.sh and after this option, add this other option: > > -XX:MaxPermSize=512m > > http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html > > > > --> Finally, if all this fails, may be you could give a try to an alternate > Java runtime. > > For example, install Apple Java 1.6 if you currently don't have this runtime > (or any Java runtime) installed on your Mac. > > XMLmind XML Editor automatically uses Apple Java 1.6 when available, in > preference to Oracle Java 1.7 or 1.8. > > The Apple Java 1.6 runtime can be downloaded from: > > http://support.apple.com/kb/dl1572 > > > > --> On the contrary, if you have Apple Java 1.6 installed on your computer, > uninstall it using the following commands: > > --- > sudo rm -rf /System/Library/Java/JavaVirtualMachines/1.6.0.jdk > sudo rm -rf /Library/Java/JavaVirtualMachines/1.6.0*.jdk > --- > > This will force XMLmind XML Editor to use its private, bundled, Oracle Java > 1.8 runtime (provided that you have installed the XMLmind XML Editor v6.1 > .dmg distribution) . Unlike Apple Java 1.6, Oracle Java 1.8 has no PermGen. > > > > > -- XMLmind XML Editor Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xmleditor-support

