Sun Gathering Debug Data for Sun Java System Application Server

ProcedureTo Configure Solaris OS to Generate Core Files

  1. Run the following commands as root.

    mkdir -p /var/cores
    coreadm -g /var/cores/%f.%n.%p.core -e global -e process -e \
    global-setid -e proc-setid -e log
  2. View the core configuration.


    # coreadm
               global core file pattern: 
                    init core file pattern: %f.%n.%p.core
                      global core dumps: enabled
              per-process core dumps: enabled
              global setid core dumps: enabled
     per-process setid core dumps: enabled
           global core dump logging: enabled

    See the coreadm man page for further information.

  3. Set the size of the core dumps to unlimited.


    # ulimit -c unlimited
    # ulimit -a
    
            coredump(blocks) unlimited

    See the ulimit man page for further information.

  4. Verify core file creation.


    # cd /var/cores
    # sleep 100000 &
    [1] PID
    # kill -8 PID
    # ls