On 13/01/2020 15:32, jehan.procac...@imtbs-tsp.eu wrote:
> Hello,
> 
> I am still trying to compile LSC 2.2 as we desperatly need different 
> pivot attributes from src to dst
> 
> unfortunatly it fails compiling , always on memory allocation pb , cf 
> compilation below on centos 7 , with mvn 3.0.5 and openjdk 1.8 :
> 
> [root@buildcentos7-64 lsc-2.2.0]# mvn -v
> Apache Maven 3.0.5 (Red Hat 3.0.5-17)
> Maven home: /usr/share/maven
> Java version: 1.8.0_222, vendor: Oracle Corporation
> Java home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64/jre
> Default locale: en_US, platform encoding: ANSI_X3.4-1968
> OS name: "linux", version: "2.6.32-042stab141.3", arch: "amd64", family: 
> "unix"
> 
> Build:
> 
> [root@buildcentos7-64 lsc-2.2.0]# export MAVEN_OPTS="-Xms256m -Xmx256m"; 
> mvn clean package -Popendj
> ...
> [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) 
> @ lsc-core ---
> [INFO] Compiling 29 source files to 
> /home/builder/rpmbuild/BUILD/lsc-2.2.0/target/test-classes
> [INFO]
> [INFO] --- maven-antrun-plugin:1.3:run (startLdapServer) @ lsc-core ---
> [INFO] Executing tasks
> 
> startLdapServer:
>       [echo] Starting OpenDJ embedded server from 
> /home/builder/rpmbuild/BUILD/lsc-2.2.0/target/test-classes
>       [java] 14:18:58.949 [main] INFO  org.lsc.Configuration - Logging 
> configuration successfully loaded from 
> /home/builder/rpmbuild/BUILD/lsc-2.2.0/target/test-classes/etc/logback.xml
>       [java] 14:18:58.951 [main] INFO  org.lsc.Configuration - LSC 
> configuration successfully loaded from 
> /home/builder/rpmbuild/BUILD/lsc-2.2.0/target/test-classes/etc/
>       [java] #
>       [java] # There is insufficient memory for the Java Runtime 
> Environment to continue.
>       [java] # Native memory allocation (malloc) failed to allocate 
> 186736 bytes for Chunk::new
>       [java] # An error report file with more information is saved as:
>       [java] # 
> /home/builder/rpmbuild/BUILD/lsc-2.2.0/target/test-classes/hs_err_pid12481.log
>       [java] [thread 140471464605440 also had an error]
>       [java] [thread 140472208783104 also had an error]
>       [java] [thread 140472209835776 also had an error]
>       [java] [thread 140472215099136 also had an error]
>       [java] #
>       [java] # Compiler replay data is saved as:
>       [java] # 
> /home/builder/rpmbuild/BUILD/lsc-2.2.0/target/test-classes/replay_pid12481.log
>       [java] Java Result: 1
> [INFO] Executed tasks
> [INFO]
> [INFO] --- maven-surefire-plugin:2.11:test (default-test) @ lsc-core ---
> [INFO] Surefire report directory: 
> /home/builder/rpmbuild/BUILD/lsc-2.2.0/target/surefire-reports
> 
> -------------------------------------------------------
>   T E S T S
> -------------------------------------------------------
> Running org.lsc.persistence.DaoConfigTest
> 14:20:39.805 [main] INFO  org.lsc.Configuration - Logging configuration 
> successfully loaded from 
> /home/builder/rpmbuild/BUILD/lsc-2.2.0/target/test-classes/etc/logback.xml
> 14:20:39.810 [main] INFO  org.lsc.Configuration - LSC configuration 
> successfully loaded from 
> /home/builder/rpmbuild/BUILD/lsc-2.2.0/target/test-classes/etc/
> 14:20:40.170 [main] DEBUG o.l.c.JaxbXmlConfigurationHelper - Loading XML 
> configuration from: 
> /home/builder/rpmbuild/BUILD/lsc-2.2.0/target/test-classes/etc/lsc.xml
> 14:20:40.176 [main] DEBUG org.reflections.Reflections - going to scan 
> these urls:
> file:/home/builder/rpmbuild/BUILD/lsc-2.2.0/target/test-classes/
> file:/home/builder/rpmbuild/BUILD/lsc-2.2.0/target/classes/
> 14:20:40.210 [main] INFO  org.reflections.Reflections - Reflections took 
> 33 ms to scan 2 urls, producing 97 keys and 185 values
> 14:20:40.211 [main] DEBUG o.l.c.JaxbXmlConfigurationHelper - Importing 
> XML schema file: schemas/lsc-core-2.2.xsd
> 14:20:40.324 [main] INFO  org.lsc.Configuration - Logging configuration 
> successfully loaded from 
> /home/builder/rpmbuild/BUILD/lsc-2.2.0/target/test-classes/etc/logback.xml
> 14:20:40.325 [main] INFO  org.lsc.Configuration - LSC configuration 
> successfully loaded from 
> /home/builder/rpmbuild/BUILD/lsc-2.2.0/target/test-classes/etc/
> 14:20:40.327 [main] DEBUG org.lsc.persistence.DaoConfig - Reading 
> sql-map-config.xml from 
> file:/home/builder/rpmbuild/BUILD/lsc-2.2.0/target/test-classes/etc/sql-map-config.xml
> OpenJDK 64-Bit Server VM warning: INFO: 
> os::commit_memory(0x00000000ef600000, 66060288, 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 66060288 bytes for 
> committing reserved memory.
> # An error report file with more information is saved as:
> # 
> /home/builder/rpmbuild/BUILD/lsc-2.2.0/target/test-classes/hs_err_pid12527.log
> 
> Results :
> 
> Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
> 
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 1:56.793s
> [INFO] Finished at: Mon Jan 13 14:20:40 UTC 2020
> [INFO] Final Memory: 37M/228M
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-surefire-plugin:2.11:test (default-test) 
> on project lsc-core: Error occured in starting fork, check output in log 
> -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the 
> -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, 
> please read the following articles:
> [ERROR] [Help 1] 
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> 
> Any help appreciated .
> 
> Thanks .

Hi,

Could you try lowering the value of the opendj server process that is started 
by Maven during test phase.

Take a look at misc/build-runldap.xml. It currently uses up to 512M memory, try 
lower this value to match your system capacity (which seems very low btw).

If problem perist, could you send the results of below commands on the system 
you're running maven:

free -bh

java -XX:+PrintFlagsFinal -version | grep "HeapSize"

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