Skip to content

Commit

Permalink
Centralise the setting of maximum heap size for Java invocations, and…
Browse files Browse the repository at this point in the history
… increase from 512m to 640m to handle the latest OOM condition. Interestingly, this was in embedded certificate extraction, which I would have thought had pretty low memory requirements. Replacing that particular transform with a custom application might therefore be a good idea in the long run.
  • Loading branch information
iay committed Mar 2, 2010
1 parent f083564 commit cf3e369
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,15 @@

<property name="known.hosts" value="${build.dir}/known_hosts"/>

<!--
Java memory requirements.
This is used as the max heap setting for all Java invocations. This amount will
be more than some invocations require, but there's no harm in having a higher
limit for all of them.
-->
<property name="java.max.memory" value="640m"/>

<!--
*************************************************
*** ***
Expand Down Expand Up @@ -437,7 +446,7 @@
<element name="args" optional="yes"/>
<sequential>
<java classname="edu.internet2.middleware.shibboleth.utils.MetadataTool"
fork="true" failonerror="true" maxmemory="384m">
fork="true" failonerror="true" maxmemory="${java.max.memory}">
<classpath>
<fileset dir="${tools.metadatatool}/lib">
<include name="**/*.jar"/>
Expand Down Expand Up @@ -496,7 +505,7 @@
<element name="args" optional="yes"/>
<sequential>
<java classname="org.opensaml.xml.util.XmlTool"
fork="true" failonerror="true" maxmemory="384m">
fork="true" failonerror="true" maxmemory="${java.max.memory}">
<classpath>
<fileset dir="${tools.xmltool}/lib">
<include name="**/*.jar"/>
Expand Down Expand Up @@ -574,7 +583,7 @@
<attribute name="o"/>
<attribute name="x"/>
<sequential>
<java fork="true" maxmemory="512m" failonerror="true" classname="org.apache.xalan.xslt.Process">
<java fork="true" maxmemory="${java.max.memory}" failonerror="true" classname="org.apache.xalan.xslt.Process">
<classpath>
<fileset dir="${tools.xalan}/lib">
<include name="**/*.jar"/>
Expand Down Expand Up @@ -709,7 +718,7 @@

<target name="import.metadata">
<echo>Importing metadata from ${entities.dir}/import.xml</echo>
<java fork="true" maxmemory="384m" failonerror="true" classname="org.apache.xalan.xslt.Process">
<java fork="true" maxmemory="${java.max.memory}" failonerror="true" classname="org.apache.xalan.xslt.Process">
<classpath>
<fileset dir="${tools.xalan}/lib">
<include name="**/*.jar"/>
Expand Down Expand Up @@ -754,7 +763,7 @@
<attribute name="s"/>
<sequential>
<java classname="uk.ac.sdss.mdcheck.MetadataCheck"
fork="true" failonerror="true" maxmemory="384m">
fork="true" failonerror="true" maxmemory="${java.max.memory}">
<classpath>
<fileset dir="${tools.mdcheck}/lib">
<include name="**/*.jar"/>
Expand Down

0 comments on commit cf3e369

Please sign in to comment.