Hi Stephano,

Your JAVA_OPTS settings look OK. It seems rather odd that this is 
failing on a simple Ant command (which should NOT be using that much 
memory). Do you have a lot of other software running on this server 
which could be using memory? It almost sounds like Java just cannot even 
find enough memory to perform its necessary tasks.

So, for example, since it looks like you are on Linux, you might want to 
see if most of your memory is already in use. One way of doing so is by 
running:

free -m

This will return three lines, the "-/+ buffers/cache" line is the one 
which will show the actual estimate for your amount of "used" vs. "free" 
memory.

Here's more details on understanding the results returned by 'free' 
command: 
http://www.infoworld.com/t/linux/making-sense-of-memory-usage-linux-196126

Essentially, I'm worried that you may be already using much of your 4GB 
of memory elsewhere, especially if you are running other software on 
that machine (even if it is just Tomcat and a database). So, no matter 
how high you set JAVA_OPTS, it's possible that there's just not enough 
memory to go around. If you have other things running on the server 
(e.g. Tomcat or a database), you may try stopping those temporarily 
while you run the 'ant update' command (as stopping them will obviously 
free up any memory they were using and make it available to your "ant 
update" command).

- Tim

On 7/31/2014 3:39 AM, Stephano John wrote:
> Dear Tim,
>
> you asked me two questions
>
>   * How much memory do you have available on the server?
> The server has 4 GB
>
> I have increased the allocation to 1024MB, i still get the same error.
>
> JAVA_OPTS="-Xmx1024M -Xms512M -Dfile.encoding=UTF-8"
> PATH=/etc/java-7-openjdk/bin
> JAVA_HOME=/etc/java-7-openjdk.
>
> But is this the correct way of doing it? I am also thinking of the command
> line memory as you have mentioned.
>
> Thank you
>

------------------------------------------------------------------------------
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

Reply via email to