Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Too many open files #155

Closed
heaven opened this issue Dec 18, 2015 · 4 comments
Closed

Too many open files #155

heaven opened this issue Dec 18, 2015 · 4 comments

Comments

@heaven
Copy link

heaven commented Dec 18, 2015

Seeing this in the sidekiq's log:

2015-12-17T17:42:03.264Z 31734 TID-1nasn0 ERROR: Too many open files @ rb_sysopen - /var/www/crm.wegohealth.com/shared/bundle/ruby/2.2.0/gems/sidekiq-unique-jobs-4.0.9/redis/aquire_lock.lua
2015-12-17T17:42:03.265Z 31734 TID-1nasn0 ERROR: /var/www/crm.wegohealth.com/shared/bundle/ruby/2.2.0/gems/sidekiq-unique-jobs-4.0.9/lib/sidekiq_unique_jobs/scripts.rb:39:in `read'

Also found the gem is not reliable some times, there are orphaned locks in the queue, and they supposed to contain the job id, but sometimes they contain one of these values: [], null, false.

UPD: all this was observed with 4.0.9, just upgraded to 4.0.13, testing.

@mhenrixon
Copy link
Owner

mhenrixon commented Dec 18, 2015 via email

@heaven
Copy link
Author

heaven commented Dec 18, 2015

Yeah, I increased the ulimit already, but this error was always happening namely on aquire_lock.lua line, seemed weird to me, that's why I posted here.

@heaven
Copy link
Author

heaven commented Dec 18, 2015

Btw it seems it does work well with 4.0.13, thx.

@heaven heaven closed this as completed Dec 18, 2015
@mhenrixon
Copy link
Owner

I'll have a look at it but the way it works is that the gem reads the contents of the file. The scripts are then cached in redis. The only time this would be a problem is if either the files was always read or the thing i would like to investigate the file is not closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants