maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Armbrust (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MASSEMBLY-774) too many open files
Date Fri, 19 Jun 2015 07:02:00 GMT

    [ https://issues.apache.org/jira/browse/MASSEMBLY-774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14593122#comment-14593122
] 

Dan Armbrust commented on MASSEMBLY-774:
----------------------------------------

Looks consistent:

{code}
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.5.5:single
(zip) on project snomed: Failed to create assembly: Error creating assembly archive all.cradle:
Problem creating zip: /mnt/STORAGE/Work/Apelon/Workspaces/ISAAC-Core-2/va-solor-goods/snomed/target/snomed-1.10-SNAPSHOT-all.data/object-chronicles/cradle/sememe/seg.1990.sememe.map
(Too many open files) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.5.5:single
(zip) on project snomed: Failed to create assembly: Error creating assembly archive all.cradle:
Problem creating zip: /mnt/STORAGE/Work/Apelon/Workspaces/ISAAC-Core-2/va-solor-goods/snomed/target/snomed-1.10-SNAPSHOT-all.data/object-chronicles/cradle/sememe/seg.1990.sememe.map
(Too many open files)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
        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:84)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:483)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to create assembly: Error
creating assembly archive all.cradle: Problem creating zip: /mnt/STORAGE/Work/Apelon/Workspaces/ISAAC-Core-2/va-solor-goods/snomed/target/snomed-1.10-SNAPSHOT-all.data/object-chronicles/cradle/sememe/seg.1990.sememe.map
(Too many open files)
        at org.apache.maven.plugin.assembly.mojos.AbstractAssemblyMojo.execute(AbstractAssemblyMojo.java:541)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
        ... 19 more
Caused by: org.apache.maven.plugin.assembly.archive.ArchiveCreationException: Error creating
assembly archive all.cradle: Problem creating zip: /mnt/STORAGE/Work/Apelon/Workspaces/ISAAC-Core-2/va-solor-goods/snomed/target/snomed-1.10-SNAPSHOT-all.data/object-chronicles/cradle/sememe/seg.1990.sememe.map
(Too many open files)
        at org.apache.maven.plugin.assembly.archive.DefaultAssemblyArchiver.createArchive(DefaultAssemblyArchiver.java:185)
        at org.apache.maven.plugin.assembly.mojos.AbstractAssemblyMojo.execute(AbstractAssemblyMojo.java:484)
        ... 21 more
Caused by: org.codehaus.plexus.archiver.ArchiverException: Problem creating zip: /mnt/STORAGE/Work/Apelon/Workspaces/ISAAC-Core-2/va-solor-goods/snomed/target/snomed-1.10-SNAPSHOT-all.data/object-chronicles/cradle/sememe/seg.1990.sememe.map
(Too many open files)
        at org.codehaus.plexus.archiver.AbstractArchiver.createArchive(AbstractArchiver.java:933)
        at org.apache.maven.plugin.assembly.archive.archiver.AssemblyProxyArchiver.createArchive(AssemblyProxyArchiver.java:437)
        at org.apache.maven.plugin.assembly.archive.DefaultAssemblyArchiver.createArchive(DefaultAssemblyArchiver.java:181)
        ... 22 more
Caused by: java.io.FileNotFoundException: /mnt/STORAGE/Work/Apelon/Workspaces/ISAAC-Core-2/va-solor-goods/snomed/target/snomed-1.10-SNAPSHOT-all.data/object-chronicles/cradle/sememe/seg.1990.sememe.map
(Too many open files)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:138)
        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:492)
        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:916)
        ... 24 more

{code}

> too many open files
> -------------------
>
>                 Key: MASSEMBLY-774
>                 URL: https://issues.apache.org/jira/browse/MASSEMBLY-774
>             Project: Maven Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.5.5
>            Reporter: Dan Armbrust
>
> I ran across this - http://mail-archives.apache.org/mod_mbox/maven-dev/201501.mbox/%3CA2EE0D04-04E3-4C99-8842-67346386200C@takari.io%3E
- and since I'm making huge zip files, I thought I would give it a try.
> I configured as:
>                 <plugin>
>                     <groupId>org.apache.maven.plugins</groupId>
>                     <artifactId>maven-assembly-plugin</artifactId>
>                     <version>2.5.5</version>
>                     <dependencies>
>                         <dependency>
>                             <groupId>org.codehaus.plexus</groupId>
>                             <artifactId>plexus-archiver</artifactId>
>                             <version>3.0.1</version>
>                         </dependency>
>                         <dependency>
>                             <groupId>org.codehaus.plexus</groupId>
>                             <artifactId>plexus-io</artifactId>
>                             <version>2.6</version>
>                         </dependency>
>                     </dependencies>
>                 </plugin>
> But this lead to a failure:
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.5.5:single
(zip) on project ... sememe/seg.3182.sememe.map (Too many open files) -> [Help 1]
> I certainly could raise my ulimit:
> darmbrust@overkill:/mnt/STORAGE/Work/Apelon/Workspaces/ISAAC-Core-2/va-solor-goods$ ulimit
-a
> ...
> open files                      (-n) 1024
> But it seems it would be better if the zip process limited itself to a reasonable number
of open files.  I don't know the algorithm... but it seems that double or triple the processor
count would be more than enough.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message