d*o 发帖数: 108 | 1 Can someone explain in plain English/Chinese what is a file descriptor?
Here is the context: I run a big Java job on unix; get an out-of-memory error.
It turns out that if I run the command 'limit descriptors 65', then the error
goes away. But if I run 'limit descriptors 64', the error comes back.
It seems all the numbers given by 'limit' is the power of 2. Is there a good
reason for that? or just a convention?
Thanks. | j*******e 发帖数: 82 | 2
呵呵, 是不是和DOS里面的FILE HANDLE差不多啊? 就是一个程序能够同时
打开的文件数目?
【在 d*o 的大作中提到】![](/moin_static193/solenoid/img/up.png) : Can someone explain in plain English/Chinese what is a file descriptor? : Here is the context: I run a big Java job on unix; get an out-of-memory error. : It turns out that if I run the command 'limit descriptors 65', then the error : goes away. But if I run 'limit descriptors 64', the error comes back. : It seems all the numbers given by 'limit' is the power of 2. Is there a good : reason for that? or just a convention? : Thanks.
|
|