You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Nicolas De Loof <ni...@cgey.com> on 2003/12/04 09:55:49 UTC

maven site : "Too many open files"

Hello,

I get troubles generating doc-site in a (big) webapp : 

I get lot's of 

"Caught java.io.IOException: Too many open files processing xref/com...."



Caught java.io.IOException: Too many open files processing team-list.html
Exception Message: Too many open files

BUILD FAILED
File...... file:/C:/Documents and Settings/ndeloof/.maven/plugins/maven-linkchec
k-plugin-1.1/
Element... linkcheck:linkcheck
Line...... 73
Column.... 9
Too many open files
Total time: 27 minutes 10 seconds
Finished at: Thu Dec 04 09:29:04 CET 2003




How too make linkcheck work without opeing so much (?) files ?

Nico.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: maven site : "Too many open files"

Posted by Nicolas De Loof <ni...@cgey.com>.
I've tried to force FileReader to be closed adding this in jxr JavaFileImpl :

private Reader reader;

...

private void parse()
     throws IOException
{
    StreamTokenizer stok = null;
    try {
        stok = this.getTokenizer();

        (...)

    }
    finally {
        stok = null;
        if (this.reader != null) {
            this.reader.close();
        }
    }
}

private StreamTokenizer getTokenizer()
    throws IOException
{
    if (!new File(this.getFilename()).exists())
    {
        throw new IOException(this.getFilename() + " does not exist!");
    }
    this.reader = new FileReader(this.getFilename());

    (...)
}


It doesn't change anaything :

(...)
Caught java.io.IOException: Too many open files processing team-list.html
Exception Message: Too many open files

BUILD FAILED
File...... file:/C:/Documents and Settings/ndeloof/.maven/plugins/maven-linkchec
k-plugin-1.1/
Element... linkcheck:linkcheck
Line...... 73
Column.... 9
Impossible de crÚer un fichier dÚjÓ existant
Total time: 26 minutes 37 seconds
Finished at: Thu Dec 04 12:37:27 CET 2003

Nico.




----- Original Message ----- 
From: "Emmanuel Venisse" <em...@venisse.net>
To: "Maven Users List" <us...@maven.apache.org>
Sent: Thursday, December 04, 2003 11:12 AM
Subject: Re: maven site : "Too many open files"


> Hi,
>
> Some users have this problem with big project. I think it's due to jxr
> plugin that doesn't close stream in JavaFileImpl class in the parse method.
> I don't have time for correct this, but if you can try to write a patch for
> it  and test it with your big project, it will be cool.
>
> Emmanuel
>
> ----- Original Message ----- 
> From: "Nicolas De Loof" <ni...@cgey.com>
> To: "Maven Users List" <us...@maven.apache.org>
> Sent: Thursday, December 04, 2003 9:55 AM
> Subject: maven site : "Too many open files"
>
>
> > Hello,
> >
> > I get troubles generating doc-site in a (big) webapp :
> >
> > I get lot's of
> >
> > "Caught java.io.IOException: Too many open files processing xref/com...."
> >
> >
> >
> > Caught java.io.IOException: Too many open files processing team-list.html
> > Exception Message: Too many open files
> >
> > BUILD FAILED
> > File...... file:/C:/Documents and
> Settings/ndeloof/.maven/plugins/maven-linkchec
> > k-plugin-1.1/
> > Element... linkcheck:linkcheck
> > Line...... 73
> > Column.... 9
> > Too many open files
> > Total time: 27 minutes 10 seconds
> > Finished at: Thu Dec 04 09:29:04 CET 2003
> >
> >
> >
> >
> > How too make linkcheck work without opeing so much (?) files ?
> >
> > Nico.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: maven site : "Too many open files"

Posted by Emmanuel Venisse <em...@venisse.net>.
Hi,

Some users have this problem with big project. I think it's due to jxr
plugin that doesn't close stream in JavaFileImpl class in the parse method.
I don't have time for correct this, but if you can try to write a patch for
it  and test it with your big project, it will be cool.

Emmanuel

----- Original Message ----- 
From: "Nicolas De Loof" <ni...@cgey.com>
To: "Maven Users List" <us...@maven.apache.org>
Sent: Thursday, December 04, 2003 9:55 AM
Subject: maven site : "Too many open files"


> Hello,
>
> I get troubles generating doc-site in a (big) webapp :
>
> I get lot's of
>
> "Caught java.io.IOException: Too many open files processing xref/com...."
>
>
>
> Caught java.io.IOException: Too many open files processing team-list.html
> Exception Message: Too many open files
>
> BUILD FAILED
> File...... file:/C:/Documents and
Settings/ndeloof/.maven/plugins/maven-linkchec
> k-plugin-1.1/
> Element... linkcheck:linkcheck
> Line...... 73
> Column.... 9
> Too many open files
> Total time: 27 minutes 10 seconds
> Finished at: Thu Dec 04 09:29:04 CET 2003
>
>
>
>
> How too make linkcheck work without opeing so much (?) files ?
>
> Nico.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: maven site : "Too many open files"

Posted by Jason van Zyl <jv...@maven.org>.
On Thu, 2003-12-04 at 07:55, Joakim Erdfelt wrote:
> Nicolas De Loof wrote:
> > I get troubles generating doc-site in a (big) webapp : 
> > 
> > I get lot's of 
> > 
> > "Caught java.io.IOException: Too many open files processing xref/com...."
> 
> Move the jxr plugin to the top of the <reports> section in your 
> project.xml.  It worked for our 4500+ java file project.
> (and we are using Maven 1.0-rc1 on a solaris system)
> 
> It's not 100% jxr's fault, nearly all of the plugin's appear to leak
> file descriptors (according to solaris truss).  jxr is just 
> particullarly agressive with them.

It would be very, very cool if these little tidbits could be placed in
the FAQ. Any chance I can twist your arm into making some FAQ entries
that can be added.

> /* Joakim Erdfelt - Cingular Wireless */
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
-- 
jvz.

Jason van Zyl
jason@zenplex.com
http://tambora.zenplex.org

In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.
  
  -- Jacques Ellul, The Technological Society


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: maven site : "Too many open files"

Posted by Nicolas De Loof <ni...@cgey.com>.
That works !

I just had to disable linkcheck because I got OutOfMemory.

thanks.

Nico.



> Nicolas De Loof wrote:
> > I get troubles generating doc-site in a (big) webapp : 
> > 
> > I get lot's of 
> > 
> > "Caught java.io.IOException: Too many open files processing xref/com...."
> 
> Move the jxr plugin to the top of the <reports> section in your 
> project.xml.  It worked for our 4500+ java file project.
> (and we are using Maven 1.0-rc1 on a solaris system)
> 
> It's not 100% jxr's fault, nearly all of the plugin's appear to leak
> file descriptors (according to solaris truss).  jxr is just 
> particullarly agressive with them.
> 
> /* Joakim Erdfelt - Cingular Wireless */
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: maven site : "Too many open files"

Posted by Nicolas De Loof <ni...@cgey.com>.
Ca peut peut-etre aider  ...


----- Original Message ----- 
From: "Emmanuel Venisse" <em...@venisse.net>
To: "Maven Users List" <us...@maven.apache.org>
Sent: Thursday, December 04, 2003 3:58 PM
Subject: Re: maven site : "Too many open files"


> I'll apply the Nicolas patch for reduce a little open files.
> 
> Emmanuel
> 
> ----- Original Message ----- 
> From: "Joakim Erdfelt" <jo...@erdfelt.net>
> To: "Maven Users List" <us...@maven.apache.org>
> Sent: Thursday, December 04, 2003 1:55 PM
> Subject: Re: maven site : "Too many open files"
> 
> 
> > Nicolas De Loof wrote:
> > > I get troubles generating doc-site in a (big) webapp :
> > >
> > > I get lot's of
> > >
> > > "Caught java.io.IOException: Too many open files processing
> xref/com...."
> >
> > Move the jxr plugin to the top of the <reports> section in your
> > project.xml.  It worked for our 4500+ java file project.
> > (and we are using Maven 1.0-rc1 on a solaris system)
> >
> > It's not 100% jxr's fault, nearly all of the plugin's appear to leak
> > file descriptors (according to solaris truss).  jxr is just
> > particullarly agressive with them.
> >
> > /* Joakim Erdfelt - Cingular Wireless */
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org

Re: maven site : "Too many open files"

Posted by Emmanuel Venisse <em...@venisse.net>.
I'll apply the Nicolas patch for reduce a little open files.

Emmanuel

----- Original Message ----- 
From: "Joakim Erdfelt" <jo...@erdfelt.net>
To: "Maven Users List" <us...@maven.apache.org>
Sent: Thursday, December 04, 2003 1:55 PM
Subject: Re: maven site : "Too many open files"


> Nicolas De Loof wrote:
> > I get troubles generating doc-site in a (big) webapp :
> >
> > I get lot's of
> >
> > "Caught java.io.IOException: Too many open files processing
xref/com...."
>
> Move the jxr plugin to the top of the <reports> section in your
> project.xml.  It worked for our 4500+ java file project.
> (and we are using Maven 1.0-rc1 on a solaris system)
>
> It's not 100% jxr's fault, nearly all of the plugin's appear to leak
> file descriptors (according to solaris truss).  jxr is just
> particullarly agressive with them.
>
> /* Joakim Erdfelt - Cingular Wireless */
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: maven site : "Too many open files"

Posted by Joakim Erdfelt <jo...@erdfelt.net>.
Nicolas De Loof wrote:
> I get troubles generating doc-site in a (big) webapp : 
> 
> I get lot's of 
> 
> "Caught java.io.IOException: Too many open files processing xref/com...."

Move the jxr plugin to the top of the <reports> section in your 
project.xml.  It worked for our 4500+ java file project.
(and we are using Maven 1.0-rc1 on a solaris system)

It's not 100% jxr's fault, nearly all of the plugin's appear to leak
file descriptors (according to solaris truss).  jxr is just 
particullarly agressive with them.

/* Joakim Erdfelt - Cingular Wireless */


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org