Forums / Developer / Uploading images via WebDAV = wasting harddisc space?

Uploading images via WebDAV = wasting harddisc space?

Author Message

Marco Zinn

Saturday 30 October 2004 10:18:35 am

Hi,
a long time ago, i posted a bug report (see http://ez.no/community/bug_reports/images_remain_in_images_versioned), because i think, there is a bug with image publishing: Files stay in images-versioned, even, after the image object is published.
I think "images-versioned" does not get cleaned of unneed files.

Now comes WebDAV: The folder /var/webdav/tmp get filled up with load of eZWebDAVUpload_xxxxx files, which don't seems to get removed.

I have a customer, who's using Webdav to upload images. The images are published immediatly (by WebDAV) and probably, 98% of them are never edited.

Now, this is the current harddisc usage:
var/corporate/storage/image is about 14MB large
var/corporate/storage/images-versioned is about 12MB large
var/corporate/storage/original is almost 0 (36kb)
var/webdav/root is 0
var/webdav/tmp is 67 MB large !!!!

I'm using ez 3.4.2 with Webdrive beeing the WebDAV client.

Please, someone tell me, how this SHOULD work, and if i can delete the var/webdav/tmp dir!

Shouldn't the WebDAV server part of ez _move_ the files from the webdav/tmp dir to somewhere in var/storage ?
Why is so much data in images-versioned, when we don't have loads of drafts?
Also refer to my bug report, as i think, there are 2 problems: One with a bad cleanup of files in images-versioned (see report) and one with the webdav's tmp dir.

Any comment? Is this a know bug?

Marco
http://www.hyperroad-design.com

Marco Zinn

Sunday 03 April 2005 6:57:36 am

Hi,
i'm kind of bumping this. We do have some ez 3.4 installations (3.4.4 or so), which make heavy use of image galleries.

Because of 2 bugs (i think, these ARE bugs), the harddisc usage is very huge: Webdav does not delete it's temp files (this is fixed in 3.5, but still open in 3.4).
Additionally, ez makes copies of (original) images files at every new version of the image object. And, as noone closed my bug reports, i'm almost sure, that ez also does not remove image files for deleted object versions.

See these bug reports.
http://ez.no/community/bugs/images_remain_in_images_versioned
http://ez.no/community/bugs/no_cleanup_for_image_attributes

So, my question to the users here: Does anyone use ez 3.4 for image galleries (with of without WebDAV) and has fixed these issues?

To the ezCrew: At least the WebDav tmp file issue is solved in 3.5 . Will you backport this eo ez 3.4? Maybe this has already been done, but we're using 3.4.4, rev. 9297, and this still has this bug.

Marco
http://www.hyperroad-design.com

eZ debug

Timing: Jan 31 2025 05:31:49
Script start
Timing: Jan 31 2025 05:31:49
Module start 'content'
Timing: Jan 31 2025 05:31:49
Module end 'content'
Timing: Jan 31 2025 05:31:49
Script end

Main resources:

Total runtime0.2753 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0087 588.0781180.8125
Module start 'content' 0.00870.0088 768.890693.9297
Module end 'content' 0.01760.2577 862.8203524.3750
Script end 0.2752  1,387.1953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00401.4618200.0002
Check MTime0.00150.5583200.0001
Mysql Total
Database connection0.00080.285510.0008
Mysqli_queries0.208575.71821410.0015
Looping result0.00150.54781390.0000
Template Total0.256893.310.2568
Template load0.00110.406810.0011
Template processing0.255792.870910.2557
Override
Cache load0.00070.266510.0007
Sytem overhead
Fetch class attribute can translate value0.00080.290610.0008
XML
Image XML parsing0.00040.163110.0004
General
dbfile0.01676.0681200.0008
String conversion0.00000.002930.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs