Subject : Solaris에서 화일 open 갯수를 늘리는 방법 Description : Solaris 에서 open할 수 있는 화일의 갯수를 늘이기 위해서는 다음과 같은 작업을 해주어야 한다. # vi /.cshrc 에 다음 사항을 추가시킨다. limit descriptors 256 -----> 이것이 화일 Open 갯수룰 늘릴수 있는 Key ! # man limit 하면 ----> cshrc에 대한 항목안에 limit 관련 내용들이 display됨. limit [-h] [resource [max-use]] Limit the consumption by the current process or any process it spawns, each not to exceed max-use on the specified resource. If max-use is omitted, print the current limit; if resource is omitted, display all limits. -h Use hard limits instead of the current lim- its. Hard limits impose a ceiling on the values of the current limits. Only the super-user may raise the hard limits. resource is one of: cputime Maximum CPU seconds per pro- cess. filesize Largest single file allowed. datasize Maximum data size (including stack) for the process. stacksize Maximum stack size for the process. coredumpsize Maximum size of a core dump (file). descriptors Maximum value for a file descriptor. max-use is a number, with an optional scaling fac- tor, as follows: nm n megabytes or minutes (for # limit 하면 현재의 setting값이 Display됨. hyundai1# limit -----> 현재 Open할 수 있는 화일 갯수를 보기위한 명려어. cputime unlimited filesize unlimited datasize unlimited stacksize 8192 kbytes coredumpsize unlimited memoryuse unlimited descriptors 64 hyundai1# limit -h ------> H/W적으로 화일 Open할수 있는 갯수 cputime unlimited filesize unlimited datasize unlimited stacksize unlimited coredumpsize unlimited memoryuse unlimited descriptors 256 -------> H/W적으로 화일 Open할수있는 갯수는 256으로 잡혀 있으나 위의 display처럼 64만 현재 사용 가능. # limit descriptors 256 을 /.cshrc 에 추가한 후 보면 hyundai1# limit cputime unlimited filesize unlimited datasize unlimited stacksize 8192 kbytes coredumpsize unlimited memoryuse unlimited descriptors 256 ---------> 바뀌었음. Revision History 작성일자 : 96.06.12 작성자 : 김현 수정일자 : 수정자