I get a "Too many open files" error #135
-
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 5 replies
-
I don't think it is a good idea to have MANY DBs. You just create one DB. Encode your date information into your key. Say |
Beta Was this translation helpful? Give feedback.
-
Even like this you can choose to iterate over just a single date, by seeking to, say, |
Beta Was this translation helpful? Give feedback.
-
BTW, how many 'dates' do you have. |
Beta Was this translation helpful? Give feedback.
-
I have only 40 dates, I am afraid of corruption and the need to recreate the full dataset if my write stops in the middle, so it will be easier to recreate a single date than to recreate the full dataset. What do you think? |
Beta Was this translation helpful? Give feedback.
-
Hi @Congyuwang thanks a lot!
Any idea? thanks This is how I write the files:
|
Beta Was this translation helpful? Give feedback.
-
If this still does not work, try to increase user limits: You can increase the limits temporarily using
before running your program.
|
Beta Was this translation helpful? Give feedback.
If this still does not work, try to increase user limits:
You can increase the limits temporarily using
ulimit
, or you can make permanent changes by editing configuration files.before running your program.
Permanently:
Edit the
/etc/security/limits.conf
file and add or modify the following lines:Replace
username
with the actual username.You can also apply changes system-wide: