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/588/trackback
List of Articles
번호 제목 글쓴이 날짜 조회 수sort
367 linux daemon (리눅스 데몬 설명) ADMINPLAY 2014-02-26 648129
366 대용량 HDD 파티셔닝(Mass storage Partitioning) (GPT 파... ADMINPLAY 2010-04-14 74423
365 FFMPEG를 가장쉽게 설치하는 방법(ffmpeg-php 등) ADMINPLAY 2010-05-03 67194
364 rrdtool 컴파일시 에러 configure: error: Please fix the... ADMINPLAY 2009-08-08 65554
363 커널 2.6으로 업그레이드!「A to Z」 ADMINPLAY 2009-08-08 65201
362 e2fsck - 파일 시스템 복구 및 검사. - fsck file ADMINPLAY 2010-09-12 60904
361 Maskrading ADMIN 2008-11-11 59570
360 배치파일을 이용한 백업방법 l2zeo 2010-03-31 59533
359 시스템 백업과 응급 복구 ADMINPLAY 2009-05-11 59530
358 리눅스 전원부터 부팅이 되기까지의 과정이해 ADMIN 2008-11-11 58405
357 리눅스 디렉토리 구조와 파티션 관리의 기본 ADMINPLAY 2009-05-22 58355
356 hdparm 세부옵션 ADMINPLAY 2012-01-16 55918
355 CentOS 설치 - VMware 상에서 CentOS 설치하기 file l2zeo 2010-02-24 52101
354 Red Hat Linux 9 ADMINPLAY 2009-09-24 51551
353 Dell OMSA 설치 및 이용방법 ADMINPLAY 2014-08-13 50604
352 2TB이상의 Disk를 사용한 Raid6 구성 ADMINPLAY 2015-08-08 47015
351 sulinux 1.0. 서버 패키지 리스트 ADMINPLAY 2011-04-30 46314
350 ORA-01031: insufficient privileges 오류 ADMINPLAY 2010-02-24 41013
349 [APM] 리눅스에서 Apache, PHP, MySQL 등 제거 방법 ADMINPLAY 2009-06-29 39388
348 AIX 필수 명령어 ADMINPLAY 2009-12-10 39131

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234