Bug 622740

Summary: [dup profiles] Java heap-size ISE on 1000 duplicated systems
Product: [Community] Spacewalk Reporter: Garik Khachikyan <gkhachik>
Component: ServerAssignee: Partha Aji <paji>
Status: CLOSED WORKSFORME QA Contact: Garik Khachikyan <gkhachik>
Severity: high Docs Contact:
Priority: medium    
Version: 1.1CC: cperry, jhutar, mkoci
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-08-19 08:33:30 UTC Type: ---
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:    
Bug Blocks: 487677, 623772    

Description Garik Khachikyan 2010-08-10 10:16:27 UTC
Description of problem:
Spacewalk throws "java.lang.OutOfMemoryError: Java heap space" while requesting "/rhn/systems/DuplicateIPList.do" for a registered 1000 duplicate copies of a single system.

Version-Release number of selected component (if applicable):
spacewalk-backend-1.1.42-1.el5
spacewalk-java-1.1.35-1.el5
spacewalk-schema-1.1.19-1.el5
spacewalk-oracle-1.1.6-1.el5


How reproducible:
1 from 1 attempt.

Steps to Reproduce:
1. prepare ~1000 duplicate systems
2. request "/rhn/systems/DuplicateIPList.do"
3.
Script could be:
---
for i in {1..1000}
  do
    rhnreg_ks --activationkey=<your_actKey_here> --force --profilename=dupe$i-`hostname`
    echo "registering... $i"
  done
---
  
Actual results:
ISE and java dump in /var/log/tomcat5/catalina.out

Expected results:
No dumps, system should handle this capacity

Additional info:
all the java settings are the default ones coming from standard Spacewalk installation.

Comment 1 Garik Khachikyan 2010-08-10 10:17:23 UTC
take up the bug priority

Comment 3 Clifford Perry 2010-08-10 22:48:28 UTC
bumping priority down. A 1,000 duplicates is a crazy high number, lets acknowledge a limitation. Low priority, we have other issues. Where do we say that ISE is bad, 10, 50, 200 duplicate profiles? Do we know when the page starts to fail? I'd anticipate that as long as you can bring up the page when a user has say 5,000 systems, with a few dozen duplicates, then that is a more 'normal' usage that I'd expect we would handle OK. 

Cliff.

Comment 6 Garik Khachikyan 2010-08-19 08:33:30 UTC
the Spacewalk with >3000 systems registered and several pairs of dupl. profiles there works perfectly on 4GB RHEL5 virtual guest machine.

so closing the issue.