본문 바로가기
Solaris

File Decriptor 늘리기

by 레이루이 2008. 5. 5.
반응형
8년 전에 Solaris 1.X 에서 Brixton 이라는 SNA emulator를 쓴 적이 있는데
users 수가 늘어나자 계속 system이 PANIC 되더군요.
 
당시 Brixton사의 엔지니어와 통화하니 제일 먼저 File Decriptor를 확인해 보더군여.
값을 128로 늘여 주니 문제가 해결 되었읍니다.
 
  Solaris 2.X에는 왜 limit가 없나 했더니 ulimit란게 있더군요.
 
  [ulimit usuage]
 
  Max size of data segment of heap (KB)
  % ulimit -d
 
  Max file size (512B block)
  % ulimit -f
 
  Max file descriptor Plus 1
  % ulimit -n
  
  Max size of stack segment (KB)
  % ulimit -s
 
  Max CPU time (seconds)
  % ulimit -t
 
  Max size of virtual Memory (KB)
  % ulimit -v
 
  모든내용 보기 입니다.
  % ulimit -a
  
  file descriptor를 강제적으로 바꿀때 사용
  % ulimit -n 1024
 
  위의 사용은 콘쉘이므로 씨쉘이나 본쉘일 경우는
  매뉴얼 페이지를 참조하세요
  % man ulimit
 
  글구 시스템 파일 변경법
  /etc/system
   다음 항목 추가
  set rlim_fd_cur = 0x400
 
  위 내용은 화일 디스크립터를 1024로 늘려줍니다.
반응형