Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] 0.23.0: Problem creating zip

I've increased the fs.file-max to 2 000 000, double the memory of MAVEN_OPTS, but it fails when creating the zip...

Something new :
It works on windows with MAVEN_OPTS="-Xms512m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m"
Before it fails also on windows with Java heap space at the same phase (archive-products).

Windows :
Apache Maven 3.2.3 (33f8c3e1027c3ddde99d3cdebad2656a31e8fdf4; 2014-08-11T22:58:10+02:00)
Maven home: D:\applicationsfiles\ingenico\apache-maven-3.2.3\bin\..
Java version: 1.7.0_51, vendor: Oracle Corporation
Java home: D:\java\jdk1.7.0_51\jre
Default locale: fr_FR, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "x86", family: "windows"

Linux :
Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; 2014-12-14T18:29:23+01:00)
Maven home: /usr/share/maven
Java version: 1.7.0_76, vendor: Oracle Corporation
Java home: /opt/java/jdk1.7.0_76/jre
Default locale: fr_FR, platform encoding: UTF-8
OS name: "linux", version: "3.13.0-24-generic", arch: "amd64", family: "unix"

-----Message d'origine-----
De : tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] De la part de Sievers, Jan
Envoyé : mardi 9 juin 2015 17:44
À : Tycho user list
Objet : Re: [tycho-user] 0.23.0: Problem creating zip

might be caused by new plexus-archiver

https://bugs.eclipse.org/bugs/show_bug.cgi?id=461974

not sure if it's a bug.
It could be simply that you were always near the file handle limit and the algorithm changed slightly so you now exceed the limit.

on Linux, you can monitor open files with lsof, e.g.

watch 'lsof | wc -l'

you may want to check the limit

sysctl -a | grep fs.file-max

and increase it using sysctl -w

Regards
Jan






From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Vincent GUIGNOT
Sent: Dienstag, 9. Juni 2015 17:02
To: Tycho user list
Subject: [tycho-user] 0.23.0: Problem creating zip

Hello,
I'm trying to pass from tycho 0.22.0 to 0.23.0. The build fails with 0.23.0 on the archive-product goal from org.eclipse.tycho:tycho-p2-director-plugin:0.23.0:archive-products with error Too many open files.
It works when using 0.22.0 tycho version.


The files to be zipped are an Arm toolchain hosted on a fragment. The toolchain contains many files with many directories.


Error code are :
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.eclipse.tycho:tycho-p2-director-plugin:0.23.0:archive-products (archive-products) on project com.ingenico.ingedev.product.ui: Error packing product
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
        at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error packing product
        at org.eclipse.tycho.plugins.p2.director.ProductArchiverMojo.execute(ProductArchiverMojo.java:142)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
        ... 19 more
Caused by: org.codehaus.plexus.archiver.ArchiverException: Problem creating zip: /home/vguignot/git/xxxx/Products/xxxx/target/products/xxxx/win32/win32/x86/plugins/xxxx.bin.win32.tools_7.28.0.20150609/os/win32/tools/lib/sre_parse.py (Too many open files)
        at org.codehaus.plexus.archiver.AbstractArchiver.createArchive(AbstractArchiver.java:1007)
        at org.eclipse.tycho.plugins.p2.director.ProductArchiverMojo.execute(ProductArchiverMojo.java:139)
        ... 21 more
Caused by: java.io.FileNotFoundException: /home/vguignot/git/xxxx/Products/xxxx/target/products/xxxx/win32/win32/x86/plugins/xxxx.bin.win32.tools_7.28.0.20150609/os/win32/tools/lib/sre_parse.py (Too many open files)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:146)
        at org.codehaus.plexus.components.io.resources.PlexusIoFileResource$1.getContents(PlexusIoFileResource.java:99)
        at org.codehaus.plexus.components.io.resources.PlexusIoFileResource.getContents(PlexusIoFileResource.java:124)
        at org.codehaus.plexus.archiver.ArchiveEntry.getInputStream(ArchiveEntry.java:126)
        at org.codehaus.plexus.archiver.zip.AbstractZipArchiver.zipFile(AbstractZipArchiver.java:491)
        at org.codehaus.plexus.archiver.zip.AbstractZipArchiver.addResources(AbstractZipArchiver.java:365)
        at org.codehaus.plexus.archiver.zip.AbstractZipArchiver.createArchiveMain(AbstractZipArchiver.java:321)
        at org.codehaus.plexus.archiver.zip.AbstractZipArchiver.execute(AbstractZipArchiver.java:222)
        at org.codehaus.plexus.archiver.AbstractArchiver.createArchive(AbstractArchiver.java:990)
        ... 22 more
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/tycho-user


Back to the top