jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Morrell Jacobs <mjac...@maned.com>
Subject Re: no space left on device-exception by Property.getStream()
Date Fri, 12 Apr 2013 20:30:28 GMT
You might consider changing your garbage collection settings.  We were having some issues related
to memory usage with JackRabbit and this article on garbage collection was extremely helpful:

http://www.oracle.com/technetwork/java/javase/gc-tuning-6-140523.html

On Apr 12, 2013, at 12:22 PM, Ulrich <Forums@gombers.de> wrote:

> Yes, doesn't help either.
> 
> Julian Reschke <julian.reschke@gmx.de> hat am 12. April 2013 um 17:35
> geschrieben:
>> On 2013-04-12 00:21, Ulrich wrote:
>>> While retrieving lots of data in a loop from several nt:file nodes I always
>>> get a "no space left on device"-exception. The code is:
>>> Node filenode = Node.getNode("jcr:content");
>>> Property jcrdata = filenode.getProperty("jcr:data");
>>> InputStream is = jcrdata.getBinary().getStream();
>>> It seems that the InputStream is buffered somewhere for the current session
>>> and that the total buffer size for a session is limited. Is this true and if
>>> so, how can I control this size? Or is there an opportunity to free the
>>> space? I can probably close my session and open a new one but I would need
>>> to change the logic of my program,
>>> 
>>> Any hint is very welcome.
>> 
>> Did you try the dispose() method on the Binary instance?
>> 
>> Best regards, Julian
>> 


Mime
View raw message