-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Process timeout error when view opens #4439
Comments
Is the view getting fully build when you query it? |
Try increasing the [query_server_config] os_process_limit to something higher, say 500 and see if that helps. Do you see any other errors or crashes in the log? Or use any reduce functions that may produce large results. |
@big-r81, I wait until all tasks in tasks view are done, and only then trying to open view. @nickva, thank you for the suggestion. It doesn't help, i even tried 50000, but problem is still here. I don't use any reduce function at all. Tried _count, but result is same. Also I've updated my couchdb installation to 3.3.1, but it doesn't help too. |
Installed couchdb locally on my macbook and have got exactly same problem with same data. I found that there are document with more than 120mb of data. I have deleted this document from database and view was loaded successfully. But it doesn't eliminate the problem. I need this document to be in my database and i cannot see any problem for couch to hold and process it. My Fact that couchdb doesn't provide any meaningful error message is very frustrating. Process obviously doesn't time out, it just fails at some point. I've enabled debug logs and found the id of last processed document logged before error has happened and it was exactly same id that I've deleted. I tried to increase all possible process limits but it didn't affect situation at all. It continued to fail after 5-10 seconds when i opened view. Question is still here: how to eliminate the error and put 120mb document to database? |
After some research i've got much more ridiculous behavior. I've loaded big document back to reproduce error again and for some reason error is different now. It just crashes with out of memory after it eats all available 10GB of available RAM.
It happens while processing exactly same document. Checked my another server with same problem and memory usage is normal while i still get os process timed out error. |
Hi, some suggestions:
|
@big-r81 good idea about couchjs memory limit. Seeing With documents that large couchjs process will crash because it has a heap size limit of 64Mb by default. You can try to increase using the See https://docs.couchdb.org/en/stable/config/query-servers.html#query-servers-definition for more info about it |
@nickva, thank you. It works as expected now. |
"OS process timed out" error when trying to open big view. View size is hundreds of thousands documents and almost 400mb on disc.
Steps to Reproduce
Expected Behaviour
view just opens
Your Environment
Additional Context
Related logs:
I already have tried to increase os_process_timeout but it didn't affect anything.
The text was updated successfully, but these errors were encountered: