Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Billion Laughs

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Dave Pawson <dave.pawson AT gmail.com>
  • To: XOM API for Processing XML with Java <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] Billion Laughs
  • Date: Sat, 3 May 2014 11:23:48 +0100

On 3 May 2014 10:42, Elliotte Rusty Harold <elharo AT ibiblio.org> wrote:

> Two more ideas:
>
> 1. Should the default limit be based somehow on available memory? and if so
> what? e.g. XX% of the heap size?
> 2. Is it plausible to simply catch an OutOfMemoryError in the Builder and
> clean up, or would the system be hosed enough at that point, that cleanup
> isn't reliable?

I'll leave 2 up to you, I have no idea how degraded the system is
when the out of memory error is raised.

Pareto? you raise the error at 80% of heap size, with clear error?

HTH

--
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk




Archive powered by MHonArc 2.6.24.

Top of Page