Re: Configuring instances/app directly in SiteConfig.xml

Dev WO <[email protected]> Tue, 20 Jul 2004 18:55:26 +0200
Newsgroups gmane.comp.web.webobjects.admin
Message-ID <[email protected]>
Thanks Karl,

>> I think we can get some information about instances with wotask, but 
>> I couldn't find how to do it, for exemple:
>
> I assume that you mean directly from the SiteConfig.xml?
Not really, SiteConfig.xml doesn't know about on/off instances, memory 
usage, etc I think.
>
>
>> -getting the list of running instances
>
> If wotaskd is set to generate the WOConfig.xml, this should have a 
> list of running instances.
Is there anyway to see if an instance is on or off (or crashed) inside 
SiteConfig.xml?
>
>> -getting the list of dead/crashed instances
>
> This would be the list of instances minus the list of running 
> instances :)
of course;) but in SiteConfig.xml I may be able to get only the 
configured instances, without knowing if it's on or off no?
>
>> -getting the memory usage of an instance
>> -getting the CPU usage of an instance
>
> Sorry.
At least for the memory, I think the instance itself got some 
informations (WOStats), but I though I could get these information in a 
terminal window, but maybe it's more "system" than WO...
>
>> -getting the port number of an instance
>
> Yes.
>
>> basically to know what is on/off and display these information in a 
>> Web Application.
>> I think I've seen something like that with grep, but maybe I'm wrong. 
>> Anyway I don't know exactly how to get to these informations:(
>
> You can use Monitor...
I'm trying to make a WebApplication to "monitor" the Applications / 
Instances on a per user basis, so I don't want to use Monitor.
>
>> We've also got some problems when we use Monitor after modifying 
>> directly the xml file (we stop Monitor before modifying):
>
> Unless you stop wotaskd, this won't work at all. Monitor never writes 
> at all.
But when I have several instances running, if I change something in 
Monitor, the .xml file is updated, the instance I modified is updated 
and all the other instances didn't stop. So there's a wotaskd process 
for each instance?
>
> Karl
>
> --
>
> THIS SIG INTENTIONALLY LEFT BLANK
>
> Homepage:
>      http://homepage.mac.com/khsu/index.html
>
>