Bug 689993 - [RFE] JBoss AS4 and AS5 plug-in needs to support configurable operation time-outs
Summary: [RFE] JBoss AS4 and AS5 plug-in needs to support configurable operation time-...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Plugins
Version: 4.0.0
Hardware: All
OS: All
medium
high vote
Target Milestone: ---
: ---
Assignee: Simeon Pinder
QA Contact: Corey Welton
URL:
Whiteboard:
Depends On:
Blocks: 689992
TreeView+ depends on / blocked
 
Reported: 2011-03-22 22:58 UTC by Larry O'Leary
Modified: 2018-11-14 13:43 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 689992
Environment:
JON 2.4.1 JBoss AS 5 plug-in
Last Closed:


Attachments (Terms of Use)

Description Larry O'Leary 2011-03-22 22:58:04 UTC
The start, stop, and restart operations exposed by the JBoss AS 4 and 5 plug-in have a hard-coded time-out value. In some environments, an AS5 instance may take several minutes to fully start depending on what is being deployed and how many CPUs are available. In is not uncommon for an AS5 instance to take more then 5 minutes to fully start, especially within a development environment. This poses a problem for the start, stop, and restart operations if they are used to bring up or down the AS instance.

This request is to move the STOP_WAIT_MAX and START_WAIT_MAX hard-coded values to the plug-in configuration so that the values can be overridden by the user if necessary.

This would apply to both the JBoss AS4 and AS5 plug-in. These values are currently defined in:

org.rhq.plugins.jbossas.JBossASServerOperationsDelegate
org.rhq.plugins.jbossas5.ApplicationServerOperationsDelegate


As:
    private static final long STOP_WAIT_MAX = 1000L * 150; // 2.5 minutes
    private static final long START_WAIT_MAX = 1000L * 300; // 5 minutes

Comment 1 Simeon Pinder 2011-03-31 13:13:14 UTC
Applied fix for AS5,AS4 and Tomcat plugins to master.
commit hash: 61aaf4428de45f616e720a5f05a00ad0968b0ba8
commit hash: 2f689feaccf45c2ffcf58ee136e3e59a4fbd2999

These plugins now allow configuration of server start/stop MAX_TIME values in minutes to override the default if set.

Comment 2 Mike Foley 2011-05-02 17:09:36 UTC
verifying configurable timeouts on RHQ 4.0 RC #2

Comment 3 Corey Welton 2011-05-24 01:17:12 UTC
Bookkeeping - closing bug - fixed in recent release.

Comment 4 Corey Welton 2011-05-24 01:17:13 UTC
Bookkeeping - closing bug - fixed in recent release.

Comment 5 Corey Welton 2011-05-24 01:17:13 UTC
Bookkeeping - closing bug - fixed in recent release.

Comment 6 Corey Welton 2011-05-24 01:17:15 UTC
Bookkeeping - closing bug - fixed in recent release.


Note You need to log in before you can comment on or make changes to this bug.