WASJDK: How to use IBM Java SDK debug malloc build
 Technote (FAQ)
 
Problem
This technote explains how to configure IBM® Java™ SDK debug malloc build.
 
 
Solution
Debug malloc is a tool that logs the uses of malloc, calloc, realloc, free, and valloc by a library or executable that is built with the drop-in replacement libraries libdbmalloc_g.a and libdbmalloc_helper_g.a. The debug build of the AIX® JVM™ is built with its own debug malloc libraries by default. These are completely separate from AIX debug malloc, and the necessary libraries are included in the java_g debug build.
  1. Back up libdbmalloc_helper_g.a and libdbmalloc_g.a in /usr/lib, and place libdbmalloc_helper_g.a and libdbmalloc_g.a, which come with IBM Java™ SDK debug malloc build, into /usr/lib.

  2. Install IBM Java SDK debug malloc build.

  3. To activate the debug malloc output for the debug build of the JVM, set the environment variable IBM_DBMALLOC_FILE to the full path where you want the output to be written.

    export IBM_DBMALLOC_FILE=dump-file

    where dump-file is any location that has at least 1 GB extra space for this file. It's better if you can have an exclusive file system for this so you can increase the size of the filesystem, if necessary. After launching the application, check to make sure that dump-file is created.
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > Java SDK
Operating system(s): AIX
Software version: 4.0
Software edition:
Reference #: 1144406
IBM Group: Software Group
Modified date: Jul 27, 2004