WebDAV with large files

This is a discussion on WebDAV with large files within the Apache forums in Application Servers & Tools category; Hi all I've installed Jackrabbit using jackrabbit-webapp-1.4.war and have been testing the 'repository/default/' WebDAV server. In particular, I decided to try uploading several large files. What I found was that when transferring ten files, each of about 10MiB, memory consumption jumped by 100MiB. This suggests that transfer of large files or large numbers of files is impossible! Is there a way to save 'blob' files to disk in a streaming way? Thanks Charlie...

Go Back   Application Development Forum > Application Servers & Tools > Apache

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 11-09-2008, 11:00 AM
Charles Brooking
Guest
 
Default WebDAV with large files

Hi all

I've installed Jackrabbit using jackrabbit-webapp-1.4.war and have been
testing the 'repository/default/' WebDAV server. In particular, I
decided to try uploading several large files.

What I found was that when transferring ten files, each of about 10MiB,
memory consumption jumped by 100MiB. This suggests that transfer of
large files or large numbers of files is impossible! Is there a way to
save 'blob' files to disk in a streaming way?

Thanks
Charlie

Reply With Quote
  #2  
Old 11-09-2008, 11:35 AM
Julian Reschke
Guest
 
Default Re: WebDAV with large files

Charles Brooking wrote:
> Hi all
>
> I've installed Jackrabbit using jackrabbit-webapp-1.4.war and have been
> testing the 'repository/default/' WebDAV server. In particular, I
> decided to try uploading several large files.
>
> What I found was that when transferring ten files, each of about 10MiB,
> memory consumption jumped by 100MiB. This suggests that transfer of
> large files or large numbers of files is impossible! Is there a way to
> save 'blob' files to disk in a streaming way?


Well, it really doesn't suggest that (yet) -- there's no guarantee that
garbage is collected until more memory is needed (at least that's my
understanding).

So, did you *try* uploading larger files (such as in: larger than
available memory)?

BR, Julian

Reply With Quote
  #3  
Old 11-10-2008, 02:00 AM
Charles Brooking
Guest
 
Default Re: WebDAV with large files

Julian Reschke wrote:
>> What I found was that when transferring ten files, each of about 10MiB,
>> memory consumption jumped by 100MiB. This suggests that transfer of
>> large files or large numbers of files is impossible! Is there a way to
>> save 'blob' files to disk in a streaming way?

>
> Well, it really doesn't suggest that (yet) -- there's no guarantee that
> garbage is collected until more memory is needed (at least that's my
> understanding).


Good point. They were very unscientific tests, but I thought it wouldn't
hurt to bounce them off the list. As it turns out, I have done some more
testing today and have been unable to reproduce the problem. (Maybe it was
too late at night and I was seeing things.)

I have just now transferred several files, each over 1GiB, and the Tomcat
java process stayed at around 60MiB resident memory (plus 370MiB virtual).
This was with CATALINA_OPTS='-Xmx128m'. The operating system used almost
all of the remaining memory as cache, but Tomcat itself was completely
steady.

I was careful before to disable all IO handlers, and I can't think of any
other reason memory would have blown out, but I'll keep an eye on things.
Hopefully this excellent performance will continue!

Later
Charlie


Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 06:36 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.