Forum: Building VoltDB Applications

Post: VOLTDB_HEAPSIZE not getting picked up

VOLTDB_HEAPSIZE not getting picked up
Nov 2, 2012
I modified the voltkv example application and am getting the heap space error:
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
I then modified the to include
export VOLTDB_HEAPSIZE="2048"
just before the $VOLTDB create catalog ... statement.
I then tried to clean and rerun but am still getting the heap space error. Any idea why VOLTDB_HEAPSIZE is not getting picked up ?
Using Volt 3.0 enterprise edition.
Hi, I've made the same change
Nov 16, 2012

I've made the same change to a copy here and the value appears to get picked up properly. To check for your install, you can modify the bin/voltdb script under the top level directory, there's an

#echo $CMDVAL

near the bottom that you can uncomment to see the whole java command line which is going to run. Look for the change in the -Xmx switch, it should go from -Xmx1024m to -Xmx2048m.

You say you've modified the voltkv example...does the unmodified version run successfully for you or do you get the same OutOfMemoryError?