Bug 887861

Summary: Agent raise OutOfMemoryError when adding new Deployment child resource on AS7
Product: [JBoss] JBoss Operations Network Reporter: Thomas Segismont <tsegismo>
Component: AgentAssignee: Thomas Segismont <tsegismo>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: medium Docs Contact:
Priority: medium    
Version: JON 3.1.1CC: ahovsepy, ajuricic, ccrouch, hrupp, loleary, mkoci, myarboro
Target Milestone: ER01   
Target Release: JON 3.2.0   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 887320
: 952337 (view as bug list) Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 887320    
Bug Blocks: 952337    
Attachments:
Description Flags
Successful deploy of jenkins.war file. none

Description Thomas Segismont 2012-12-17 13:48:39 UTC
+++ This bug was initially created as a clone of Bug #887320 +++

Description of problem:
When you try to add new deployment child to an AS7 resource, the agent raise an  OutOfMemoryError.

Version-Release number of selected component (if applicable):
4.6.0-SNAPSHOT

How reproducible:
Always

Steps to Reproduce:
1. Find a simple WAR to deploy
I tried with Jenkins http://mirrors.jenkins-ci.org/war/latest/jenkins.war
2. Go to an AS7 resource page, Inventory/Child Resources tab.
3. Click the toggle button Create Child/Deployment and upload you WAR, then Next and Finish
4. Go to the Inventory/Child History tab
  
Actual results:
The new Created Child history record ends with status failed. A big stack trace ending with OutOfMemoryError is in the history details (see attached stack trace).

Expected results:
The new Created Child history record ends with status success.

Additional info:
* Attached is the server stack trace. The error is catched and passed to the server so it's reported on the server but actually raised in the agent.
* Deploying the same war to a Tomcat 7 resource works. So it may be a problem only for the AS7 plugin

--- Additional comment from Thomas SEGISMONT on 2012-12-14 17:50:28 CET ---

Created attachment 663660 [details]
Stack trace

--- Additional comment from Charles Crouch on 2012-12-14 18:29:08 CET ---

Notes:  http://mirrors.jenkins-ci.org/war/latest/jenkins.war is 46mb

Is this also a problem in jon311?

Comment 1 Thomas Segismont 2012-12-17 14:16:18 UTC
Fixed: jon3.1.x - f87210f

Cherry-picked from master - 52bdd6f

Comment 2 Charles Crouch 2012-12-17 15:00:15 UTC
Setting back to new. Thomas got a little carried away and committed this too the wrong branch. If this gets triaged into the release it will be cherry-picked to release/jon3.1.x

Comment 3 Thomas Segismont 2013-02-14 13:47:57 UTC
Fix tested on JON 3.2 Alpha. Master commit: 84b4cbc

Comment 4 Thomas Segismont 2013-04-08 21:38:58 UTC
Reworked to upgrade to HttpClient 4

master - 21ec5e2

Comment 5 Thomas Segismont 2013-04-09 10:08:00 UTC
Reworked to increased delay in AS7 itests to discover all resources
master - 3b18013

Comment 6 Thomas Segismont 2013-04-10 12:20:18 UTC
Changes reported to release/jon3.1.x - 89d941d

All unit and integration tests pass on my box and on Jenkins:
https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/RHQ/job/rhq-master/org.rhq$rhq-jboss-as-7-plugin/

Manual testing leads to expected results (see the steps listed in the original description of this bug)

Comment 7 Thomas Segismont 2013-06-13 14:43:38 UTC
*** Bug 829399 has been marked as a duplicate of this bug. ***

Comment 8 Amana 2013-06-27 17:44:01 UTC
*** Bug 978521 has been marked as a duplicate of this bug. ***

Comment 9 Larry O'Leary 2013-09-06 14:30:48 UTC
As this is MODIFIED or ON_QA, setting milestone to ER1.

Comment 10 jvlasak 2013-09-26 11:50:35 UTC
Created attachment 803372 [details]
Successful deploy of jenkins.war file.

Deploying for large war file (jenkins.war) was verified. See screenshot.

Comment 11 Armine Hovsepyan 2013-11-05 09:37:26 UTC
marking as verified on behalf of jvlasak