Setting up the core file processes on solaris
Perform the following commands at command line:
To view current config:
coreadm
To configure:
coreadm-e global -e process -e global-setid -e proc-setid -e log
coreadm-g /disk0/core/core.%f.%p.%t -i /disk0/core/core.%f.%p.%t
Setting up cores on linux
Step 1
Edit the file
vi /etc/sysctl.conf
and add the following line to it:
kernel.suid_dumpable= 1
Re-load the file /etc/sysctl.conf by executing the following command:
/sbin/sysctl-p /etc/sysctl.conf
Step 2
/usr/sbin/getenforce
/usr/sbin/setenforcePermissive
Step 3
As user root
ulimit-c unlimited
Run
ulimit -a
and ensure the following is true:
ulimit -a corefile size (blocks, -c) unlimited
dataseg size (kbytes, -d) unlimited
filesize (blocks, -f) unlimited
pendingsignals (-i) 1024
maxlocked memory (kbytes, -l) 32
maxmemory size (kbytes, -m)unlimited
openfiles (-n) 1024
pipesize (512 bytes, -p) 8
POSIXmessage queues (bytes, -q) 819200
stacksize (kbytes, -s) 10240
cputime (seconds, -t) unlimited
maxuser processes (-u) 32764
virtualmemory (kbytes, -v) unlimited
file locks (-x) unlimited
No comments:
Post a Comment