Technote (troubleshooting)
Problem(Abstract)
The Java web application environment for Netcool/Reporter is Tomcat 5. For Netcool/Reporter to run effectively and sustainably over time, five changes are recommended to increase Java memory and thread settings.
Symptom
Reporter stops running with a java.lang.OutOfMemoryError in the catalina[date].log file.
Resolving the problem
Implement the five changes outlined below to both Apache Tomcat and the Netcool/Reporter server, using an editor such as notepad or vi.
For Apache Tomcat
1. Change catalina.* settings for java:
Open $REPORTERHOME/bin/Catalina.sh (%TOMCAT_HOME%\apache-tomcat-5.5.26\bin\catalina.bat on Windows)
Insert the following into the first line after the header:
-
JAVA_OPTS='-Xms256m -Xmx1024m'
2. Change server.xml settings for threads:
Open $REPORTERHOME/tomcat/conf/ server.xml (%TOMCAT_HOME%\conf\ server.xml on Windows) and search for this line:
-
<!-- Define an AJP 1.3 Connector on port 12009 -->.
In the next line, insert three more parameters:
-
maxThreads=”250”
minSpareThreads=”25”
maxSpareThreads=”75”
For example:
-
<Connector enableLookups="false" port="12009" protocol="AJP/1.3" redirectPort="8443" maxThreads="250" minSpareThreads="25" maxSpareThreads="75"/>
For Netcool/Reporter
3. Change infosrvorg.* settings for java:
Open $INFOHOME/server/infosrvorg (%INFOHOME%\server\infosrvorg.bat on Windows)
In the infosrvorg.* file, search for –ms and –mx.
Change
-
java –ms and
–mx
-
java -ms256m and
-mx1048
m
Netcool/Reporter calls the inforsrvorg file at startup to create a Java process.
Note that in the Windows version, there are two Java settings - be sure to make the same change in both places.
4. Change runjob.* settings for java:
Open $INFOHOME/bin/runjob.sh (%INFOHOME%/bin/runjob.bat on Windows)
Change
java –ms and –mx
-
java -ms256m and
-mx1048m
Reporter creates a separate and temporary java process when running a report as a scheduled job.
5. Change spacesql.cfg settings for Java:
Open $INFOHOME/websqlbr/admin/ spacesql.cfg ( %INFOHOME%\websqlbr\admin\ spacesql.cfg on Windows)
Change
-
java –ms
and
–mx
-
-ms64m and
-mx90m
Reporter creates a separate and temporary Java process for report object generation including chart, pdf, gif and other objects.
Please restart the Reporter processes ( Apache, Tomcat and the Reporter Server) once the changes are in place.
Product Alias/Synonym
Netcool Reporter
Rate this page:
Copyright and trademark information
IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.