|
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.
- 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.
- Install IBM Java SDK debug malloc build.
- 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.
|
|
|
|
|
|
|
|