• 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: Hungry app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hungry app


  • Subject: Re: Hungry app
  • From: Axel Luttgens <email@hidden>
  • Date: Thu, 03 Jan 2013 23:22:51 +0100

Le 3 janv. 2013 à 12:28, Jörgen Stahle a écrit :

> Actually, it's eating a lot of real memory as well! I did't recognize this at first.
> Since yesterday, when I restarted the app, real memory usage has grown from 8 MB to 242 MB.
> I would appreciate any suggestions of what the reason could be.

Hello Jörgen,

This part of your script seems to yield memory leaks here, for about 0.5 Mb per iteration:

	on idle
		doIt()
		return 1
	end idle

	on doIt()
		local psParas, processNames
		set processNames to {}
		set psParas to paragraphs of (do shell script "ps uxc")
		repeat with aPara in psParas
			set end of processNames to last word of aPara
		end repeat
	end doIt

Something must be broken somewhere...

Axel


 _______________________________________________
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: Hungry app
      • From: Shane Stanley <email@hidden>
    • Re: Hungry app
      • From: Christopher Stone <email@hidden>
References: 
 >Hungry app (From: Jörgen Stahle <email@hidden>)
 >Re: Hungry app (From: Jörgen Stahle <email@hidden>)

  • Prev by Date: Re: Hungry app
  • Next by Date: Re: Hungry app
  • Previous by thread: Re: Hungry app
  • Next by thread: Re: Hungry app
  • Index(es):
    • Date
    • Thread