continuum-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivo van Dongen <...@func.nl>
Subject Re: Exception in large maven2 build: Too many open files
Date Thu, 19 Apr 2007 15:23:37 GMT
Hi,

Thanks for the quick reply. So this is a known issue? Is there some way 
around this? The silly thing is that on my dev machine the thing builds 
just fine, but the build server has a problem (ubuntu 6.0.6 vs debian 
stable).

Regards,
Ivo
> It seems to be a bug in plexus-archiver.
> I see only one solution, look at plexus-archiver code and fix it to 
> close files that aren't closed.
>
> Emmanuel
>
> Ivo van Dongen a écrit :
>> Hi,
>>
>> We ran into a problem with a large maven2 build. In the last stages 
>> of the build (creating the war) an exception is thrown saying that 
>> there are too many open files. We're using continuum 1.0.3 on a 
>> debian (stable) server. We've already upped the system/process file 
>> handle limits.
>> The last part of the maven output:
>>
>> [INFO] [war:war] [INFO] Exploding webapp... [INFO] Copy webapp 
>> webResources to 
>> /opt/continuum-1.0.3/apps/continuum/working-directory/55/target/ROOT 
>> [INFO] Copy webapp webResources to 
>> /opt/continuum-1.0.3/apps/continuum/working-directory/55/target/ROOT 
>> [INFO] Assembling webapp tesis in 
>> /opt/continuum-1.0.3/apps/continuum/working-directory/55/target/ROOT 
>> [INFO] Generating war 
>> /opt/continuum-1.0.3/apps/continuum/working-directory/55/target/ROOT.war 
>> [INFO] Building war: 
>> /opt/continuum-1.0.3/apps/continuum/working-directory/55/target/ROOT.war 
>> [INFO] 
>> ------------------------------------------------------------------------ 
>> [ERROR] BUILD ERROR [INFO] 
>> ------------------------------------------------------------------------ 
>> [INFO] Error assembling WAR: Problem creating war: 
>> /opt/continuum-1.0.3/apps/continuum/working-directory/55/target/ROOT/WEB-INF/lib/XmlSchema-1.1.jar

>> (Too many open files) [INFO] 
>> ------------------------------------------------------------------------ 
>> [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: 
>> Error assembling WAR: Problem creating war: 
>> /opt/continuum-1.0.3/apps/continuum/working-directory/55/target/ROOT/WEB-INF/lib/XmlSchema-1.1.jar

>> (Too many open files) at 
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)

>> at 
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)

>> at 
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)

>> at 
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)

>> at 
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)

>> at 
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)

>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at 
>> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at 
>> org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at 
>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
>> at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

>> at java.lang.reflect.Method.invoke(Method.java:585) at 
>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) 
>> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at 
>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) 
>> at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused 
>> by: org.apache.maven.plugin.MojoExecutionException: Error assembling 
>> WAR: Problem creating war: 
>> /opt/continuum-1.0.3/apps/continuum/working-directory/55/target/ROOT/WEB-INF/lib/XmlSchema-1.1.jar

>> (Too many open files) at 
>> org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:149) at 
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)

>> at 
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)

>> ... 16 more Caused by: 
>> org.codehaus.plexus.archiver.ArchiverException: Problem creating war: 
>> /opt/continuum-1.0.3/apps/continuum/working-directory/55/target/ROOT/WEB-INF/lib/XmlSchema-1.1.jar

>> (Too many open files) at 
>> org.codehaus.plexus.archiver.zip.AbstractZipArchiver.createArchiveMain(AbstractZipArchiver.java:403)

>> at 
>> org.codehaus.plexus.archiver.zip.AbstractZipArchiver.createArchive(AbstractZipArchiver.java:229)

>> at 
>> org.apache.maven.archiver.MavenArchiver.createArchive(MavenArchiver.java:332) 
>> at 
>> org.apache.maven.plugin.war.WarMojo.performPackaging(WarMojo.java:183) 
>> at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:133) ... 
>> 18 more Caused by: java.io.FileNotFoundException: 
>> /opt/continuum-1.0.3/apps/continuum/working-directory/55/target/ROOT/WEB-INF/lib/XmlSchema-1.1.jar

>> (Too many open files) at java.io.FileInputStream.open(Native Method) 
>> at java.io.FileInputStream.(FileInputStream.java:106) at 
>> org.codehaus.plexus.archiver.zip.AbstractZipArchiver.zipFile(AbstractZipArchiver.java:679)

>> at 
>> org.codehaus.plexus.archiver.zip.AbstractZipArchiver.addResources(AbstractZipArchiver.java:492)

>> at 
>> org.codehaus.plexus.archiver.zip.AbstractZipArchiver.createArchiveMain(AbstractZipArchiver.java:330)

>> ... 22 more [INFO] 
>> ------------------------------------------------------------------------ 
>> [INFO] Total time: 3 minutes 54 seconds [INFO] Finished at: Thu Apr 
>> 19 14:26:45 CEST 2007 [INFO] Final Memory: 106M/209M [INFO] 
>> ------------------------------------------------------------------------
>>
>>
>> Any suggestions?
>>
>> Thanks in advance,
>> Ivo van Dongen
>>
>> PS I've filed a JIRA issue: 
>> http://jira.codehaus.org/browse/CONTINUUM-1247
>>
>


-- 
Ivo van Dongen
Func. Internet Integration
Prins Hendrikkade 20-21, 1012 TL Amsterdam
W http://www.func.nl
T +31 20 4230000
F +31 20 4223500 


Mime
View raw message