Frequent core dump file generated in IBM-AIX

Posted on 2009-05-02
Last Modified: 2013-11-17
From one of my application i am getting Frequent core dump file generated in IBM-AIX, is there any kernel / tcp parameter i have to set to get rid of this, if so how?
Question by:umesh4exp
    LVL 68

    Assisted Solution

    What do you try to achieve?

    There is surely no AIX parameter which can inhibit your application from aborting/core dumping.

    You can have AIX move all coredumps to a central location, this is done by

    syscorepath -p [directoryname]

    There are two more parameters, '-c' for unset (dump to work dir of process) and '-g' for displaying the current setting.

    Note that all core dumps will go to the directory set above, in the format ''. There is no selection based on applications/processes etc.

    Setting the core path to /dev/null is not possible (and I wouldn't recommend that, if it was).
    You should cleanup the core path directory regularly, e.g. with find based on mtime of 10 days or more:

    find $(syscorepath -g) -mtime +10 -exec rm {} \;

    I hope I understood your Q right, if not, please come back and explain!




    Author Comment

    In application document , they specified for frequent core dump generation, inform them(company) for other UNIX systems. For IBM AIX platform limit the core size to a maximum of 10KB.  I don't know what to do. Any Suggestions?
    LVL 68

    Assisted Solution

    that's a setting for the individual user under whose ID the application is running.
    Simplest way is: Enter 'smitty chuser', select the appropriate user, on the following screen scroll down to 'core file size ...' and change the hard and soft limits to the value you desire.
    Alternatively you can edit /etc/security/limits and change the user's entry there. Remember that you have to logoff and logon for this to take effect, and to recycle the concerned background processes.

    LVL 68

    Assisted Solution

    P.S. The size limit has to be entered in units of 512-byte blocks, so for 10K use '20'
    Please keep in mind that such a small core dump will be uselessfor debugging purposes in almost any case!
    LVL 61

    Accepted Solution

    Usually crashing programs are built for 256MB memory model and run with legacy malloc. They also crash when process size reaches 256MB. This is definetly memory leak in program, has to be reported to vendor.
    MALLOC_TYPE=3.1 ./program

    You can also use dbx to extract crash conditions from core file - do you want crash course in process debuging?

    Author Comment

    Yes gheist i need some crash course in process debuging,
    in IBM server dbx is not installed any tools similar to dbx.
    LVL 61

    Assisted Solution

    dbx debugger is available in bos.adt.debug
    check oslevel -r
    Download patch set you have:
    Do full mksysb backup and full backup of other volume groups and full backup of databases you have.
    insert AIX install media
    install bos.adt.debug
    apply patchset
    reboot if indicated
    Do another full backup.

    Backups easier with NIM if you have one server for that.

    After your system software is in stable state:
    Chap. 7 from

    LVL 61

    Expert Comment

    B means incomplete answer - can you describe what you did better than suggested?

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
    I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now