Hi all!
A have the problem with my first build of OpenHAB system.
My actions are:
1) git clone
https://github.com/openhab/openhab.git2) cd ./openhab
3) mvn clean install
And I had the following error:
[INFO] SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
[INFO] SLF4J: Defaulting to no-operation (NOP) logger implementation
[INFO] SLF4J: See
http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[INFO] Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000fc360000, 327680, 0) failed; error='Cannot allocate memory' (errno=12)
[INFO] #
[INFO] # There is insufficient memory for the Java Runtime Environment to continue.
[INFO] # Native memory allocation (malloc) failed to allocate 327680 bytes for committing reserved memory.
[INFO] # An error report file with more information is saved as:
[INFO] # /home/hub/Iva/openhab_2/bundles/model/org.openhab.model.item/hs_err_pid6819.log
[ERROR] ExitStatusException occurred while running workflow: Java returned: 1
I can not google the 'os::commit_memory' reference but as I understand the first parameter is the start address for the memory allocation and this address does not exist in my system because I have just 1 Gb RAM.
Did anyone have this java issue? Any ideas for resolving it?
My free memory is:
hub@openhab:~/Iva/openhab_2$ free -b
total used free shared buffers cached
Mem: 1044041728 197939200 846102528 0 4116480 29581312
-/+ buffers/cache: 164241408 879800320
Swap: 0 0 0
My Maven options are:
hub@openhab:~/Iva/openhab_2$ echo $MAVEN_OPTS
-Xms128m -Xmx800m -XX:PermSize=256m -XX:MaxPermSize=512m
My Maven version info:
hub@openhab:~/Iva/openhab_2$ mvn -version
Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; 2014-12-14T17:29:23+00:00)
Maven home: /opt/apache-maven/apache-maven-3.2.5
Java version: 1.7.0_76, vendor: Oracle Corporation
Java home: /opt/java/jdk1.7.0_76/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.2.0-48-virtual", arch: "amd64", family: "unix"
Thanks