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

Here is more details :
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"

Using an Ubuntu 14.04 LTS 
MAVEN_OPTS=-Xmx1024m -XX:MaxPermSize=200m
JDK 7.
I've tried with this MAVEN_OPT(=-Xms512m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m) without any succes.

I'll search more deeply, but why it fails with tycho 23 and succed with tycho 22 ?

Thanks for your help

Vincent


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

Can you give Maven more memory, eg., with

MAVEN_OPTS=-Xms512m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m

Are you using JDK 8?

Are you on linux? If so, maybe it's a problem w/ your OS config:


http://stackoverflow.com/questions/20901518/ubuntu-too-many-open-files
http://stackoverflow.com/questions/9011772/too-many-open-files-error-but-lsof-shows-a-legal-number-of-open-files?rq=1

Or maybe it's a flaw in Tycho 0.23, leaking file descriptors?

http://stackoverflow.com/questions/2044672/ioexception-too-many-open-files?rq=1

On 06/09/2015 11:02 AM, Vincent GUIGNOT wrote:
> 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.buildProjec
> t(LifecycleModuleBuilder.java:116)
>
>          at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProjec
> t(LifecycleModuleBuilder.java:80)
>
>          at
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThrea
> dedBuilder.build(SingleThreadedBuilder.java:51)
>
>          at
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycle
> Starter.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.j
> ava:57)
>
>          at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
> orImpl.java:43)
>
>          at java.lang.reflect.Method.invoke(Method.java:606)
>
>          at
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launc
> her.java:289)
>
>          at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java
> :229)
>
>          at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Lau
> ncher.java:415)
>
>          at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:3
> 56)
>
> Caused by: org.apache.maven.plugin.MojoExecutionException: Error 
> packing product
>
>          at
> org.eclipse.tycho.plugins.p2.director.ProductArchiverMojo.execute(Prod
> uctArchiverMojo.java:142)
>
>          at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultB
> uildPluginManager.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/s
> re_parse.py
> (Too many open files)
>
>          at
> org.codehaus.plexus.archiver.AbstractArchiver.createArchive(AbstractAr
> chiver.java:1007)
>
>          at
> org.eclipse.tycho.plugins.p2.director.ProductArchiverMojo.execute(Prod
> uctArchiverMojo.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/s
> re_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.get
> Contents(PlexusIoFileResource.java:99)
>
>          at
> org.codehaus.plexus.components.io.resources.PlexusIoFileResource.getCo
> ntents(PlexusIoFileResource.java:124)
>
>          at
> org.codehaus.plexus.archiver.ArchiveEntry.getInputStream(ArchiveEntry.
> java:126)
>
>          at
> org.codehaus.plexus.archiver.zip.AbstractZipArchiver.zipFile(AbstractZ
> ipArchiver.java:491)
>
>          at
> org.codehaus.plexus.archiver.zip.AbstractZipArchiver.addResources(Abst
> ractZipArchiver.java:365)
>
>          at
> org.codehaus.plexus.archiver.zip.AbstractZipArchiver.createArchiveMain
> (AbstractZipArchiver.java:321)
>
>          at
> org.codehaus.plexus.archiver.zip.AbstractZipArchiver.execute(AbstractZ
> ipArchiver.java:222)
>
>          at
> org.codehaus.plexus.archiver.AbstractArchiver.createArchive(AbstractAr
> chiver.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
>

--
Nick Boldt :: http://nick.divbyzero.com
_______________________________________________
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