Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Performance tipsPerformance tips
Previous
 
Next
New Post
1/24/2006 10:53 PM
 

Thanks for the info on compression.  It did help with overall performance.  The hardest part I had installing it was getting the copy/paste activities in the web.config file right. 

What I'm still struggling with is the "wake up" time if I would like to understand more about the caching employed by DNN.  Does anyone have any info/refs?

By the way, I found one fatal flaw in the ping theory... it drives the web stats (hits) out of whack.  If you look at unique visitors it's not too bad, but it’s more work for the stat minded people regardless.

For those who are interested in “pinging” or polling your site, here is what I’ve tried so far.  Both methods seem to work.

The first method is:

1.      Create a “polling” page, allow all users, but under Advanced, choose “Hidden”, and specify a value (3600 or so) in Refresh Interval.

2.      Save the URL from the browser address bar for this page. 

3.      Now all you have to do is open a browser, navigate to the polling page and leave the browser to run.  The Refresh Interval will cause the browser to keep reloading the page, which will keep your site alive.

The second method is:

1.      Create a “polling” page, allow all users, choose Hidden, but do not set the refresh interval.

2.      Save the URL from the browser address bar for this page.

3.      Write a vb or java script that will open a browser session and in a loop, navigate to the page.  Looping on whichever time interval you choose.  I will send a sample vb script to anyone who would like.

With both of these methods you might try to fine tune things by configuring the caching of a module on the polling page, in step with the browser refresh interval.

Aside from the flaw whereby your web hits are skewed, the other item to consider is that you need to have a pc (or server) to run either of these two option 24x7.  I have toyed with the idea of using a “web ring” model where partner sites will load a page from another site in the ring whenever they are visited.  This would employ the hidden page on site A, and an IFrame or something along those lines on Site B.  It’s just a thought at this stage but if anyone is interested, I’d be glad to talk about it further.

Hope this helps…

 
New Post
1/25/2006 1:00 AM
 
I just ran across this "SiteAlive Service" service now in beta: http://www.ethuongmai.com/dnn/Default.aspx?tabid=86 in case anyone is interrested.
 
New Post
1/25/2006 10:41 AM
 

Check with your host and see if it's possible for them to change the server settings for your site to recycle once a day at like 2am or something when everything is really slow anyway.  That would possibly save the site from shutting down after a time with no visits.  If you are getting enough hits per hour this shouldn't really be a problem.

As far as the analytics part it's trivial to filter out the single IP address that hit's your site once every 3600 seconds and since it's your computer you use it should probably be filtered anyway  :)


Paul Davis
 
New Post
1/27/2006 12:46 AM
 

I keep my site loaded with a VBScript file. I happen to have a test server that's running 24x7 so I run it from there, but it could be run from any Windows machine. If you have a box that's up all the time anyway, may as well put it to work. First create a vbs file, for our example, we will create myKeepAlive.vbs in the root of C: (contents below). Now create a scheduled task (Start / ControlPanel / ScheduledTasks). Right click on "Scheduled Tasks" and select "Explore". In the window that opens, right click in the right hand pane and select New -> Scheduled Task. This will create "New Task", give it a new name like myKeepAlive. Now double click to open it (or right click / Properties). In the text area labeled "run" put "C:\Windows\System32\CScript.exe myKeepAlive.vbs" (do not include the "). In the text area labeled "Start in:" put the directory where myKeepAlive.vbs is located, in our example this would be "C:\" (also without the "). Now for the fun part, on the Schedule Tab, set it to start at any time (it will default to 9:00AM). Select Daily, Every 1 Days. Then click "Advanced". In the Advanced Schedule Options, click on "Repeat Task". Say you want to ping your site every 10 minutes (you can pick an interval that is appropriate for your site to keep it loaded). For the "Until:" process, select "Duration", then 23 hours and 60-YourInterval minutes. So if you were every 10 minutes, select 23 hours and 50 minutes. Then select OK and back on the myKeepAlive window select OK again. You will now have a task that runs every 10 minutes forever. Now for the contents of the myKeepAlive.vbs file. DNN installs a file in your portal root "keepalive.aspx". You will load this file every 10 minutes. This will keep your application active. In the example below, the DNN site is located at www.mydomain.com/portal. This example also creates a log file with the response times. Since the keepalive.aspx returns just the current date/time, it is about 100 bytes and should return in 1 second or less. You can scan the output file to see if you are ever getting long response times, which would be an indication that something not right has happened. This process will consume about 435KB of bandwidth in a 31 month day, very affordable.

myKeepAlive.vbs:

Dim HTTP
Dim dStart, dEnd, sSecElapsed
Dim sURL

'*******
'* Define where your keepalive.aspx file is located (DNN portal root)
'*******
sURL = “http://www.mydomain.com/portal/keepalive.aspx”
'*******
'* We are going to use the XMLHTTP object installed as part of Windows
'*******
Set HTTP = CreateObject("MSXML2.XMLHTTP")
'*******
'* Capture the current time
'*******
dStart = Now()
'*******
'* Now do an HTTP GET to the keepalive.aspx file
'*******
HTTP.Open "GET",sURL, False 
HTTP.Send()
'*******
'* We have the response, so capture the end time and calculate elapsed seconds
'* If you don't care to create a log, this section can be deleted.
'*******
dEnd = Now()
sSecElapsed = DateDiff("s",dStart,dEnd)
'*******
'* Here we open our log file, post the current date/time, bytes returned, and elapsed seconds
'*******
Dim FSO, ibFile
Const ForReading = 1, ForWriting = 2, ForAppending = 8
Set FSO = CreateObject ( "Scripting.FileSystemObject" )
Set ibFile = FSO.OpenTextFile("webping.csv",ForAppending,True)
ibFile.WriteLine Now() & ","  & sURL & “,” & Len(HTTP.responseText) & "," & sSecElapsed
ibFile.close
Set ibFile = Nothing

Happy Nuking!

Regards,

Paul

 
New Post
2/11/2006 5:09 AM
 

Many thanks for this excellent vbs script.  I am trying it out now...  Looks promising!

John B

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Performance tipsPerformance tips


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out