Prevent Solaris core files creation with coreadm

Home -> UNIX -> Solaris -> System administration

19341 views

From the computer of: qmchenry (339 recipes)
Created: Mar 31, 2004


1 comments:
View all comments

Add a comment

Add to:
Add to stumbleuponAdd to del.icio.usDigg itAdd to FURL

Core files provide debugging information about a process that has terminated unexpectedly. Unless you are developing an application, core files are typically of little use and can cause serious problems by filling up filesystems. This recipe describes configuring Solaris to turn off core file creation for processes.

The coreadm command controls the generation of core files. To determine the current coreadm settings, run coreadm as root. Output such as the following will be generated:

    global core file pattern:
      init core file pattern: core
           global core dumps: disabled
      per-process core dumps: enabled
     global setid core dumps: disabled
per-process setid core dumps: disabled
    global core dump logging: disabled


Given the sample configuration above, per-process core dumps are enabled. When a process terminates abnormally or receives an appropriate signal, it will generate a core file named 'core' in the working directory of the process.

To disable per-process core file creation, use:

coreadm -d process


This will modify the /etc/coreadm.conf which is read at boot when /etc/init.d/coreadm is executed from a runtime control script. To make permanent changes to coreadm, do not edit the /etc/coreadm.conf file, use the coreadm command.

Subscribe to the Tech-Recipes Newsletter

You can get tips like this delivered in your email every week!

Enter your Email

We will never, ever sell your email address or spam you.




1 Recipe comments: View comments

true, but... by Anonymous



Related recipes:

  Solaris: Generate a core dump from a running process with gcore
  Solve Solaris metadb or metainit: Segmentation Fault errors
  Change BootPROM settings from the Solaris command line
  Boot Solaris from CD-ROM to solve problems
  Configure Solaris for DNS resolution of hostnames
  Remove a Solaris package with pkgrm
  Solaris: fuser to find users or processes making filesystem umount fail
  Change Solaris DNS client settings
  Solaris 10: shutdown or stop a zone
  Solaris Processor Info

 

Sponsored links

 

Login

Nickname

Password

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.