1834089 Members
2386 Online
110063 Solutions
New Discussion

Re: set coredump size

 
SOLVED
Go to solution
szhiyong
Frequent Advisor

set coredump size

Hi,

I found the core dump size is very large in my workstation, would someone tell me how to set the coredump size?

Thanks a lot .

zhiyong
My life is now asking and learning, I wish It can change into replying and discussing
4 REPLIES 4
Michael Tully
Honored Contributor
Solution

Re: set coredump size

Hi, Zhiyong,

The core dump size is largely dependent on the size of the program that was in resident memory. In saying that, there a couple of ways in which you try and manage it.

Core dump from system panic. You should leave
this, as it can be analysed later to specific
problems. Have a look at the man page for 'savecrash'

Core dumps from applications. Use can use the
'setrlimit' program. Have a look at the man
page for this. You can also look at the 'ulimit' program. For example if you wanted to set a core limit for a child process you could use 'ulimit -c 4096'

HTH
Michael
Anyone for a Mutiny ?
RAC_1
Honored Contributor

Re: set coredump size

Miachel is right.

For a program you can change it with ulimit command. But ulimit command varies with shell.
in bash U can see it ulimit -Ha -Hard limits
ulimit -Sa -soft limits

Regards,
There is no substitute to HARDWORK
steven Burgess_2
Honored Contributor

Re: set coredump size

Szhiyong

For HPUX - and posix shell the ulimit command is used to limit user resources

If you specify the -a switch it lists current resources

ulimit -a

If you don't want to create a core file of larger than 1024 blocks, use the following

ulimit -c 1024

HTH

Steve
take your time and think things through
szhiyong
Frequent Advisor

Re: set coredump size

Hi,All,

Thanks a lot for your help.

Have a good day.

zhiyong
My life is now asking and learning, I wish It can change into replying and discussing