I get a "Too many open files" error #135
|
Hi, |
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 |
|
Even like this you can choose to iterate over just a single date, by seeking to, say, |
|
BTW, how many 'dates' do you have. |
|
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? |
|
Hi @Congyuwang thanks a lot! Any idea? thanks This is how I write the files: |
|
If this still does not work, try to increase user limits: You can increase the limits temporarily using
before running your program.
|
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.conffile and add or modify the following lines:Replace
usernamewith the actual username.You can also apply changes system-wide: