How do I increase Java's heap size with the flag -Xmx<size>?

Friday, 31 January 2014 · 1 message
DC
DAIANE ROBERTA CANDIDA31 Jan 2014 13:53 #

Hello Dirk,

You were right about the command used to increase Java's heap size, but my loading files don't work yet.

The server has memory 988g When I put 500g in the option -Xmx it raised the error below:

Error occurred during initialization of VM Unable to allocate bit map for parallel garbage collection for the requested heap size. Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.

So I decreased it from 500 to 350 then the following error appears

Out of Main Memory. You can try to: - increase Java's heap size with the flag -Xmx<size> - deactivate the text and attribute indexes.

I already deactivated the indexes

FTINDEX: OFF TEXTINDEX: OFF ATTRINDEX: OFF

What should I do to import data into the basex?

Regards,

Daiane.


⚡Generated with XQuery