with respect to the message
"Error occurred during initialization of VM
Could not reserve enough space for object heap"
we typically code on laptops with 16GB of dram, and the gradlew build and test is optimized to be aware of that as an upper limit.
I'd have to check what the minimum dram requirement is when running the test step in gradlew.
I'm assuming you are using a laptop? Do you know how much dram it has? I suspect maybe only 4GB?
You can skip the test phase of the gradlew build by using
gradlew build -x test
Also: I see you are using windows 7. Are you running the build with cygwin or native windows?
-kevin
"
Hi kevin,
If I want to run gradlew build command, my laptop should have least 16G dram, is that right?
Now I change the enviroment to unbutu14.04.
-kevin
"
We do tests that are both single h2o process, and multiple h2o processes, to emulate h2o in a cloud.
I looked at one that I think is the biggest consumer of memory, the h2o-algos section of the junit tests that are run.
It starts 5 h2o jvms, each with 3 gbyte heap. So that's 15GB
that means you need a 16GB dram machine (laptops can have 16GB nowadays)
the h2o stdout that's produced during this test phase shows the cloud of 5, each with 3G heaps. 5*3 = 15, and you want a little more than that.
I think we should have this requirement listed on the README.
06-16 00:16:54.034 172.17.2.152:44008 1202 main INFO: Java heap totalMemory: 2.88 GB
06-16 00:16:54.035 172.17.2.152:44008 1202 main INFO: Java heap maxMemory: 2.88 GB
06-16 00:16:54.035 172.17.2.152:44008 1202 main INFO: Java version: Java 1.7.0_80 (from Oracle Corporation)
06-16 00:16:54.035 172.17.2.152:44008 1202 main INFO: JVM launch parameters: [-ea, -Xmx3g, -Xms3g, -Dai.h2o.name=junit_cluster_1168, -Dai.h2o.baseport=44000, -Dai.h2o.ga_opt_out=yes]
06-16 00:16:54.035 172.17.2.152:44008 1202 main INFO: OS version: Linux 3.13.0-54-generic (amd64)
06-16 00:16:54.035 172.17.2.152:44008 1202 main INFO: Machine physical memory: 125.82 GB
06-16 00:16:54.036 172.17.2.152:44008 1202 main INFO: X-h2o-cluster-id: 1434439013776
06-16 00:16:54.036 172.17.2.152:44008 1202 main INFO: Opted out of sending usage metrics.
06-16 00:16:54.036 172.17.2.152:44008 1202 main INFO: Possible IP Address: vethOEDGYM (vethOEDGYM), fe80:0:0:0:fc40:96ff:fe81:dcd8%6
06-16 00:16:54.036 172.17.2.152:44008 1202 main INFO: Possible IP Address: eth0 (eth0), fe80:0:0:0:ec4:7aff:fe34:5032%2
06-16 00:16:54.036 172.17.2.152:44008 1202 main INFO: Possible IP Address: br0 (br0), fe80:0:0:0:ec4:7aff:fe34:5032%4
06-16 00:16:54.037 172.17.2.152:44008 1202 main INFO: Possible IP Address: br0 (br0), 172.17.2.152
06-16 00:16:54.037 172.17.2.152:44008 1202 main INFO: Possible IP Address: lo (lo), 0:0:0:0:0:0:0:1%1
06-16 00:16:54.037 172.17.2.152:44008 1202 main INFO: Possible IP Address: lo (lo), 127.0.0.1
06-16 00:16:54.037 172.17.2.152:44008 1202 main INFO: Internal communication uses port: 44009
06-16 00:16:54.037 172.17.2.152:44008 1202 main INFO: Listening for HTTP and REST traffic on http://172.17.2.152:44008/
06-16 00:16:54.038 172.17.2.152:44008 1202 main INFO: H2O cloud name: 'junit_cluster_1168' on /172.17.2.152:44008, discovery address /235.9.159.184:60169
06-16 00:16:54.038 172.17.2.152:44008 1202 main INFO: 2. Point your browser to http://localhost:55555
06-16 00:16:54.120 172.17.2.152:44008 1202 main INFO: Log dir: '/tmp/h2o-jenkins/h2ologs'
06-16 00:16:54.120 172.17.2.152:44008 1202 main INFO: Cur dir: '/home4/jenkins/slave_dir_from_mr-0xa1/workspace/master_gradle_build/h2o-algos'
06-16 00:16:54.125 172.17.2.152:44008 1202 main INFO: HDFS subsystem not available
06-16 00:16:54.127 172.17.2.152:44008 1202 main INFO: S3 subsystem successfully initialized
06-16 00:16:54.127 172.17.2.152:44008 1202 main INFO: Flow dir: '/home4/jenkins/h2oflows'
06-16 00:16:54.145 172.17.2.152:44008 1202 main INFO: Cloud of size 1 formed [/172.17.2.152:44008]
06-16 00:16:57.136 172.17.2.152:44008 1202 FJ-126-15 INFO: Cloud of size 5 formed [/172.17.2.152:44000, /172.17.2.152:44002, /172.17.2.152:44004, /172.17.2.152:44006, /172.17.2.152:44008]