Skip to content

Linux 파일 오픈 갯수 확인

조회 수 23386 추천 수 0 2009.05.10 05:44:02
 

1. 파일 오픈 갯수 확인

[root@ihelpers linux]# ulimit -a
core file size        (blocks, -c) 0
data seg size         (kbytes, -d) unlimited
file size             (blocks, -f) unlimited
max locked memory     (kbytes, -l) unlimited
max memory size       (kbytes, -m) unlimited
open files                    (-n) 1024
pipe size          (512 bytes, -p) 8
stack size            (kbytes, -s) 8192
cpu time             (seconds, -t) unlimited
max user processes            (-u) 7168
virtual memory        (kbytes, -v) unlimited
[root@ihelpers linux]#

open files 가 1024로써 이것이 사용자가 열수 있는 최대 파일 오픈 갯수입니다. 유닉스/리눅스에서 소켓이나 장치등은 하나의 파일로 인식되기에 1024가 이상은 오픈을 할 수가 없습니다.

2. fs.file-max 수정

[root@ihelpers linux]# sysctl -n fs.file-max
32768

[root@ihelpers linux]# vi /etc/sysctl.conf
fs.file-max=2048

3. open files 수정

[root@ihelpers linux]# ulimit -n 3072

[root@ihelpers root]# vi .bash_profile

ulimit -n 3072

profile

일요일은 짜빠게뤼~ 먹는날~^^

엮인글 :
http://adminplay.com/1624/80e/trackback
List of Articles
번호 제목 글쓴이 날짜sort 조회 수
47 top 화면 내용중 load average와 PRI : priority(우선순위... ADMINPLAY 2013-12-24 5138
46 ModSecurity 로그파일의 사이즈가 너무 큰데 이를 날짜나 ... file ADMINPLAY 2013-12-29 6536
45 ll 명령시 날짜 전체가 보이도록 하기 ADMINPLAY 2014-01-02 5431
44 ZFS 파일에 ACL 설정 ADMINPLAY 2014-02-03 5271
43 ctime, mtime, atime 다른 점 설명 ADMINPLAY 2014-02-07 5953
42 VirtualBox 4.3 Released – Install on RHEL/CentOS/Fedor... ADMINPLAY 2014-02-14 7272
41 CentOS 6.5 에서 VirtualBox 4.3 설치후 VirtualBox 구동... ADMINPLAY 2014-02-14 7795
40 Strace - 시스템콜과 신호 추적 file ADMINPLAY 2014-02-25 6047
39 linux daemon (리눅스 데몬 설명) ADMINPLAY 2014-02-26 648122
38 디스크 UUID 변경후 하드부팅정보 수정하기 ADMINPLAY 2014-02-26 21020
37 Linux 마우스 휠 방향 바꾸기 (mac 처럼 마우스 휠 바꾸기) ADMINPLAY 2014-02-27 11848
36 vimrc 설정 file ADMINPLAY 2014-03-01 6092
35 telnet 과 ssh 의 차이점 ADMINPLAY 2014-03-01 6462
34 OS X 10.9 매버릭스의 기본 파일공유 프로토콜은 AFP가 아... ADMINPLAY 2014-03-04 11036
33 OS X 매버릭스가 NAS, 윈도우 PC 등 SMB 장비에 연결하지 ... ADMINPLAY 2014-03-04 6743
32 CentOS 6.X GUI 로그인 화면에서 로그인 했던 계정 리스트... ADMINPLAY 2014-03-05 16658
31 SVN 클라이언트 명령어 ADMINPLAY 2014-03-18 7438
30 python mysql connector 설치 및 SQLAachemy 연동 ADMINPLAY 2014-03-27 7882
29 python과 mysql 연동시 libmysqlclient_r.so.* 에러가 날 ... ADMINPLAY 2014-03-27 5527
28 CentOS 6.5 + Python2.7 + MySQL_Python-1.2.3 ADMINPLAY 2014-03-28 7952

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234