Hello,
I have been trouble with loading lots of xml files into the basex. I using Ubunto OS.
The commands below I used to perform the loading files:
CREATE DB bd_inex2009;SET TEXTINDEX false;SET ATTRINDEX false;SET AUTOFLUSH false;SET ADDCACHE true;SET INTPARSE true;SET DTD false;ADD /home/arwen/daiane_oracle/loading_inex2009/new_page_xml
Those commands result the message error below:
Out of Main Memory. The following hints might help you: - increase Java's heap size with the flag -Xmx<size> - choose the internal XML parser in the GUI or via 'set intparse on' - deactivate the text and attribute indexes
Then to increase Java's heap size with the flag -Xmx<size> I followed the statements on the documentation in http://docs.basex.org/wiki/Start_Scripts.
I replaced the code from /usr/bin named basex, basexclient, basexserver and basesgui but org.basex.BaseX is missing. -------------------------------------------- Linux/Mac: basex -------------------------------------------- #!/bin/bash
# Path to this script FILE="${BASH_SOURCE[0]}" while [ -h "$FILE" ] ; do SRC="$(readlink "$FILE")" FILE="$( cd -P "$(dirname "$FILE")" && \ cd -P "$(dirname "$SRC")" && pwd )/$(basename "$SRC")" done BX="$( cd -P "$(dirname "$FILE")/.." && pwd )"
# Core and library classes CP="$BX/BaseX.jar" CP="$CP$(for JAR in "$BX"/lib/*.jar; do echo -n ":$JAR"; done)"
# Options for virtual machine VM=-Xmx512m
# Run code java -cp "$CP" $VM org.basex.BaseX "$@" -----------------------------------------------------------------------
I don't know where the org.basex.BaseX file is placed, because of this I didn't find it to replace it like the others files.
When I use the command below:
arwen@arwen:/usr/bin$ basexserver Error: Could not find or load main class org.basex.BaseX
My intention is just increasing Java heap size with the flag -Xmx<size> How can I do this step by step?
Regards,
Daiane