Re: 300% usage - Clint
This WebDNA talk-list message is from 2007
It keeps the original formatting.
numero = 69455
interpreted = N
texte = On 11/6/07 4:04 PM, "Clint Davis"
wrote:> On 11/6/07 11:32 AM, "Donovan Brooke" wrote:> >>> Turns out WebDNA didn't have permission to write to ErrorLog.txt files, so>>> it was hogging the CPU while continually trying.>> >> :-) Glad you figured it out! How did you discover it?> > Rackspace figured it out for us.If it helps anyone in the future, here's the information Rackspace gave usfor tracking down the issue on a Red Hat Linux box:Well it took a bit of scouring on my part from what I can determine thecause of your high load and CPU usage appears to be from a non existent logfile.First thing I did was run a strace on the PID and the process it forked:strace -f -p PID# -o trace.txtThen I inspected the trace file and found many instances where WebCatalogwas trying to open and append permissions to non existent log files:open("/home/rtcanada/public_html/tvshows/ErrorLog.txt",open("/home/rtcanada/public_html/WebCatalog/ErrorLog.txt",I am not sure what permission or UID:GID these files should have but Icreated them with a simple 777 for now to allow your scripts to at leastaccess them. After doing this your servers load shot down from over 37.3 to0.12 and the CPU usage dropped from 300% for the WebCatalog process to 8.5%. -------------------------------------------------------------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://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
On 11/6/07 4:04 PM, "Clint Davis" wrote:> On 11/6/07 11:32 AM, "Donovan Brooke" wrote:> >>> Turns out WebDNA didn't have permission to write to ErrorLog.txt files, so>>> it was hogging the CPU while continually trying.>> >> :-) Glad you figured it out! How did you discover it?> > Rackspace figured it out for us.If it helps anyone in the future, here's the information Rackspace gave usfor tracking down the issue on a Red Hat Linux box:Well it took a bit of scouring on my part from what I can determine thecause of your high load and CPU usage appears to be from a non existent logfile.First thing I did was run a strace on the PID and the process it forked:strace -f -p PID# -o trace.txtThen I inspected the trace file and found many instances where WebCatalogwas trying to open and append permissions to non existent log files:open("/home/rtcanada/public_html/tvshows/ErrorLog.txt",open("/home/rtcanada/public_html/WebCatalog/ErrorLog.txt",I am not sure what permission or UID:GID these files should have but Icreated them with a simple 777 for now to allow your scripts to at leastaccess them. After doing this your servers load shot down from over 37.3 to0.12 and the CPU usage dropped from 300% for the WebCatalog process to 8.5%. -------------------------------------------------------------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://webdna.smithmicro.com/
Clint Davis
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:
Virtual hosting and webcatNT (1997)
Pithy questions on webcommerce & siteedit (1997)
Here we go again... (2006)
searchable list archive (1997)
Bad suffix error (1997)
Price Not Appearing (2000)
text conversions (1999)
Mass Mail (2000)
[BoldWords] WebCat.acgib15Mac (1997)
possible bug in unix version? (2000)
Web DNA rates (2000)
RE: Formulas.db + Users.db (1997)
Bug? (1997)
Text limits in NT version? (1997)
[OT] Am I an Idiot? (2004)
New Webcatalog for Mac (1997)
WebCatalog losing Data (2001)
hidden databases (2000)
Re:Emailer tracking (1997)
More on the email templates (1997)