Re: WebCatalog Eating 200% of the CPU

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 45048
interpreted = N
texte = Not to put words in Scott's mouth, but since he didn't reply to your question...He may have been talking about a lockfile that you check existence for at the top, create if it doesn't exist, and remove at the bottom of the template. Exclusivelock could also serve this function in some cases, but if you're doing things like moving files around, it's easier to block the entire template from running with a lockfile to insure that you don't mangle anything.For example, I had a problem with Mozilla re-requesting a webpage that didn't respond within a certain amount of time. It was a massive batch script that took over 30 minutes to generate a large db, and I ended up with 2 or 3 copies of the same script trying to overwrite the same db. A lockfile would have avoided this problem, but in this case I just switched to a browser that behaves more predictably.-Dale>Are you talking about exclusivelock or are there other 'tricks' as well? > >On 11/5/02 11:11 AM, Scott Anderson mashed the following keys : > >> What do you mean by 'clean'? A template may contain valid WebDNA syntax, >> but could still take a long time to process. I would consider such a >> template 'not' a very good candidate for a generally accessible WebDNA >> template. >> >> Your argument assumes that you (or a hacker) have knowledge of a particular >> template (or were able to create a template) on the server that can tie up >> the engine enough to overwhelm it by sending several http requests for that >> template. If no such template existed, then there is not a risk. Again, >> this boils down to how carefully and efficiently you have programmed your >> templates. >> >> If it is necessary to create a WebDNA template that will take a large amount >> of time to complete (often some admin process), then you should put the >> necessary WebDNA code in place to synchronize access to that template to >> ensure that only one instance of that template will run at any given time. >> Templates that you serve to the general public should be 'lean and mean' and >> not 'over loaded' with to much code. >> >>> why have the preference? >> A high performance server can handle a larger number of http requests, so >> that preference allows a WebDNA admin to adjust the thread limit >> accordingly. > > ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: WebCatalog Eating 200% of the CPU (Dale LaFountain 2002)
  2. Re: WebCatalog Eating 200% of the CPU (Aaron Lynch 2002)
  3. Re: WebCatalog Eating 200% of the CPU (Scott Anderson 2002)
  4. Re: WebCatalog Eating 200% of the CPU (Donovan Brooke 2002)
  5. Re: WebCatalog Eating 200% of the CPU (Donovan Brooke 2002)
  6. Re: WebCatalog Eating 200% of the CPU (Dale LaFountain 2002)
  7. Re: WebCatalog Eating 200% of the CPU (Alain Russell 2002)
  8. Re: WebCatalog Eating 200% of the CPU (Scott Anderson 2002)
  9. Re: WebCatalog Eating 200% of the CPU (Jesse Williams-Proudman 2002)
  10. Re: WebCatalog Eating 200% of the CPU (Scott Anderson 2002)
  11. Re: WebCatalog Eating 200% of the CPU (Alain Russell 2002)
  12. Re: WebCatalog Eating 200% of the CPU (Jesse Williams-Proudman 2002)
  13. Re: WebCatalog Eating 200% of the CPU (Alain Russell 2002)
  14. WebCatalog Eating 200% of the CPU (Jesse Williams-Proudman 2002)
Not to put words in Scott's mouth, but since he didn't reply to your question...He may have been talking about a lockfile that you check existence for at the top, create if it doesn't exist, and remove at the bottom of the template. Exclusivelock could also serve this function in some cases, but if you're doing things like moving files around, it's easier to block the entire template from running with a lockfile to insure that you don't mangle anything.For example, I had a problem with Mozilla re-requesting a webpage that didn't respond within a certain amount of time. It was a massive batch script that took over 30 minutes to generate a large db, and I ended up with 2 or 3 copies of the same script trying to overwrite the same db. A lockfile would have avoided this problem, but in this case I just switched to a browser that behaves more predictably.-Dale>Are you talking about exclusivelock or are there other 'tricks' as well? > >On 11/5/02 11:11 AM, Scott Anderson mashed the following keys : > >> What do you mean by 'clean'? A template may contain valid WebDNA syntax, >> but could still take a long time to process. I would consider such a >> template 'not' a very good candidate for a generally accessible WebDNA >> template. >> >> Your argument assumes that you (or a hacker) have knowledge of a particular >> template (or were able to create a template) on the server that can tie up >> the engine enough to overwhelm it by sending several http requests for that >> template. If no such template existed, then there is not a risk. Again, >> this boils down to how carefully and efficiently you have programmed your >> templates. >> >> If it is necessary to create a WebDNA template that will take a large amount >> of time to complete (often some admin process), then you should put the >> necessary WebDNA code in place to synchronize access to that template to >> ensure that only one instance of that template will run at any given time. >> Templates that you serve to the general public should be 'lean and mean' and >> not 'over loaded' with to much code. >> >>> why have the preference? >> A high performance server can handle a larger number of http requests, so >> that preference allows a WebDNA admin to adjust the thread limit >> accordingly. > > ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Dale LaFountain

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

NT 4.0/IIS WebCat Installation (1998) New public beta available (1997) Merging databases (1997) OS X problem: when using [ShowCart] or [orderfile]... (2000) upgrade? (1997) Speed Optimization - Mac (1997) Typhoon/Pro do SQL? (2001) Smith Micro - no competition (2000) Pre-flight public flag (1997) Need Photo Placement Suggestions (2002) WebDNA-Talk Digest mode broken (1997) Trouble with formula.db (1997) Triggers, again (2000) Why is my easy [AddLineItems] NOT working?? (2000) Quit revisited (1997) syntax question, not in online refernce (1997) Secure Server (1997) showcart context? (1998) Re:Searching for ALL / empty form field (1997) Sorting (1998)