You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Greg Schueler <gr...@dtosolutions.com> on 2009/09/30 20:52:28 UTC

webdav webapp is not relinquishing disk space

Hi, we are using the webdav webapp (jackrabbit-webapp-1.5.5.war) configured
with the FileDataStore.  We have noticed that files that are deleted from
WebDAV do not seem to relinquish any disk space on the server.

This page indicates that Garbage collection must be done manually in code:
http://wiki.apache.org/jackrabbit/DataStore

Is this why disk space does not seem to be recovered?  Is there a way to
configure the webapp to do this automatically?

Thanks,

Greg Schueler
http://wiki.controltier.org

Re: webdav webapp is not relinquishing disk space

Posted by Greg Schueler <gr...@dtosolutions.com>.
added issue:

https://issues.apache.org/jira/browse/JCR-2349

On Mon, Oct 5, 2009 at 1:50 AM, Thomas Müller <th...@day.com>wrote:

> Hi,
>
> > Thanks, I have actually just created a simple jsp file to drop in along
> with
> > the other .jsps in the webdav webapp that will let the garbage collection
> be
> > performed on demand.
>
> That would be helpful for others as well... If you like to share this
> jsp page, please create a Jackrabbit issue and attach the jsp page
> there ('Attach file' / 'Grant license to ASF for inclusion ...'):
> https://issues.apache.org/jira/browse/JCR
>
> Regards,
> Thomas
>
>
> >
> > On Fri, Oct 2, 2009 at 12:21 AM, Thomas Müller <thomas.mueller@day.com
> >wrote:
> >
> >> Hi,
> >>
> >> >  what is the simplest solution to invoking the garbage collection?
> >>
> >> See http://wiki.apache.org/jackrabbit/DataStore - Running Data Store
> >> Garbage Collection (Jackrabbit 1.x)
> >>
> >> The Jackrabbit 1.x example doesn't work with the current Jackrabbit
> >> 2.0 (not even when using the snapshot). I will fix that.
> >>
> >> > Do I have to modify the existing webapp/servlet code to add this
> custom
> >> > service and rebuild it?
> >>
> >> Yes
> >>
> >> > is it possible to do this via RMI?
> >>
> >> No, currently not.
> >>
> >> Regards,
> >> Thomas
> >>
> >
>

Re: webdav webapp is not relinquishing disk space

Posted by Thomas Müller <th...@day.com>.
Hi,

> Thanks, I have actually just created a simple jsp file to drop in along with
> the other .jsps in the webdav webapp that will let the garbage collection be
> performed on demand.

That would be helpful for others as well... If you like to share this
jsp page, please create a Jackrabbit issue and attach the jsp page
there ('Attach file' / 'Grant license to ASF for inclusion ...'):
https://issues.apache.org/jira/browse/JCR

Regards,
Thomas


>
> On Fri, Oct 2, 2009 at 12:21 AM, Thomas Müller <th...@day.com>wrote:
>
>> Hi,
>>
>> >  what is the simplest solution to invoking the garbage collection?
>>
>> See http://wiki.apache.org/jackrabbit/DataStore - Running Data Store
>> Garbage Collection (Jackrabbit 1.x)
>>
>> The Jackrabbit 1.x example doesn't work with the current Jackrabbit
>> 2.0 (not even when using the snapshot). I will fix that.
>>
>> > Do I have to modify the existing webapp/servlet code to add this custom
>> > service and rebuild it?
>>
>> Yes
>>
>> > is it possible to do this via RMI?
>>
>> No, currently not.
>>
>> Regards,
>> Thomas
>>
>

Re: webdav webapp is not relinquishing disk space

Posted by Greg Schueler <gr...@dtosolutions.com>.
Thanks, I have actually just created a simple jsp file to drop in along with
the other .jsps in the webdav webapp that will let the garbage collection be
performed on demand.


On Fri, Oct 2, 2009 at 12:21 AM, Thomas Müller <th...@day.com>wrote:

> Hi,
>
> >  what is the simplest solution to invoking the garbage collection?
>
> See http://wiki.apache.org/jackrabbit/DataStore - Running Data Store
> Garbage Collection (Jackrabbit 1.x)
>
> The Jackrabbit 1.x example doesn't work with the current Jackrabbit
> 2.0 (not even when using the snapshot). I will fix that.
>
> > Do I have to modify the existing webapp/servlet code to add this custom
> > service and rebuild it?
>
> Yes
>
> > is it possible to do this via RMI?
>
> No, currently not.
>
> Regards,
> Thomas
>

Re: webdav webapp is not relinquishing disk space

Posted by Thomas Müller <th...@day.com>.
Hi,

>  what is the simplest solution to invoking the garbage collection?

See http://wiki.apache.org/jackrabbit/DataStore - Running Data Store
Garbage Collection (Jackrabbit 1.x)

The Jackrabbit 1.x example doesn't work with the current Jackrabbit
2.0 (not even when using the snapshot). I will fix that.

> Do I have to modify the existing webapp/servlet code to add this custom
> service and rebuild it?

Yes

> is it possible to do this via RMI?

No, currently not.

Regards,
Thomas

Re: webdav webapp is not relinquishing disk space

Posted by Greg Schueler <gr...@dtosolutions.com>.
Ok, for installations that have already been configured to use the
FileDataStore, what is the simplest solution to invoking the garbage
collection?  It's not clear to me how I can go about doing that.
Do I have to modify the existing webapp/servlet code to add this custom
service and rebuild it? or is it possible to do this via RMI?
On Wed, Sep 30, 2009 at 2:58 PM, Alexander Klimetschek <ak...@day.com>wrote:

> On Wed, Sep 30, 2009 at 22:04, Greg Schueler <gr...@dtosolutions.com>
> wrote:
> > I see, so as it stands the webdav webapp cannot really be used
> "standalone"
> > as a simple file based WebDAV repository solution, because it requires
> > custom code to in actualy delete files?
>
> You don't have to use the data store - you can use a bundle
> persistence manager only, with eg. blob store option on. The data
> store is optimized for the typical content repository case, where
> deletions are seldom and things are kept/archived for a long(er) time.
>
>
> Regards,
> Alex
>
> --
> Alexander Klimetschek
> alexander.klimetschek@day.com
>

Re: webdav webapp is not relinquishing disk space

Posted by Alexander Klimetschek <ak...@day.com>.
On Wed, Sep 30, 2009 at 22:04, Greg Schueler <gr...@dtosolutions.com> wrote:
> I see, so as it stands the webdav webapp cannot really be used "standalone"
> as a simple file based WebDAV repository solution, because it requires
> custom code to in actualy delete files?

You don't have to use the data store - you can use a bundle
persistence manager only, with eg. blob store option on. The data
store is optimized for the typical content repository case, where
deletions are seldom and things are kept/archived for a long(er) time.


Regards,
Alex

-- 
Alexander Klimetschek
alexander.klimetschek@day.com

Re: webdav webapp is not relinquishing disk space

Posted by Greg Schueler <gr...@dtosolutions.com>.
I see, so as it stands the webdav webapp cannot really be used "standalone"
as a simple file based WebDAV repository solution, because it requires
custom code to in actualy delete files?

On Wed, Sep 30, 2009 at 12:59 PM, Alexander Klimetschek <ak...@day.com>wrote:

> On Wed, Sep 30, 2009 at 20:52, Greg Schueler <gr...@dtosolutions.com>
> wrote:
> > Hi, we are using the webdav webapp (jackrabbit-webapp-1.5.5.war)
> configured
> > with the FileDataStore.  We have noticed that files that are deleted from
> > WebDAV do not seem to relinquish any disk space on the server.
> >
> > This page indicates that Garbage collection must be done manually in
> code:
> > http://wiki.apache.org/jackrabbit/DataStore
> >
> > Is this why disk space does not seem to be recovered?
>
> Yes.
>
> >Is there a way to configure the webapp to do this automatically?
>
> No, afaik not. You need to add your custom background service/thread
> to run garbage collection when needed (eg. every night).
>
> Regards,
> Alex
>
> --
> Alexander Klimetschek
> alexander.klimetschek@day.com
>

Re: webdav webapp is not relinquishing disk space

Posted by Alexander Klimetschek <ak...@day.com>.
On Wed, Sep 30, 2009 at 20:52, Greg Schueler <gr...@dtosolutions.com> wrote:
> Hi, we are using the webdav webapp (jackrabbit-webapp-1.5.5.war) configured
> with the FileDataStore.  We have noticed that files that are deleted from
> WebDAV do not seem to relinquish any disk space on the server.
>
> This page indicates that Garbage collection must be done manually in code:
> http://wiki.apache.org/jackrabbit/DataStore
>
> Is this why disk space does not seem to be recovered?

Yes.

>Is there a way to configure the webapp to do this automatically?

No, afaik not. You need to add your custom background service/thread
to run garbage collection when needed (eg. every night).

Regards,
Alex

-- 
Alexander Klimetschek
alexander.klimetschek@day.com