On 13/01/2020 16:31, jehan.procac...@imtbs-tsp.eu wrote:
> OK I have added 1more Giga , from 4G to 5G on my VM system
> 
> I raised export Xms to 512m and Xmx to 1024m and in 
> misc/build-runldap.xml reduce maxmemory=512M to 256M , now it fails 
> earlier !? :
> 
> [root@buildcentos7-64 lsc-2.2.0]# export MAVEN_OPTS="-Xms512m 
> -Xmx1024m"; mvn clean package -Popendj
> [INFO] Scanning for projects...
> [INFO]
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Building LDAP Synchronization Connector 2.2-SNAPSHOT
> [INFO] 
> ------------------------------------------------------------------------
> [WARNING] The POM for org.forgerock.ce.opendj:opendj-server:jar:2.6.2 is 
> missing, no dependency information available
> [INFO]
> [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ lsc-core ---
> [INFO] Deleting /home/builder/rpmbuild/BUILD/lsc-2.2.0/target
> [INFO]
> [INFO] --- maven-jaxb2-plugin:0.14.0:generate (default) @ lsc-core ---
> [INFO] Latest timestamp of the source resources is [2019-10-07 
> 19:46:00.000], earliest timestamp of the target resources is [2019-10-07 
> 19:46:00.000].
> [INFO] Sources are not up-to-date, XJC will be executed.
> [INFO] Episode file [/home/builder/rpmbuild/BUILD/lsc-2.2.0/lsc.episode] 
> was augmented with if-exists="true" attributes.
> [INFO]
> [INFO] --- build-helper-maven-plugin:1.7:add-source (add-source) @ 
> lsc-core ---
> [INFO] Source directory: 
> /home/builder/rpmbuild/BUILD/lsc-2.2.0/src/opendj/java added.
> [INFO]
> [INFO] --- build-helper-maven-plugin:1.7:add-resource (add-resource) @ 
> lsc-core ---
> [INFO]
> [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ 
> lsc-core ---
> [debug] execute contextualize
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 4 resources
> [INFO] Copying 1 resource
> [INFO]
> [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ 
> lsc-core ---
> [INFO] Compiling 139 source files to 
> /home/builder/rpmbuild/BUILD/lsc-2.2.0/target/classes
> OpenJDK 64-Bit Server VM warning: INFO: 
> os::commit_memory(0x00000000fd600000, 44040192, 0) failed; error='Cannot 
> allocate memory' (errno=12)
> #
> # There is insufficient memory for the Java Runtime Environment to continue.
> # Native memory allocation (mmap) failed to map 44040192 bytes for 
> committing reserved memory.
> # An error report file with more information is saved as:
> # /home/builder/rpmbuild/BUILD/lsc-2.2.0/hs_err_pid353.log
> 
> here are the result of your requested commands
> 
> [root@buildcentos7-64 lsc-2.2.0]# free -bh
>                total        used        free      shared buff/cache   
> available
> Mem:           5.1G         11M        5.0G         72K 49M        5.0G
> Swap:          512M          0B        512M
> 
> [root@buildcentos7-64 lsc-2.2.0]# java -XX:+PrintFlagsFinal -version | 
> grep "HeapSize"
>      uintx ErgoHeapSizeLimit                         = 
> 0                                   {product}
>      uintx HeapSizePerGCThread                       = 
> 87241520                            {product}
>      uintx InitialHeapSize                          := 
> 85983232                            {product}
>      uintx LargePageHeapSizeThreshold                = 
> 134217728                           {product}
>      uintx MaxHeapSize                              := 
> 1361051648                          {product}
> openjdk version "1.8.0_222"
> OpenJDK Runtime Environment (build 1.8.0_222-b10)
> OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode)
> 
> thanks .

The error you're having says that the server cannot allocate that much memory 
to java. So you need to lower memory consumption of build processes until your 
system can run them.

In the process of lowering xml, if you get error such as "Java heap space" it 
means you are too low. The error you're getting "There is insufficient memory 
for the Java Runtime Environment to continue." means you are still too high.

I was able to run successfully the maven build command if Xms/Xmx of 64m, and 
both maxmemory in misc/build-runldap.xml set to 32m. 
These settings should be low enough for your case.

Regards.
-- 
Soisik Froger | Software Architect

soisik.fro...@worteks.com

Worteks | https://www.worteks.com
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-users mailing list
lsc-users@lists.lsc-project.org
https://lists.lsc-project.org/cgi-bin/mailman/listinfo/lsc-users

Reply via email to