'janusgraph-0.5.3 memory configuration

I am using janusgraph-0.5.3 (with Cassandra) and want to know how do i configure Memory allocation and increase default memory allocated to 2GB for the gremlin server process.

I am trying to load bulk data on my gremlin-server, but it is failing with error. So want to know if there is posibility to increase the default memory allocation and Looking for advice on how i would know current memory allocated and how to increase the same.

Would like help to know which yaml i need to change in conf to increase current memory and what exactly needs to be changed.

Thanks



Solution 1:[1]

I changed gremlin-server.sh file to take additional memory

# Set Java options
if [ "$JAVA_OPTIONS" = "" ] ; then
   echo "Setting xmx and xss"
    JAVA_OPTIONS="-Xms1024m -Xmx3074m -Xss2048k -javaagent:$JANUSGRAPH_LIB/jamm-0.3.0.jar -Dgremlin.io.kryoShimService=org.janusgraph.hadoop.serialize.JanusGraphKryoShimService"
fi

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Kelvin Lawrence