Memory allocation error via first 'mvn clean install'

1,669 views
Skip to first unread message

Yupiter Olympic

unread,
Jun 16, 2015, 11:01:40 AM6/16/15
to ope...@googlegroups.com
Hi all!

A have the problem with my first build of OpenHAB system.

My actions are:

1) git clone https://github.com/openhab/openhab.git
2) 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

Nathan Stratton

unread,
Jun 16, 2015, 11:46:28 AM6/16/15
to ope...@googlegroups.com
I use:

export MAVEN_OPTS="-Xms512m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m"
mvn -T 8 clean install


><>
nathan stratton | vp technology | broadsoft, inc | +1-240-404-6580 | www.broadsoft.com

On Tue, Jun 16, 2015 at 11:01 AM, Yupiter Olympic <alexey....@gmail.com> wrote:
Hi all!

A have the problem with my first build of OpenHAB system.

My actions are:

1) git clone https://github.com/openhab/openhab.git
2) 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

My Maven settings are:

hub@openhab:~/Iva/openhab_2$ echo $MAVEN_OPTS
-Xms128m -Xmx800m -XX:PermSize=256m -XX:MaxPermSize=512m

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

Any ideas?

Thanks

--
You received this message because you are subscribed to the Google Groups "openhab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.
To view this discussion on the web visit https://groups.google.com/d/msgid/openhab/b4274546-a049-4c45-bcf2-cf739102845b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages