Hi Stephano, That error seems to be saying that Ant cannot find enough memory to update your DSpace. It sounds like either your server is overwhelmed or all of the memory is being allocated elsewhere. Here's a few questions we'd likely need you to answer:
* How much memory do you have available on the server? * Could you increase the value given to Java? Currently you are only letting Java use a maximum of 512MB of memory (based on your -Xmx512M). While 512MB of memory may be enough for a smaller sized DSpace instance, larger ones often need at least 1-2GB or more. Here's some additional performance hints: https://wiki.duraspace.org/display/DSDOC4x/Performance+Tuning+DSpace - Tim On 7/30/2014 6:54 AM, Stephano John wrote: > Dear all, > > we are installing dspace 4.2 but we get error when running the command > "ant update" here is the error > > /dspace-4.2-src-release/dspace/target/dspace-4.2-build/build.xml:355: > java.lang.OutOfMemoryError: Java heap space > > we have tried to set up cron job for assigning memory but still did not > help, may be we are making mistakes in the cron job itself. we have > installed java-7-openjdk, and its in /etc/. During installation we did not > create environment for java, just installed through apt-get install > java-7-openjdk > > JAVA_OPTS="-Xmx512M -Xms64M -Dfile.encoding=UTF-8" > PATH=/etc/java-7-openjdk/bin > JAVA_HOME=/etc/java-7-openjdk > > If any best way of setting this is available please you will be of great help > > kind regards > stephano > > ------------------------------------------------------------------------------ Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

