Bug 533527

Summary: Satellite slowness/unresponsiveness and eventual OOM - need to turn off jasper development mode by default
Product: Red Hat Satellite 5 Reporter: Xixi <xdmoon>
Component: ServerAssignee: Justin Sherrill <jsherril>
Status: CLOSED CURRENTRELEASE QA Contact: Martin Minar <mminar>
Severity: high Docs Contact:
Priority: high    
Version: 530CC: cperry, jjneely, jkastner, mkoci, mminar, stanislav.polasek, tao, xdmoon
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-10-28 14:45:42 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: 487678    
Attachments:
Description Flags
proposed patch none

Description Xixi 2009-11-07 01:21:11 UTC
Description of problem:
Based on /etc/tomcat5/web.conf, Jasper's development mode is on by default -
"
 <!--   development         Is Jasper used in development mode? If true,   -->
 <!--                       the frequency at which JSPs are checked for    -->
 <!--                       modification may be specified via the          -->
 <!--                       modificationTestInterval parameter. [true]     -->
"
It should be off since Satellite distributes jsps pre-compiled and production satellites should no need to re-compile jsp pages.  There's a performance concern here too.

Version-Release number of selected component (if applicable):
Red Hat Network (RHN) Satellite 5.3.0 (and earlier too)

How reproducible:
Always.

Steps to Reproduce:
Look at /etc/tomcat5/web.conf

Actual results:
Jasper development mode is not explicitly turned off.

Expected results:
Jasper development mode is explicitly turned off.

Additional info:

Comment 1 Xixi 2009-11-07 01:24:13 UTC
Created attachment 367922 [details]
proposed patch

Comment 9 Justin Sherrill 2010-08-26 17:01:25 UTC
should be fixed here:

ffe25de359af60ef8e9305ff761932fbc3f4408b

need to do a tad more testing.

Comment 13 Jiri Kastner 2010-10-18 11:44:31 UTC
/etc/tomcat5/web.xml
.... 
       <init-param>
            <param-name>xpoweredBy</param-name>
            <param-value>false</param-value>
        </init-param>
        <init-param>
            <param-name>development</param-name>
            <param-value>false</param-value>
        </init-param>
....

Comment 14 Jiri Kastner 2010-10-19 21:57:59 UTC
on 1gb memory system with 1.5 gb swap, then upload of certificate will result in service temporarily unavailable.
satellite-sync consumes 100% cpu, but no oom in logs.
on systems with recommended amount of memory and swap not encountered any problem.

Comment 15 Clifford Perry 2010-10-28 14:41:05 UTC
The 5.4.0 RHN Satellite and RHN Proxy release has occurred. This issue has been resolved with this release. 


RHEA-2010:0801 - RHN Satellite Server 5.4.0 Upgrade
https://rhn.redhat.com/rhn/errata/details/Details.do?eid=10332

RHEA-2010:0803 - RHN Tools enhancement update
https://rhn.redhat.com/rhn/errata/details/Details.do?eid=10333

RHEA-2010:0802 - RHN Proxy Server 5.4.0 bug fix update
https://rhn.redhat.com/rhn/errata/details/Details.do?eid=10334

RHEA-2010:0800 - RHN Satellite Server 5.4.0
https://rhn.redhat.com/rhn/errata/details/Details.do?eid=10335

Docs are available:

http://docs.redhat.com/docs/en-US/Red_Hat_Network_Satellite/index.html 

Regards,
Clifford