Re: [Pharo-users] How to detect an inactive image?
IF you get some answers I;'m interested to know it because we are thinking about what is a VM API to monitor them.
At the moment I have several projects in parallel. Nearly all of them are web based. I use a cherokee server on my local machine that starts a squeak image whenever I access a project via web browser. For persistency I use piers image based persistency. But I don't want to have all of the images run all the time. I would like to shutdown images if they aren't accessed for some time. I could do it via seaside but then I don't want an image to shutdown while I'm working on the image and not accessing seaside. What is a good measure of activity inside the image?
thanks,
Norbert
_______________________________________________ Pharo-users mailing list Pharo-users@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
I guess you would need a way to sample a set of processes that were executing what you considered activity; and ignore the ones that are not. With some data, e.g assuming they block on semaphore when idle, or terminate when idle, perhaps you can make a decision. I haven't looked, but was imagining some of the profiler framework might help because I thought it did process sampling. cheers, Mike On Sat, Oct 30, 2010 at 11:10 AM, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
IF you get some answers I;'m interested to know it because we are thinking about what is a VM API to monitor them.
At the moment I have several projects in parallel. Nearly all of them are web based. I use a cherokee server on my local machine that starts a squeak image whenever I access a project via web browser. For persistency I use piers image based persistency. But I don't want to have all of the images run all the time. I would like to shutdown images if they aren't accessed for some time. I could do it via seaside but then I don't want an image to shutdown while I'm working on the image and not accessing seaside. What is a good measure of activity inside the image?
thanks,
Norbert
_______________________________________________ Pharo-users mailing list Pharo-users@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
_______________________________________________ Pharo-users mailing list Pharo-users@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
participants (2)
-
Michael Roberts -
Stéphane Ducasse