반응형
  1. prstat -s rss

    '-s' sorts prstat output by rss column (see man page for other columns). Also try '-a' option for a per user accumulation.

  2. ps -eo pid,pmem,vsz,rss,comm | sort -rnk2 | head

    Top 10 RAM consumers. '-o pmem' displays percentage of resident memory i.e. RAM used by process.

  3. ls -lh /proc/{pid}/as

    Easy way to show total address space (vsz) of a process. Useful in combination with pgrep to accumulate by user, pattern, ... e.g.:

    for pid in `pgrep -U webserver`; do ls -lh /proc/$pid/as; done


반응형
반응형

UNIX 및 Linux 운영 체제에서 ulimit 값 설정

UNIX 또는 Linux 운영 체제에서 적절한 ulimit 값을 설정하면 IBM® Cognos® Business Intelligence가 수행하는 방식에 영향을 미칠 수 있습니다.

예를 들어, Linux 운영 체제에서는 스택 ulimit 설정이 원인이 되어 발생하는 문제점에는 대형 보고서를 처리할 때 BIBusTKServerMain의 비정상적으로 높은 메모리 사용량 또는 BIBusTKServerMain 오류가 포함됩니다.

  • Linux 운영 체제에서 32비트 보고서 서비스를 사용 중인 경우 보고서는 실패할 수 있습니다.
  • Linux 운영 체제에서 64비트 보고서 서비스를 사용 중인 경우 실행 중인 보고서 또는 유휴 BIBusTKServerMain 프로세스가 사용 가능한 모든 RAM을 사용할 수 있습니다.

반면 UNIX 운영 체제에서는 스택 ulimit 설정이 너무 낮은 경우에 문제가 발생할 수 있습니다.

스택 ulimit 설정을 올바르게 설정하면 이러한 문제점을 방지할 수 있습니다.

새 설치에 권장되는 ulimit 설정은 다음과 같습니다.

IBM AIX®
  • CPU 시간(초): ulimit -t unlimited
  • 파일 크기(블록): ulimit -f unlimited
  • 최대 메모리 크기(KB): ulimit -m unlimited
  • 최대 사용자 프로세스: ulimit -u unlimited
  • 열린 파일 수: ulimit -n 8192(최소값)
  • 스택 크기(KB): ulimit -s 8192(최소값)
  • 가상 메모리(KB): ulimit -v unlimited
Sun Solaris
  • CPU 시간(초): ulimit -t unlimited
  • 파일 크기(블록): ulimit -f unlimited
  • 최대 사용자 프로세스: ulimit -u unlimited
  • 메모리(KB): ulimit -m unlimited
  • 열린 파일 수: ulimit -n 8192(최소값)
  • 스택 크기(KB): ulimit -s 8192(최소값)
  • 가상 메모리(KB): ulimit -v unlimited
HP-UX
  • CPU 시간(초): ulimit -t unlimited
  • 파일 크기(블록): ulimit -f unlimited
  • 메모리(KB): ulimit -m unlimited
  • 파일 수(디스크립터): ulimit -n 8192(최소값)
  • 스택 크기(KB): ulimit -s 8192(최소값)
Linux(x 및 z)
  • CPU 시간(초): ulimit -t unlimited
  • 파일 크기(블록): ulimit -f unlimited
  • 최대 메모리 크기(KB): ulimit -m unlimited
  • 최대 사용자 프로세스: ulimit -u unlimited
  • 열린 파일 수: ulimit -n 8192(최소값)
  • 스택 크기(KB): ulimit -s unlimited
  • 가상 메모리(KB): ulimit -v unlimited
참고: 애플리케이션의 수명 주기 동안 이러한 설정을 환경에 맞게 조정해야 할 수 있습니다.


반응형

+ Recent posts