Interesting question, Richard. Here is something I just tried in a quick CGI script. Don't know it gives the memory info we need, but here goes:

put "<p>" & word 2 of shell("ps -p" && the processID && "-o rss") & "k</p>"

Maybe there's a way to tweak it for better results.

Phil



On 6/30/13 1:28 PM, Richard Gaskin wrote:
Phil's recent thread on LC Server memory usage got me thinking: how can we measure the RAM used by LC Server while it's running?

CGI processes generally end too quickly to show up in top. Any other solutions?

--
 Richard Gaskin
 Fourth World
 LiveCode training and consulting: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 Follow me on Twitter:  http://twitter.com/FourthWorldSys

_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


--
Phil Davis


_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to