• 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: Perplexing? These handlers add to heap on idle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Perplexing? These handlers add to heap on idle


  • Subject: Re: Perplexing? These handlers add to heap on idle
  • From: Brian Christmas <email@hidden>
  • Date: Sat, 17 Sep 2016 15:47:10 +1000

Dammit, I now seem to be down to 0.87 GB free RAM, out of 32 GB, after running my App for several hours, intermittently.

My memory usage, according to iStat Menus, is Used 12.48, Cache 18.93 (and rising). It seems that the excess memory usage from my App is not cleared on quitting & re-starting it. I’m presuming it’s added to the Cached memory, and that Cached memory is not cleared.

I’ve run this script,which cleared the Cache, but I’ve also read that using the ‘Purge’ command can have dire consequences, and it requires Admin privileges, so does not suit an unattended running App.

# https://medium.com/@VArterJr/purging-memory-with-applescript-a579b517151b#.d4bmxgg3m

tell application "Mail Manager"
activate
do shell script "purge" with administrator privileges
end tell

tell current application
activate
do shell script "purge" with administrator privileges
end tell

Regards

Santa


G’day all

Since I’ve nothing better to do, I decided to use ‘Instruments.app’ to see where the memory in my App was being used up.

Running the attached eats up about a MB per minute, just idling. I haven’t added all the variables ‘loopRunnder’ checks and sets, but this cycles every second. A rapid response is critical.

I know some of you say I should track down the memory loss, and some say I’d be wasting my time, but why is looping adding so much to the heap? And, it’s being added every second.

Perhaps those of you that advised I track the loss down might answer, please.

Regards

Santa




And what, you ask, was the beginning of it all?
And it is this......
Existence that multiplied itself
For sheer delight of being
And plunged with numberless trillions of forms
So that it might
find
itself
innumerably

Sri Aurobindo



 _______________________________________________
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: Perplexing? These handlers add to heap on idle
      • From: Shane Stanley <email@hidden>
References: 
 >Perplexing? These handlers add to heap on idle (From: Brian Christmas <email@hidden>)

  • Prev by Date: Perplexing? These handlers add to heap on idle
  • Next by Date: Re: Perplexing? These handlers add to heap on idle
  • Previous by thread: Perplexing? These handlers add to heap on idle
  • Next by thread: Re: Perplexing? These handlers add to heap on idle
  • Index(es):
    • Date
    • Thread