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.
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
|