2013-09-13

Java garbage collection logging on IBM Cognos 10+ (Win32/64)

Java Garbage Collection
If you're having issues trying to get " Java Garbage Collection Logging" working with the embedded/provided IBM JRE that comes with Cognos 10 use the following parameters to get it working (Highlighted on line 8 & 9 in the code snippet below).
<!-- Code snipped -->
   <process name="catalina">
      <start>
         <spawn sync="0" wait_time="5">
            <path quoteAsParam="true">${java_home}/bin/java.exe</path>
            <param condName="${ip_protocol}" condValue="IPv6">-Djava.net.preferIPv6Addresses=true</param>
<param>-Xmx${dispatcherMaxMemory}m</param>
<param condName="${java_vendor}" condValue="IBM">-verbose:gc</param>
<param condName="${java_vendor}" condValue="IBM">-Xverbosegclog:${install_path}/logs/gc.log</param>
<param condName="${java_vendor}" condValue="IBM">-Xgcpolicy:gencon</param>
<!-- Code snipped -->

You're going to set these params in the bootstrap file. This file can be found in one of the 2 following places depending on your install.
  • Windows 32bit Install
       <cognos>\bin\bootstrap_win32.xml
  • Windows 64bit Install
       <cognos>\bin64\bootstrap_winx64.xml
Update (2013-11-20):
I've changed the syntax highlight code to "blogger" friendly HTML encoded <pre /> tags. So now the code should show no matter what. It may not be pretty, highlighted, or formatted properly, but if your network admins block certain sites (which in my case is the problem *grumblesigh*), then you should still be able to see the raw code.

No comments:

Post a Comment