- To do this you execute a "./bcreporter stop" in the etc/initi.d folder.
- To make sure it's stopped you execute a "./bcreporter status" in the same folder.
Run reporter in a command window.
- Open a command line window and navigate to the opt/bc/reporter folder.
- Execute the "ls -l " command to procure a directory listing. Along with other folders and files, you should see the bcreporter binary, a few files ending with the .out extension, and a isready.txt file.
- Run these commands
- ulimit -c unlimited
- Reporter will now be running, and functional, and you should be seeing it log events to the same terminal window.
- If it goes into a high utilization situation again, you need to execute this command in another terminal window, to determine the PID number:
–" ps –aux |grep reporter"
6: In the same terminal window, use the number found in the above command to execute this command which will kill the Reporter service, and create a core:
–" kill -segv <PID NUMBER> "
General LINUX Notes on taking a core:
- To setup your LINUX server to permantely provide Memory dumps for all applications, follow these two steps.
- 1: Add below 2 lines in "/etc/security/limits.conf"
- * hard core unlimited
* soft core unlimited
- 2: comment out the below line in "/etc/profile" if it is not commented by symbol "#"
- TIP: In other words, change
- ulimit -S -c 0 > /dev/null 2>&1
- #ulimit -S -c 0 > /dev/null 2>&1
- The “/proc/sys/kernel/core_pattern” file contains a pattern for the name of the core dump file and defaults to the value “core”.
- The “/proc/sys/kernel/core_uses_pid” file contains a flag designating whether or not to append a dot followed by the PID of the dumping process.
- The core_pattern may contain certain % specifications that cause other elements to be included in the name of the core dump file.
- Here are the possible % specifications:
%% -- output one '%'
%p -- pid
%u -- uid
%g -- gid
%s -- signal number
%t -- UNIX time of dump
%h -- hostname
%e -- executable filename
NOTE1: If the core_pattern file does not include “%p” (the default does not) and the core_uses_pid file contains a non-zero value (something other than ‘0’), then a dot and PID will be appended to the name of the core dump file.
NOTE2: You must be root to configure these things.
NOTE3: Here is an example to make the core file name to contain executable file name and time of the dump:
echo core.%e.%t > /proc/sys/kernel/core_pattern
More information about the -segv switch can we found here WIKI SITE
NOTE5:Generic informatoin about taking a memory dump on LINUX, can be found here IBM INFO.