Page 1 of 1

Java heap space OutOfMemory error in 12.1

Posted: Tue Feb 01, 2011 12:41 pm
by anderszvensson
Hi,

I have a colleague who gets the java heap space outofmemory error. I don't get it when transforming the exact same ditamap, and the only difference that we can see is that he has upgraded to 12.1, and I haven't. The transformation scenario has -Xmx256m set...

What could be the problem here?

Regards,

Anders

Re: Java heap space OutOfMemory error in 12.1

Posted: Tue Feb 01, 2011 1:21 pm
by Radu
Hi Anders,

Oxygen 12.1 comes with a newer DITA OT bundled: 1.5.2M05.
Your colleague can try increasing the Xmx to -Xmx512m.
If this still does not work:
Please write us on the support email address with the entire Oxygen console view output generated by the DITA Open Toolkit.

Regards,
Radu

Re: Java heap space OutOfMemory error in 12.1

Posted: Thu Mar 31, 2011 10:26 pm
by jspychka
Hello,

I am getting this error again (java heap space) with v12.1. I set the jvm arguments to 512 but the error persists. I remember generating this same ditamap successfully with v12.

John

Re: Java heap space OutOfMemory error in 12.1

Posted: Fri Apr 01, 2011 7:15 pm
by adrian
Hello,

We've already discussed this in private, but to clarify for other people encountering this: Further increasing the heap to 768 has fixed this particular problem.

Regards,
Adrian

Re: Java heap space OutOfMemory error in 12.1

Posted: Thu Oct 18, 2012 4:50 am
by jspychka
Hey Guys,

I can't seem to get rid of this problem. I've gone back to generating docs with Oxygen after more than a year of "doing other stuff," and my Java heap space error is back on some of my larger docs (645 pgs). I tried pumping up the heap setting to 4096 but it still crashes although seemingly near the end of the generation. We're running v12.2. Any ideas would be much appreciated.

Here's a code snippet:

Code: Select all

Executing:
"/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java" -Xmx4096m -classpath "/Applications/author/tools/ant/lib/ant-launcher.jar" "-Dant.home=/Applications/author/tools/ant" org.apache.tools.ant.launch.Launcher -lib "/Applications/author/classes" -lib "/Applications/author/lib/author.jar" -lib "/Applications/author/lib/oxygen.jar" -lib "/Applications/author/lib/oxygenEclipse.jar" -lib "/Applications/author/lib/authorEclipse.jar" -lib "/Applications/author/lib/resolver.jar" -lib "/Applications/author/frameworks/dita/DITA-OT" -lib "/Applications/author/lib/commons-io-1.3.1.jar" -lib "/Applications/author/lib/commons-logging-1.0.4.jar" -lib "/Applications/author/lib/log4j.jar" -lib "/Applications/author/frameworks/dita/DITA-OT/lib/dost-patches.jar" -lib "/Applications/author/frameworks/dita/DITA-OT/lib/dost.jar" -lib "/Applications/author/frameworks/dita/DITA-OT/lib/commons-codec-1.4.jar" -lib "/Applications/author/lib/xercesImpl.jar" -lib "/Applications/author/lib/saxon9ee.jar" -lib "/Applications/author/lib/saxon.jar" -lib "/Applications/author/lib/xmlgraphics-commons-1.4.jar" -lib "/Applications/author/lib/fop.jar" -lib "/Applications/author/lib/batik-all-1.7.jar" -lib "/Applications/author/lib/xml-apis-xpath.jar" -lib "/Applications/author/lib/xml-apis-ext.jar" -lib "/Applications/author/lib/avalon-framework-4.2.0.jar" -lib "/Applications/author/lib/jcip-annotations.jar" -lib "/Applications/author/lib/jeuclid-core.jar" -lib "/Applications/author/lib/jeuclid-fop.jar" -lib "/Applications/author/lib/jh.jar" -lib "/Applications/author/frameworks/dita/DITA-OT/lib/jsearch.jar" -lib "/Applications/author/frameworks/dita/DITA-OT/plugins/webhelp/lib/lucene-analyzers-3.0.0.jar" -lib "/Applications/author/frameworks/dita/DITA-OT/plugins/webhelp/lib/lucene-core-3.0.0.jar" -lib "/Applications/author/frameworks/dita/DITA-OT/plugins/webhelp/lib/nw-cms.jar" -f "/Applications/author/frameworks/dita/DITA-OT/build.xml" "-Dtranstype=pdf2" "-Ddita.input.valfile=/Applications/author/frameworks/dita/templates/val/configguide.ditaval" "-Dclean.temp=yes" "-Dpdf2.dir=taleo" "-Dbasedir=/Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr" "-Doutput.dir=/Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/_temppdf/out" "-DmaxJavaMemory=2000m" "-DbaseJVMArgLine=-Xmx4096m" "-Dcustomization.dir=/Applications/author/frameworks/dita/DITA-OT/taleo/fo/Customization_Guide" "-Ddita.dir=/Applications/author/frameworks/dita/DITA-OT" "-Dargs.input=/Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/__recruiting_mainmap_configurationguide.ditamap" "-Douter.control=quiet" "-Dpdf.formatter=fop" "-Dgenerate.copy.outer=2" "-Ddita.temp.dir=/Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp"

Buildfile: /Applications/author/frameworks/dita/DITA-OT/build.xml

init:

clean-output:

pdfswitch-warning:

start-process:

init-logger:

init-URIResolver:

output-version:
[echo] Version: DITA Open Toolkit 1.5.2 Milestone 08

use-init.envhhcdir:

use-init.hhcdir:

use-init:

check-arg:
[echo] *****************************************************************
[echo] * basedir = /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr
[echo] * dita.dir = /Applications/author/frameworks/dita/DITA-OT
[echo] * input = /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/__recruiting_mainmap_configurationguide.ditamap
[echo] * transtype = pdf2
[echo] * tempdir = /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp
[echo] * outputdir = /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/_temppdf/out
[echo] * extname = .xml
[echo] * clean.temp = yes
[echo] * clean.output = false
[echo] * xslt.parser = SAXON
[echo] *****************************************************************
[echo] #Ant properties
[echo] #Wed Oct 17 21:37:10 EDT 2012
[echo] args.css.file.temp=${args.css}
[echo] args.css.real=${args.css}
[echo] args.grammar.cache=yes
[echo] args.hide.parent.link=yes
[echo] args.input=/Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/__recruiting_mainmap_configurationguide.ditamap
[echo] args.logdir=/Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/_temppdf/out
[echo] args.message.file=/Applications/author/frameworks/dita/DITA-OT/resource/messages.xml
[echo] args.odt.img.embed=yes
[echo] args.odt.include.rellinks=none
[echo] args.xml.systemid.set=yes
[echo] dita.dir=/Applications/author/frameworks/dita/DITA-OT
[echo] dita.empty=
[echo] dita.ext=.xml
[echo] dita.extname=xml
[echo] dita.input.filename=__recruiting_mainmap_configurationguide.ditamap
[echo] dita.input.valfile=/Applications/author/frameworks/dita/templates/val/configguide.ditaval
[echo] dita.map.filename.root=__recruiting_mainmap_configurationguide
[echo] dita.preprocess.reloadstylesheet=false
[echo] dita.resource.dir=/Applications/author/frameworks/dita/DITA-OT/resource
[echo] dita.script.dir=/Applications/author/frameworks/dita/DITA-OT/xsl
[echo] dita.temp.dir=/Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp
[echo] dita.topic.filename.root=__recruiting_mainmap_configurationguide.ditamap
[echo] *****************************************************************

output-deprecated-msg:

output-css-warn-message:

start-preprocess:

gen-list-flag-check:

gen-list-without-flagging:

gen-list-with-flagging:
[pipeline] Using XERCES.
[pipeline] Using Xerces grammar pool for DTD and schema caching.
[pipeline] [DOTJ031I][INFO] No specified rule for 'product=Taleo' was found in the ditaval file. This value will use the default action, or a parent prop action if specified. To remove this message, you can specify a rule for 'product=Taleo' in the ditaval file.
[pipeline] [DOTJ031I][INFO] No specified rule for 'product=Recruiting' was found in the ditaval file. This value will use the default action, or a parent prop action if specified. To remove this message, you can specify a rule for 'product=Recruiting' in the ditaval file.
[pipeline] [DOTJ031I][INFO] No specified rule for 'product=Admin' was found in the ditaval file. This value will use the default action, or a parent prop action if specified. To remove this message, you can specify a rule for 'product=Admin' in the ditaval file.
[pipeline] [DOTJ031I][INFO] No specified rule for 'product=REC,' was found in the ditaval file. This value will use the default action, or a parent prop action if specified. To remove this message, you can specify a rule for 'product=REC,' in the ditaval file.
[pipeline] [DOTJ031I][INFO] No specified rule for 'product=ONB,' was found in the ditaval file. This value will use the default action, or a parent prop action if specified. To remove this message, you can specify a rule for 'product=ONB,' in the ditaval file.
[pipeline] [DOTJ031I][INFO] No specified rule for 'product=PERF' was found in the ditaval file. This value will use the default action, or a parent prop action if specified. To remove this message, you can specify a rule for 'product=PERF' in the ditaval file.

gen-list:

debug-filter-flag-check:

debug:

debug-and-filter:
[pipeline] Using Xerces grammar pool for DTD and schema caching.
[pipeline] Using Xerces grammar pool for DTD and schema caching.

debug-filter:

copy-image-check:

copy-image:
[copy] Copying 105 files to /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/_temppdf/out

copy-html-check:

copy-html:

copy-flag-check:

copy-flag:
[copy] Copying 2 files to /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/_temppdf/out

copy-subsidiary-check:

copy-subsidiary:

copy-generated-files:
[copy] Copying 2 files to /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/_temppdf/out

copy-files:

conrefpush-check:

conrefpush:

conref-check:

conref:
[xslt] Transforming into /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp
[xslt] Processing /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/commondoc/_reusablecontent/__reusablecontent.xml to /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/commondoc/_reusablecontent/__reusablecontent.xml.cnrf
[xslt] Loading stylesheet /Applications/author/frameworks/dita/DITA-OT/xsl/preprocess/conref.xsl
[xslt] Processing /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/commondoc/usergroup/t_creatingausergroup.xml to /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/commondoc/usergroup/t_creatingausergroup.xml.cnrf
[xslt] Processing /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/commondoc/usergroup/t_deletingausergroup.xml to /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/commondoc/usergroup/t_deletingausergroup.xml.cnrf
[xslt] Processing /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/commondoc/usergroup/t_removingauserfromausergroup.xml to /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/commondoc/usergroup/t_removingauserfromausergroup.xml.cnrf
[xslt] Processing /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/monarchdoc/linkedin/t_activatingthelinkedinpreviewinsolutionexchange.xml to /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/monarchdoc/linkedin/t_activatingthelinkedinpreviewinsolutionexchange.xml.cnrf
[move] Moving 5 files to /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp

move-meta-entries-check:

move-meta-entries:

keyref-check:

keyref:

coderef-check:

coderef:

mapref-check:

mapref:
[xslt] Transforming into /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp
[xslt] Processing /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/__recruiting_mainmap_configurationguide.ditamap to /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/__recruiting_mainmap_configurationguide.ditamap.ref
[xslt] Loading stylesheet /Applications/author/frameworks/dita/DITA-OT/xsl/preprocess/mapref.xsl
[xslt] Processing /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/_agency.ditamap to /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/_agency.ditamap.ref
[xslt] Processing /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/_appendix.ditamap to /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/_appendix.ditamap.ref
[xslt] Processing /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/_approval_admin_fmx.ditamap to /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/_approval_admin_fmx.ditamap.ref
[xslt] Processing /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/_candidateandrequisitionmatching_admin.ditamap to /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/_candidateandrequisitionmatching_admin.ditamap.ref
[xslt] Processing /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/_candidateselectionworkflow_admin_fmx.ditamap to /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/_candidateselectionworkflow_admin_fmx.ditamap.ref
[xslt] Processing /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/_centralconfigurationadmin.ditamap to /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/_centralconfigurationadmin.ditamap.ref
[xslt] Processing /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/_contingenthiring_admin.ditamap to /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/_contingenthiring_admin.ditamap.ref
[xslt] Processing /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/_correspondence_admin_fmx.ditamap to /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/_correspondence_admin_fmx.ditamap.ref
[xslt] Processing /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/_dataarchivinganddeletion_admin_fmx.ditamap to /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/_dataarchivinganddeletion_admin_fmx.ditamap.ref
[xslt] Processing /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/_externalservice_admin_fmx.ditamap to /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/_externalservice_admin_fmx.ditamap.ref
[xslt] Processing /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/_fieldandselection_admin_fmx.ditamap to /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/_fieldandselection_admin_fmx.ditamap.ref
[xslt] Processing /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/_formsandfiles_admin.ditamap to /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/_formsandfiles_admin.ditamap.ref
[xslt] Processing /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/_foundationdata_admin.ditamap to /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/_foundationdata_admin.ditamap.ref
[xslt] Processing /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/_gettingstartedadminguide.ditamap to /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/_gettingstartedadminguide.ditamap.ref
[xslt] Processing /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/_jobboard_admin.ditamap to /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/_jobboard_admin.ditamap.ref
[xslt] Processing /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/_list_admin.ditamap to /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/_list_admin.ditamap.ref
[xslt] Processing /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/_mergeform_admin.ditamap to /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/_mergeform_admin.ditamap.ref
[xslt] Processing /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/_pipelinemanagement_admin.ditamap to /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/_pipelinemanagement_admin.ditamap.ref
[xslt] Processing /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/_prefaceadminguide.ditamap to /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/_prefaceadminguide.ditamap.ref
[xslt] Processing /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/_productresource_admin_fmx.ditamap to /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/_productresource_admin_fmx.ditamap.ref
[xslt] Processing /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/_recruitingcenterlayoutconfigurationadmin.ditamap to /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/_recruitingcenterlayoutconfigurationadmin.ditamap.ref
[xslt] Processing /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/_recruitingfundamental.ditamap to /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/_recruitingfundamental.ditamap.ref
[xslt] Processing /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/_search_admin_fmx.ditamap to /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/_search_admin_fmx.ditamap.ref
[xslt] Processing /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/_sourcetracking_admin.ditamap to /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/_sourcetracking_admin.ditamap.ref
[xslt] Processing /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/_troubleshooting_user_fmx.ditamap to /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/_troubleshooting_user_fmx.ditamap.ref
[xslt] Processing /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/_user_admin.ditamap to /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/_user_admin.ditamap.ref
[move] Moving 27 files to /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp

mappull-check:

mappull:
[xslt] Transforming into /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp
[xslt] Processing /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/__recruiting_mainmap_configurationguide.ditamap to /Users/jspychka/Documents/_Taleo/svn/monarchdoc800/branches/12a/fr_fr/temp/__recruiting_mainmap_configurationguide.ditamap.pull
[xslt] Loading stylesheet /Applications/author/frameworks/dita/DITA-OT/xsl/preprocess/mappull.xsl
[xslt] : Warning! Stylesheet module file:/Applications/author/frameworks/dita/DITA-OT/xsl/common/dita-utilities.xsl is included or imported more than once. This is permitted, but may lead to errors or unexpected behavior......

line 10583
[java] 82196 WARN [ main ] org.apache.fop.apps.FOUserAgent - Line 1 of a paragraph overflows the available area by 8340 millipoints. (See position 30028:-1)
[java] 82197 INFO [ main ] org.apache.fop.apps.FOUserAgent - An fo:block (See position 30029:-1) is wider than the available room in inline-progression-dimension. Adjusting end-indent based on overconstrained geometry rules (XSL 1.1, ch. 5.3.4)
[java] 82197 WARN [ main ] org.apache.fop.apps.FOUserAgent - Line 1 of a paragraph overflows the available area by 8340 millipoints. (See position 30029:-1)
[java] 82197 INFO [ main ] org.apache.fop.apps.FOUserAgent - An fo:block (See position 30030:-1) is wider than the available room in inline-progression-dimension. Adjusting end-indent based on overconstrained geometry rules (XSL 1.1, ch. 5.3.4)
[java] 82198 WARN [ main ] org.apache.fop.apps.FOUserAgent - Line 1 of a paragraph overflows the available area by 8340 millipoints. (See position 30030:-1)
[java] 83314 INFO [ main ] org.apache.fop.apps.FOUserAgent - An fo:block (See position 30031:-1) is wider than the available room in inline-progression-dimension. Adjusting end-indent based on overconstrained geometry rules (XSL 1.1, ch. 5.3.4)
[java] 83315 WARN [ main ] org.apache.fop.apps.FOUserAgent - Line 1 of a paragraph overflows the available area by 8340 millipoints. (See position 30031:-1)
[java] 83315 ERROR [ main ] org.apache.fop.fo.properties.PropertyMaker - forcing opt to min in LengthRange
[java] Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
[java] at java.util.Arrays.copyOfRange(Arrays.java:3209)
[java] at java.lang.String.<init>(String.java:215)
[java] at java.lang.StringBuffer.toString(StringBuffer.java:585)
[java] at org.apache.fop.area.inline.SpaceArea.<init>(SpaceArea.java:43)
[java] at org.apache.fop.area.inline.TextArea.addSpace(TextArea.java:82)
[java] at org.apache.fop.layoutmgr.inline.TextLayoutManager$TextAreaBuilder.addSpaces(TextLayoutManager.java:578)
[java] at org.apache.fop.layoutmgr.inline.TextLayoutManager$TextAreaBuilder.setText(TextLayoutManager.java:497)
[java] at org.apache.fop.layoutmgr.inline.TextLayoutManager$TextAreaBuilder.build(TextLayoutManager.java:442)
[java] at org.apache.fop.layoutmgr.inline.TextLayoutManager$TextAreaBuilder.access$900(TextLayoutManager.java:394)
[java] at org.apache.fop.layoutmgr.inline.TextLayoutManager.addAreaInfoAreas(TextLayoutManager.java:368)
[java] at org.apache.fop.layoutmgr.inline.TextLayoutManager.addAreas(TextLayoutManager.java:297)
[java] at org.apache.fop.layoutmgr.inline.LineLayoutManager.addInlineArea(LineLayoutManager.java:1561)
[java] at org.apache.fop.layoutmgr.inline.LineLayoutManager.addAreas(LineLayoutManager.java:1430)
[java] at org.apache.fop.layoutmgr.BlockLayoutManager.addAreas(BlockLayoutManager.java:389)
[java] at org.apache.fop.layoutmgr.BlockLayoutManager.addAreas(BlockLayoutManager.java:389)
[java] at org.apache.fop.layoutmgr.BlockLayoutManager.addAreas(BlockLayoutManager.java:389)
[java] at org.apache.fop.layoutmgr.BlockLayoutManager.addAreas(BlockLayoutManager.java:389)
[java] at org.apache.fop.layoutmgr.BlockLayoutManager.addAreas(BlockLayoutManager.java:389)
[java] at org.apache.fop.layoutmgr.BlockLayoutManager.addAreas(BlockLayoutManager.java:389)
[java] at org.apache.fop.layoutmgr.AreaAdditionUtil.addAreas(AreaAdditionUtil.java:121)
[java] at org.apache.fop.layoutmgr.FlowLayoutManager.addAreas(FlowLayoutManager.java:342)
[java] at org.apache.fop.layoutmgr.PageBreaker.addAreas(PageBreaker.java:280)
[java] at org.apache.fop.layoutmgr.AbstractBreaker.addAreas(AbstractBreaker.java:626)
[java] at org.apache.fop.layoutmgr.AbstractBreaker.addAreas(AbstractBreaker.java:497)
[java] at org.apache.fop.layoutmgr.PageBreaker.doPhase3(PageBreaker.java:308)
[java] at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:450)
[java] at org.apache.fop.layoutmgr.PageBreaker.doLayout(PageBreaker.java:85)
[java] at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:107)
[java] at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:238)
[java] at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:120)
[java] at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:349)
[java] at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:177)

BUILD FAILED
/Applications/author/frameworks/dita/DITA-OT/build.xml:72: The following error occurred while executing this line:
/Applications/author/frameworks/dita/DITA-OT/build.xml:335: The following error occurred while executing this line:
/Applications/author/frameworks/dita/DITA-OT/taleo/fo/build.xml:185: The following error occurred while executing this line:
/Applications/author/frameworks/dita/DITA-OT/taleo/fo/build.xml:365: The following error occurred while executing this line:
/Applications/author/frameworks/dita/DITA-OT/taleo/fo/build.xml:393: The following error occurred while executing this line:
/Applications/author/frameworks/dita/DITA-OT/taleo/fo/build.xml:554: Java returned: 1

Total time: 3 minutes 58 seconds

The process finished with exit code: 1
line 10636
Many thanks,

John

Re: Java heap space OutOfMemory error in 12.1

Posted: Thu Oct 18, 2012 10:21 am
by Radu
Hi John,

It seems that you have your own customized build file for obtaining XSL-FO output, different from the one which comes with the bundled DITA OT.

The out of memory seems to occur not while the DITA OT is building the XSL-FO output but when the XSL-FO is processed using Apache FOP to generate the PDF output in the build file:

/Applications/author/frameworks/dita/DITA-OT/taleo/fo/build.xml

at line 554. So please look at that line and see if there is a separate forked process which runs the Apache FOP processor and if it is if this separate process receives as parameters the memory settings you are sending to the main ANT process. Because if a process forks and it receives no memory settings it will just have the default memory provided to the JVM.

Regards,
Radu

Re: Java heap space OutOfMemory error in 12.1

Posted: Thu Oct 18, 2012 3:48 pm
by jspychka
Hello Radu,

Yes, there does seem to be a fork process in our build file. See code below.

Can you tell me where to set the memory settings in the code. I tried adding a memory setting to the <arg line/> attribute below but that did not work.

Code: Select all

    <target name="transform.fo2pdf.fop" if="use.fop.pdf.formatter">
<!-- OXYGEN PATCH Run the FOP as an external process , fails on error-->
<java classname="org.apache.fop.cli.Main" fork="yes" classpath="${java.class.path}" dir="${dita.map.output.dir}" failonerror="true">
<!-- OXYGEN PATCH for jvmargs -->
<jvmarg line="${JVM_ARGS}"/>
<arg line='-fo "${inputFile}" -pdf "${outputFile}" -c "${fop.home}/conf/fop.xconf"'/>
</java>
</target>


Thanks,

John

Re: Java heap space OutOfMemory error in 12.1

Posted: Thu Oct 18, 2012 4:11 pm
by Radu
Hi John,

Could you try to add an <echo> in the target like:

Code: Select all

<echo>===============${JVM_ARGS}</echo>

in order to see in the console output the JVM arguments which are sent to the process?

The [b]Xmx[/b] settings are JVM arguments and not command line arguments. That's because they are special arguments to the Java virtual machine and not to the Java class which is executed.

The ANT Java task also has a [b]maxmemory[/b] attribute which you could also try to set:

[url]http://ant.apache.org/manual/Tasks/java.html[/url]

Regards,
Radu

Re: Java heap space OutOfMemory error in 12.1

Posted: Fri Oct 19, 2012 2:53 am
by jspychka
Bingo! The maxmemory attribute did it. All generates perfectly now! Many, many, many thanks! :D