admin@glassfish.java.net

Re: How to determine if appserver is running

From: Kedar Mhaswade <Kedar.Mhaswade_at_Sun.COM>
Date: Wed, 21 Nov 2007 18:48:28 -0800

Steve,

You should use jps if "asadmin list-domains" fails to report the status
of your domain. A typical output would be:

domain1 running
domain2 not running

and so on.

Is that useful for you?

- Kedar

Shreedhar Ganapathy wrote:
> Hi SteveD
> Try
> jps -mlvV| grep <instance_name>
>
> hth
> Shreedhar
>
> Stephen DiMilla wrote:
>> Folks
>> I'm looking for a way from the command line to determine if the appserver
>> is up and running besides issuing some random asadmin command and seeing
>> if it errors out or not. I'm currently using ant's exec task to
>> execute various
>> commands to the appserver and it would be nice to be able to determine
>> appserver
>> status.
>>
>> Any suggestions would be helpful
>>
>> Thanks
>> steved
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: admin-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: admin-help_at_glassfish.dev.java.net
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: admin-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: admin-help_at_glassfish.dev.java.net
>