• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RAM and CPU hogging
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RAM and CPU hogging


  • Subject: RAM and CPU hogging
  • From: Timothy Hellum <email@hidden>
  • Date: Tue, 17 Jul 2007 16:49:28 -0400
  • Thread-topic: RAM and CPU hogging

Title: RAM and CPU hogging
Good afternoon,

Through the generous assistance of folks on this list I am using an Applescript to get Safari to run and then sequentially load three websites at 1 minute intervals.

This is working well, with an exception.

I have it running on three machines on our Editorial floor: all are G4s (one Graphite and two Quicksilvers).  The machines have ATI Radeon 9800 cards in them because I needed to be able to rotate the desktops, and are connected via VGA to large LCD displays.  The machines have 1GB, 1.5GB and 640 MB RAM in them.

The issue I am finding is that ARD tells me the machines are routinely running at 98% CPU and 98% RAM usage.  The problem is, the only apps running on them are the script (saved as an application), and Safari.  After a few days of running like this, they sort of seize up (wouldn’t you?) and either present the beachball, time out on the Applescript, or freeze altogether.  Half the time when I reboot the machines, they can no longer see the ATI resolutions available in the System preferences display window – I only see the default resolutions from Apple.  I solve this hurdle by using Applejack and clearing the caches.

So it would seem that there is some sort of memory leak going on here.  Clearing caches suggests that the culprit is Safari.  But shouldn’t it be able to run for days on end without accumulating CPU and RAM usage?  So perhaps its the Applescript?  But the script is only a few lines long.  Here is the script:

set j to 1



on idle
   global j
   set lista to {"http://www.theglobeandmail.com", "http://www.reportonbusiness.com/", "http://www.globesports.com/"}
    tell application "Safari"
        activate
       set URL of front document to item j of lista
   end tell
   if j ≤ 2 then
       set j to j + 1
    else
       set j to 1
    end if
   return 60
end idle

If anyone has any idea why the CPU and RAM usages are running so high, I’d sure appreciate a suggestion.

Many thanks,

/timothy


-------------------------------
Timothy Hellum
Editorial IT Support
The Globe and Mail
http://www.theglobeandmail.com
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: RAM and CPU hogging
      • From: Emmanuel <email@hidden>
    • Re: RAM and CPU hogging
      • From: Simon Forster <email@hidden>
    • Re: RAM and CPU hogging
      • From: Bill Briggs <email@hidden>
    • Re: RAM and CPU hogging
      • From: Luther Fuller <email@hidden>
  • Prev by Date: Airport
  • Next by Date: Re: Airport
  • Previous by thread: Re: Airport
  • Next by thread: Re: RAM and CPU hogging
  • Index(es):
    • Date
    • Thread