simple simple question# Unix - 噫吁兮,危乎高哉
d*o
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.
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.