dev@glassfish.java.net

Re: Review Request: Configuring a DAS or a GlassFish Server Instance for Automatic Restart

From: Byron Nevins <byron.nevins_at_oracle.com>
Date: Fri, 18 Feb 2011 11:04:23 -0800

(1)
For Windows you might want to mention the Windows command line tool for
working with Services : "sc.exe".

Examples:

C:\d\glassfish3\glassfish\domains\domain1\bin>sc query domain1

SERVICE_NAME: domain1
        TYPE : 10 WIN32_OWN_PROCESS
        STATE : 1 STOPPED
        WIN32_EXIT_CODE : 1077 (0x435)
        SERVICE_EXIT_CODE : 0 (0x0)
        CHECKPOINT : 0x0
        WAIT_HINT : 0x0

=============
sc start domain1
sc stop domain1
sc delete domain1




(2)
For Windows it is NOT good enough to add the -Xrs to the server. It
must also be added to the JVM that asadmin itself runs inside of. That
means the user needs to add
"-Xrs" directly into asadmin.bat ==or== make a copy of asadmin.bat to,
e.g. asadminservice.bat and add the -Xrs to that batch file. And then
change the xml file to use that batch file instead of asadmin. It's
simplest to just add -Xrs to asadmin one time.

Why? What happens under the covers with Windows Services is that the
service runs:

asadmin start-xxx --verbose

I.e. you always have 2 JVMs. There is a good reason why it is done this
way.

-- Other than this -- it looks good.
On 2/17/2011 4:20 PM, Paul M Davies (Oracle) wrote:
> Hi,
>
> The changes to Configuring a DAS or a GlassFish Server Instance for
> Automatic Restart
> <http://wikis.sun.com/download/attachments/216526465/create-service-tasks.pdf?version=1&modificationDate=1297987489533>
> in the High Availability Administration Guide resulting from the GF
> 3.1 Cluster Infrastructure project are now available for review. Note
> that the section to review starts near the end of the page at the
> heading "Configuring a DAS or a GlassFish Server Instance for
> Automatic Restart." Please ignore the text on the first page before
> this heading, which is outwith the scope of this review.
>
> Please review this section to ensure that it is correct and complete.
> Because we are close to finalizing this release, I'm asking for a
> faster turnaround than usual: The deadline for comments is *9 AM PST,
> Monday, January 27th, 2011*.
>
> Mandatory reviewers for this section are listed in the /Administration
> Guide/ Changes
> <http://wikis.sun.com/display/GlassFish/GlassFish+Server+Open+Source+Edition+3.1+Cluster+Infrastructure+Documentation+Review#GlassFishServerOpenSourceEdition3.1ClusterInfrastructureDocumentationReview-AdministrationGuideChanges>
> //
> <http://wikis.sun.com/display/GlassFish/GlassFish+Server+Open+Source+Edition+3.1+Cluster+Infrastructure+Documentation+Review#GlassFishServerOpenSourceEdition3.1ClusterInfrastructureDocumentationReview-HighAvailabilityAdministrationGuideChanges>section
> of the review wiki page.
>
> Changes are marked with change bars.
>
> Please provide your feedback by adding a comment to the review wiki
> page
> <http://wikis.sun.com/display/GlassFish/GlassFish+Server+Open+Source+Edition+3.1+Cluster+Infrastructure+Documentation+Review>.
> To simplify the processing of your comments, please add your comments
> in the format in the sample comment. Review existing comments to see
> known issues and avoid duplicates.
>
> Thank you.
>
> Oracle <http://www.oracle.com>
> Paul Davies| Principal Technical Writer| +1.408.276.3413
> Oracle GlassFish Server Documentation
> 4140 Network Circle, Santa Clara CA 95054, USA
>
> Green Oracle <http://www.oracle.com/commitment> Oracle is committed
> to developing practices and products that help protect the environment
>
>

-- 
Oracle <http://www.oracle.com>
Byron Nevins | Principal MTS
Phone: +1 6503958992 <tel:+1%206503958992>
Green Oracle <http://www.oracle.com/commitment> Oracle is committed to 
developing practices and products that help protect the environment