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