Sandaysoft

Support forum for Cumulus weather station software
It is currently Thu Jun 20, 2013 12:17 am
Please click here before posting. Help me to help you!
Useful Links: Cumulus FAQ • Enhancement requests • Wiki (documentation)
Please put your approximate location into your profile
Add your web site to the Cumulus user map
Vantage Pro2 users with firmware 3.00 should upgrade to fw 3.12 and Cumulus 1.9.4

All times are UTC




Post new topic Reply to topic  [ 24 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Excessive monthly upload figure but what's causing it?
PostPosted: Tue Jan 31, 2012 6:51 pm 
Offline

Joined: Wed May 06, 2009 6:29 pm
Posts: 1734
Location: Cheadle Hulme, Cheshire, England
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
For the last two months I've received an automated email from the host of my website advising I've used 80% of my monthly allocation of 3Gb. As it was sent very close to the end of the month I didn't query it especially as in one of the months I was uploading a lot of NOAA files.

However, after receiving a warning 2 days ago I wrote asking why it would be so high when I haven't done anything special. I did have some days when I had over 100 hits and wondered if that was the problem. It seems not as this was the reply...

I've had a quick look at this months stats and 2Gb is taken up by FTP traffic (you/Cumulus uploading) and 0.5Gb is HTTP traffic (people visiting your web site).

I've had a look at stats for other Cumulus sites I host and they see to use about 0.5Gb in uploading per month. They generate around 16Mb of FTP uploads each day whereas you are 60+Mb. Is there anything else the Cumulus PC is uploading regularly?


I'm uploading 4 times the data of other Cumulus sites but I'm at a loss as to what the problem is. Here is a screenshot of my web uploads screen.
Attachment:
Cumulus_Webfiles.jpg

And here are the files on the server that are updated every 10 minutes.
Attachment:
ServerFiles.jpg


I also use Mark Crossley's steel gauges but I'm not sure if they're heavy on webspace.

Any advice appreciated.


You do not have the required permissions to view the files attached to this post.

_________________
Cheers,
Ray, Cheshire.

Image


Top
 Profile  
 
 Post subject: Re: Excessive monthly upload figure but what's causing it?
PostPosted: Tue Jan 31, 2012 8:57 pm 
Offline
User avatar

Joined: Thu Jan 07, 2010 9:44 pm
Posts: 2596
Location: Wilmslow, Cheshire, UK
Weather Station: Davis VP2
Operating System: XP SP3, Win 7
What are your realtime and upload intervals set to Ray?
And what is the size of the webtags.php file?

_________________
Mark
Wilmslow Astro Weather


Top
 Profile  
 
 Post subject: Re: Excessive monthly upload figure but what's causing it?
PostPosted: Tue Jan 31, 2012 9:23 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17835
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
realtime.txt + realtimegauges.txt = approx 1600 bytes every 30 seconds = 143 MB/month
html/php pages = approx 50 KB every 10 minutes = 220 MB/month
images (graphs etc) = approx 400 KB every 10 minutes = 1785 MB/month

Total = approx 2200 MB/month = approx 2GB/month

_________________
Steve
Sanday Weather
----------------------------------------------------------------------------------------------------------------------------------
Like Cumulus and want to support it? Please donate! Image


Top
 Profile  
 
 Post subject: Re: Excessive monthly upload figure but what's causing it?
PostPosted: Tue Jan 31, 2012 9:24 pm 
Offline
User avatar

Joined: Thu Jan 07, 2010 9:44 pm
Posts: 2596
Location: Wilmslow, Cheshire, UK
Weather Station: Davis VP2
Operating System: XP SP3, Win 7
It's OK Ray, I got your intervals from your web site, I assumed your cumuluswebtags.php is a similar size to mine. A quick calculation shows...
Edit: Error in original calc!
Code:
                 Per day (MB)  Per week (MB)  Per month (GB)   
Realtime             4.4           31.0               0.1   
Updates             77.0           539.3              2.3   
Total               81.5           570.3              2.4


So you need to look at those big files uploaded every 10 minutes. You can get rid of the gauges-ss.htm by just replacing the tags with the hard coded values - there is nothing really dynamic in there.

Also you are uploading the same raw data multiple times, you could look at rationalising that.

_________________
Mark
Wilmslow Astro Weather


Last edited by mcrossley on Thu Feb 02, 2012 8:59 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Excessive monthly upload figure but what's causing it?
PostPosted: Tue Jan 31, 2012 9:38 pm 
Offline
User avatar

Joined: Thu Jan 07, 2010 9:44 pm
Posts: 2596
Location: Wilmslow, Cheshire, UK
Weather Station: Davis VP2
Operating System: XP SP3, Win 7
Just upping your upload time to 15 minutes will bring the total down to around 1.6GB.
Attachment:
rays-uploads.xlsx


You do not have the required permissions to view the files attached to this post.

_________________
Mark
Wilmslow Astro Weather


Top
 Profile  
 
 Post subject: Re: Excessive monthly upload figure but what's causing it?
PostPosted: Tue Jan 31, 2012 10:29 pm 
Offline

Joined: Wed May 06, 2009 6:29 pm
Posts: 1734
Location: Cheadle Hulme, Cheshire, England
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
mcrossley wrote:
What are your realtime and upload intervals set to Ray?
And what is the size of the webtags.php file?

Thanks for the replies Mark. I'm not getting a mail advising of replies.

My webtags.php is 49,406. Seems reasonable. Updates at 10mins as you found out.

_________________
Cheers,
Ray, Cheshire.

Image


Top
 Profile  
 
 Post subject: Re: Excessive monthly upload figure but what's causing it?
PostPosted: Tue Jan 31, 2012 10:34 pm 
Offline

Joined: Wed May 06, 2009 6:29 pm
Posts: 1734
Location: Cheadle Hulme, Cheshire, England
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
steve wrote:
realtime.txt + realtimegauges.txt = approx 1600 bytes every 30 seconds = 143 MB/month
html/php pages = approx 50 KB every 10 minutes = 220 MB/month
images (graphs etc) = approx 400 KB every 10 minutes = 1785 MB/month

Total = approx 2200 MB/month = approx 2GB/month


Thank you Steve, much appreciated. I may need to switch to a 15 min interval.

_________________
Cheers,
Ray, Cheshire.

Image


Top
 Profile  
 
 Post subject: Re: Excessive monthly upload figure but what's causing it?
PostPosted: Tue Jan 31, 2012 10:41 pm 
Offline

Joined: Wed May 06, 2009 6:29 pm
Posts: 1734
Location: Cheadle Hulme, Cheshire, England
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
mcrossley wrote:
So you need to look at those big files uploaded every 10 minutes. You can get rid of the gauges-ss.htm by just replacing the tags with the hard coded values - there is nothing really dynamic in there.

By tags do you mean the location, lat, lon and altitude ones? I guess so as that's what I did with my season averages page.

Quote:
Also you are uploading the same raw data multiple times, you could look at rationalising that.

Sorry, which raw data. :oops:

_________________
Cheers,
Ray, Cheshire.

Image


Top
 Profile  
 
 Post subject: Re: Excessive monthly upload figure but what's causing it?
PostPosted: Tue Jan 31, 2012 11:39 pm 
Offline

Joined: Wed May 06, 2009 6:29 pm
Posts: 1734
Location: Cheadle Hulme, Cheshire, England
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
Hi Mark,

I've copied gauges-ss.htm from the server to my hard drive and replaced the location, lat, lon and altitude tags with actual values but after I save it and upload it to the server the gauges remain at zero and no updating takes place.

For now I've reinstated the processing of gauges-ssT.htm but if you could offer any pointers as to why it didn't work I'd appreciate it.

_________________
Cheers,
Ray, Cheshire.

Image


Top
 Profile  
 
 Post subject: Re: Excessive monthly upload figure but what's causing it?
PostPosted: Wed Feb 01, 2012 12:19 am 
Offline
User avatar

Joined: Sun Jun 13, 2010 11:44 pm
Posts: 102
Location: Audley Staffordshire UK
Weather Station: WH1081
Operating System: Windows XP Home SP3
Hi Ray
This happened to me, it looks like your scripts are in the wrong place, check the code in the gauges page for the correct path. Or just put all the scripts in the same place as the gauges-ss.htm and also into the scripts folder and see if that works.

_________________
Mark

Image


Top
 Profile  
 
 Post subject: Re: Excessive monthly upload figure but what's causing it?
PostPosted: Wed Feb 01, 2012 9:02 am 
Offline
User avatar

Joined: Thu Jan 07, 2010 9:44 pm
Posts: 2596
Location: Wilmslow, Cheshire, UK
Weather Station: Davis VP2
Operating System: XP SP3, Win 7
RayProudfoot wrote:
Hi Mark,

I've copied gauges-ss.htm from the server to my hard drive and replaced the location, lat, lon and altitude tags with actual values
Why would you do that Ray? (probably because my comment above implied it :roll: ) You already have a 'processed' version of the page on your web server, all you need to do is remove the tick in Cumulus for 'FTP'. Then if the template gets updated again, all you need to do is re-enable FTP, once the updated page has uploaded to your server stop it FTP'ing again :D
RayProudfoot wrote:
but after I save it and upload it to the server the gauges remain at zero and no updating takes place.

For now I've reinstated the processing of gauges-ssT.htm but if you could offer any pointers as to why it didn't work I'd appreciate it.
No idea without taking a look at it, my gauge page is static and manually maintained (as it is a little different from the sample page I supply in the download). But as I outlined above, you don't actually need to edit the file at all.

_________________
Mark
Wilmslow Astro Weather


Top
 Profile  
 
 Post subject: Re: Excessive monthly upload figure but what's causing it?
PostPosted: Wed Feb 01, 2012 5:12 pm 
Offline

Joined: Wed May 06, 2009 6:29 pm
Posts: 1734
Location: Cheadle Hulme, Cheshire, England
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
mcrossley wrote:
Why would you do that Ray? (probably because my comment above implied it :roll: ) You already have a 'processed' version of the page on your web server, all you need to do is remove the tick in Cumulus for 'FTP'. Then if the template gets updated again, all you need to do is re-enable FTP, once the updated page has uploaded to your server stop it FTP'ing again :D

The solution was so obvious I completely missed it! I've now unchecked FTP for that file and I shoudl know if it's okay in the next few minutes. Your second response is now redundant after doing the above.

To Tau Bootis (Mark), thanks for your suggestion but the simpler one is to do as Mark in Wilmslow suggests. Thanks all the same.

I've asked my web host a few times if there are any tools available to me so I can see how my monthly allowance is doing but haven't had an answer. Are any available or do you actually have to be the host before you can analyse the throughput? Having made these changes I'd like to know if they've made any difference without bothering my web host.

_________________
Cheers,
Ray, Cheshire.

Image


Top
 Profile  
 
 Post subject: Re: Excessive monthly upload figure but what's causing it?
PostPosted: Thu Feb 02, 2012 12:59 am 
Offline
User avatar

Joined: Sun Jun 13, 2010 11:44 pm
Posts: 102
Location: Audley Staffordshire UK
Weather Station: WH1081
Operating System: Windows XP Home SP3
Quote:
I've asked my web host a few times if there are any tools available to me so I can see how my monthly allowance is doing but haven't had an answer. Are any available or do you actually have to be the host before you can analyse the throughput? Having made these changes I'd like to know if they've made any difference without bothering my web host.


Try NetWorx Its free and should be just what you need.

http://www.v3.co.uk/articles/download_t ... 384#thanks

_________________
Mark

Image


Top
 Profile  
 
 Post subject: Re: Excessive monthly upload figure but what's causing it?
PostPosted: Thu Feb 02, 2012 6:36 am 
Offline

Joined: Tue Aug 03, 2010 6:23 am
Posts: 484
Location: Ferntree Gully, VIC, Oz
Weather Station: WM918
Operating System: Win Server 2008 R2
Ray

You could also cut down on uploading most of the files except the Cumulus web tags file by re-writing them to include the cumuluswebtags.php file and then only displaying that data when the page is loaded.

This way your thismonthyear.htm becomes thismonthyear.php, noaa.php etc etc all exist on your web site but do NOT get transferred ever again (well, until you change the layout).

If you do this it can save you around 7.67 Mb a day or roughly 230 Mb a month just on those files (not sure how the figures were arrived at in mrcrossley's post - 154 Mb a week isn't 2.3 Gb per month.

In fact if you trim cumuluswebtags down (ask your yourself 'Do you gfeell lucky..'....errr no wrong thread - 'Do I need all the alarm tags" you can even cut that down quite a bit - remove comments and you can trim it down to about a 1/3 of the original size.

_________________
Punctuation is the difference between 'Let's eat, grandma' and 'Let's eat grandma'


Top
 Profile  
 
 Post subject: Re: Excessive monthly upload figure but what's causing it?
PostPosted: Thu Feb 02, 2012 6:41 am 
Offline

Joined: Tue Aug 03, 2010 6:23 am
Posts: 484
Location: Ferntree Gully, VIC, Oz
Weather Station: WM918
Operating System: Win Server 2008 R2
Another thing to look at (although you haven't mentioned this as being your problem but it can, and does hit some people very hard) is whether you let robots onto your site.

Googlebot and (think its) yahoo crawler (might be MSN, can't recall off hand) can chew through bandwidth liek youj wouldn't believe.

You can usually see through the stats available via your cPanel (or whatever your host uses) how much they are using - if anything over a couple of Mb a week you really should look at restricting them - on one data intensive site we ran googlebot alone was accounting for over 400 Mb per month of bandwidth - and it all comes of your alloted allowance!

Now, because we restrict ALL bots, we are lucky to see any bot or crawler go ver 1 or 2 Mb per month....If they don;t obey the robots.txt file - we simply ban the IP completely.

_________________
Punctuation is the difference between 'Let's eat, grandma' and 'Let's eat grandma'


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 24 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group