[GLASSFISH-16720] Launcher Should have a Watchdog Mode Created: 24/May/11  Updated: 02/Dec/11  Resolved: 25/May/11

Status: Resolved
Project: glassfish
Component/s: admin
Affects Version/s: 3.1
Fix Version/s: 4.0

Type: Improvement Priority: Major
Reporter: Byron Nevins Assignee: Byron Nevins
Resolution: Fixed Votes: 0
Labels: None
Σ Remaining Estimate: Not Specified Remaining Estimate: Not Specified
Σ Time Spent: Not Specified Time Spent: Not Specified
Σ Original Estimate: Not Specified Original Estimate: Not Specified

Sub-Tasks:
Key
Summary
Type
Status
Assignee
GLASSFISH-16732 Prepare Doc for Watchdog option Sub-task Resolved Gail Risdal  
Tags: 3_1_1-exclude

 Description   

start-server --verbose

What this REALLY does is :

(1) start a 'watchdog' process that maintains an invaluable reference to a java Process object for the started server
(2) shows all stdout/stderr output that appears before the Logging Service can be started in the server
(3) duplicates all the server.log messages

============
For the purposes of running as a Platform Service we want (1) but probably not 2 and definitely not 3. (3) is useful if there are a pair of human eyes attached. In the case of a Platform Service there's nobody around.

We are then filling up a potentially enormous logfile in domain-dir/bin – which is duplicate of server.log. Furthermore GF server itself has sophisticate log-rotation and handling features and platform services don't.

Conclusion:

Introduce a new option, --watchdog, which is like --verbose – without the verbosity.



 Comments   
Comment by Nazrul [ 24/May/11 ]

Forum thread: http://forums.java.net/node/803324

Comment by Byron Nevins [ 25/May/11 ]

The first part is finished! You can now start servers in "watchdog" mode. This new mode is EXACTLY like verbose mode except that it produces no output on the console.

e.g.

asadmin start-domain -w
asadmin start-domain --watchdog

Comment by Byron Nevins [ 25/May/11 ]

These changes added the watchdog option.
To do: Have platform services use this option. At least on Windows.

Sending admin\cli\src\main\java\com\sun\enterprise\admin\cli\StartDomainCommand.java
Sending admin\launcher\src\main\java\com\sun\enterprise\admin\launcher\GFLauncher.java
Sending admin\launcher\src\main\java\com\sun\enterprise\admin\launcher\GFLauncherInfo.java
Sending admin\launcher\src\main\java\com\sun\enterprise\admin\launcher\GFLauncherLogger.java
Sending admin\launcher\src\main\java\com\sun\enterprise\admin\launcher\LocalStrings.properties
Sending cluster\admin\pom.xml
Sending cluster\cli\pom.xml
Sending cluster\cli\src\main\java\com\sun\enterprise\admin\cli\cluster\StartLocalInstanceCommand.java
Sending cluster\common\pom.xml
Sending common\common-util\src\main\java\com\sun\enterprise\universal\process\ProcessStreamDrainer.java
Transmitting file data ..........
Committed revision 47089.

Comment by Byron Nevins [ 25/May/11 ]

Now fixed for Windows Services

Sending packager\nucleus-base\lib\install\templates\Domain-service-winsw.xml.template
Transmitting file data .
Committed revision 47090.

Comment by Byron Nevins [ 25/May/11 ]

Done.
SMF and Linux don't use the verbose option so only Windows needed to be changed.

Generated at Sun Feb 19 18:58:39 UTC 2017 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.