티스토리 뷰
apache dump 떨어뜨리는 방법에 대해서 몇자 적어본다.
1. limits.conf 정보 변경
- /etc/security/limits.conf 에 다음 추가
* core unlimited
2. profile 정보 변경
- /etc/profile 변경
- ulimit -S -c 0 > /dev/null 2>1 를 ulimit -S -c unlimited > /dev/null 2>1 로 수정한다.
3. functions 정보 변경
- /etc/init.d/functions 주석 추가
- #ulimit -S -c 0 >/dev/null 2>1
4. httpd 정보 변경
- /etc/init.d/httpd 에 start() 섹션에 다음 추가“ulimit -c unlimited”
- start() {
ulimit -c unlimited
echo -n $”Starting $prog: “
5. sysctl.conf 정보 변경
kernel.core_uses_pid = 1
# Following needed for Enterprise Linux 3 servers
kernel.core_setuid_ok = 1
Also, echo this value into proc with the following command in order for this configuration change to take effect immediately:
# echo 1 > /proc/sys/kernel/core_uses_pid
# echo 1 > /proc/sys/kernel/core_setuid_ok
6. httpd.conf 파일 수정
- /k2/server/httpd/conf/httpd.conf 에 다음 추가
- CoreDumpDirectory /logs/apache_dump
7. /logs/apache_dump 폴더 생성 그리고 권한 부여
8. 리부팅과 아파치 리스타트
- reboot
- /k2/server/httpd/bin/apachectl stop;apachectl start
9. http PID 정보를 가지고 kill -11 수행
- kill -11 1333
10. core dump 디렉토리에서 확인
- ls -l /logs/apache_dump
'회사에서' 카테고리의 다른 글
글쓰기의 어려움 그리고 논리적으로 생각하기 (0) | 2009.10.01 |
---|---|
localize 개발자의 어려움 (0) | 2009.09.07 |
나는 지금 어디로 가고 있는가? (0) | 2009.09.03 |
금일의 뻘짓... (0) | 2009.08.10 |
Be careful with the sendmsg() family of functions (0) | 2009.08.06 |
DLL 라이브러리 참조 경로 (0) | 2009.07.14 |
사무실에서 필요한 기술들 (0) | 2009.06.01 |
요새 드는 느낌들.. (0) | 2009.05.13 |
입사후 약 4개월 되어가는 현재의 반환점 (0) | 2009.03.31 |
작년 말에 회사를 옮겼다. (0) | 2009.03.26 |
- Total
- Today
- Yesterday
- 꿈
- 아웃라이어
- Datapump
- getGeneratedKeys
- 성공의길
- 구글
- 다짐
- shared all
- NHN 면접
- 커뮤니케이션의 7가지 나쁜 습관들
- 디자인패턴
- 오라클
- 튜닝
- oracle
- 브레인피드백
- CUBRID
- 일본전산
- 퇴사
- shared everything
- 셀프 조인
- 큐브리드
- auto increment
- DB
- 습관의힘
- 바이오해킹
- 구조주의 인류학
- 프로젝트
- ChatGPT
- 카이에 소바주 시리즈
- 데이터과학
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |