cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hugh Field-Richards <h.field-richa...@eris.qinetiq.com>
Subject Re: No lucene, but "Too many open files"
Date Tue, 12 Oct 2004 13:19:17 GMT
Hi

I have had a similar problem running on a Linux box. I tried changing
the open files limit (ulimit -n) from 1024 to 2048 but it seemed to make
no difference at all.
	Mandrake Linux 9.1
	Java build 1.4.2_03-b02
	Apache 2.0.47
	Tomcat 4.1.27-2
	Cocoon  2.1.5.1
	xalan 2.5.2
	xerces 2.6.1
	open file size is 1024

I have run the same site on an Apple G5:
	Darwin Kernel Version 7.5.0 (BSD Unix)
	Java build 1.4.2_05-141.3
	Apache 2.0.52
	Tomcat 4.1.24
	Cocoon  2.1.5.1
	xalan 2.5.2
	xerces 2.6.1
	open file size is 256

There is absolutely no problem with it running here. I have run it
for hours at high levels of stress and there were no errors
reported at all. Very curious.

Forcing the Linux based system to use endorsed jar files for the
latest xalan/xerces instead of the Java supplied ones (which
seemed to be the same version anyway) did not give any
noticeable improvement.

Unfortunately I cannot use aggregation as I too am taking variable
file names into document(...) calls in the XSL. I can only suggest that
replacing the XSLT transformer that requires variable document calls
with a special Java transformer may remove the problem.

Hugh F-R



Dr Hugh S. Field-Richards
QinetiQ, St Andrew's Road, Malvern, Worcs, WR14 3PS, UK
Tel: ++1684 895075   Fax: ++1684 896113
Email: h.field-richards@eris.qinetiq.com

The views expressed above area are entirely those of the writer and
do not represent the views, policy or understanding of any other
person or official body.


On 20 Sep 2004, at 10:29, Huber, Daniel wrote:

>> What flavour/version of linux are you using? We had a similar
>> problem on some older versions of redhat, but found that for
>> some reason it didn't occur on our boxes running redhat WS 3.0.
>> We installed the newer OS on the offending boxes and haven't
>> had the problem since. It's not an ideal solution for your
>> problem, but might be something worth looking at.
>
> Currently it's some kind of SuSE (2.4.20-64GB-SMP). But it is 
> definitely
> not an issue of the operation system. I can run the whole system on
> Windows, where I see the same dangling file handles. The only cause why
> the problem does not get visible on Windows is that there is no
> default-limit of 1024 for open files per process.
>
> The effect you experienced might be due to other default-settings
> (ulimit) on the other distribution you used.
>
>
> I decided to do two things now:
> First, I will assure that there is no older Xalan/Xerces version in the
> classpath.
> Second if the problem can't be fixed with Xalan, I will try to replace
> the usage of xpath's document() function with Cocoon's Xinclude
> transformer where possible.
>
>
> Thank you for your hints.
>
> Regards,
>
> Daniel
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>

Mime
View raw message