• 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
Re: Need help with "out of memory Errors" on server script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need help with "out of memory Errors" on server script


  • Subject: Re: Need help with "out of memory Errors" on server script
  • From: Jon Pugh <email@hidden>
  • Date: Tue, 18 Sep 2001 08:31:58 -0700

At 9:40 AM -0500 9/18/2001, John R. Head wrote:
>Any other suggestions?

Jon's Commands has a "free memory" command which can be used to determine if you are approaching the breakdown. Then you could use another applet to chain back to yourself, much like a process watcher that restarts things which must stay running.

pseudo code:

-- in leaky app
if free memory < 1000000 then -- a meg?
tell "full path to app restarter"
restart (path to me)
end
quit
end

-- in app restarter, an empty idler
on restart(theApp)
repeat
tell app "finder"
set appRunning to processes whose application file as string = theApp
end
if appRunning then exit repeat
end repeat
tell app "finder"
open theApp
end
quit
end restart


I haven't even compiled this, so figure out the details before trying it.

Good luck.

Jon


References: 
 >Re: Need help with "out of memory Errors" on server script (From: "John R. Head" <email@hidden>)

  • Prev by Date: Ahem... record on the fly
  • Next by Date: RE: Need help with "out of memory Errors" on server script
  • Previous by thread: Re: Need help with "out of memory Errors" on server script
  • Next by thread: Naming a file
  • Index(es):
    • Date
    • Thread