Java Troubleshooting Guide for HP-UX Systems
3.2.1.1.2 Ensure Process Can Write Large Core Files
Check your coredump block size to make sure it is set to unlimited using the ulimit -a
command:
$ ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 4292870144
stack(kbytes) 8192
memory(kbytes) unlimited
coredump(blocks) 4194303
If coredump is not set to unlimited, set it to unlimited using the ulimit -c command:
$ ulimit -c unlimited
$ ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 4292870144
stack(kbytes) 8192
memory(kbytes) unlimited
coredump(blocks) unlimited
3.2.1.1.3 Verify Amount of Disk Space
Check the amount of disk space available in the current working directory using the df -kP
command:
$ df -kP /home/mycurrentdir
Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/vg00/lvol5 1022152 563712 458440 56% /home
3.2.1.1.4 Check If Directory Supports Large File Systems
Use the fsadm command as root to check if your directory supports large file systems. If you
do not execute this command as root, you may not retrieve meaningful results. Following is an
example:
<root>$ /usr/sbin/fsadm <mount_point>
The following example output shows a /extra file system that is set up to support large files
and a /stand file system that is not set up to support large files:
<root>$ /usr/sbin/fsadm /extra
fsadm: /etc/default/fs is used for determining the file system type
largefiles
<root>$ /usr/sbin/fsadm /stand
fsadm: /etc/default/fs is used for determining the file system type
nolargefiles
You can use the /usr/sbin/fsadm command to set the directory to support large files. For
example, to convert an hfs file system from nolargefiles to largefiles, issue the following command:
$ fsadm -f hfs -o largefiles /dev/vg02/lvol1
Alternatively, if the directory does not support large file systems, you can write the core file to
a different directory. Do this by setting the JAVA_CORE_DESTINATION environment variable
(available starting with SDK 1.4.2) to the name of the directory and create the directory. For
example:
$ export JAVA_CORE_DESTINATION=<alt_dir>
$ mkdir $JAVA_CORE_DESTINATION
Java creates a directory named core under the JAVA_CORE_DESTINATION directory where the
core and hs_err_pid<pid>.log files are written. For example:
$ cd $JAVA_CORE_DESTINATION
$ ls
3.2 Collecting Problem Data 59