You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Michael Newman (JIRA)" <ji...@apache.org> on 2011/08/11 22:58:27 UTC
[jira] [Created] (COUCHDB-1246) CouchJS process spawned and not
killed on each Reduce Overflow Error
CouchJS process spawned and not killed on each Reduce Overflow Error
--------------------------------------------------------------------
Key: COUCHDB-1246
URL: https://issues.apache.org/jira/browse/COUCHDB-1246
Project: CouchDB
Issue Type: Bug
Components: JavaScript View Server
Affects Versions: 1.1
Environment: Linux Debian Squeeze
[query_server_config]
reduce_limit = true
os_process_limit = 25
Reporter: Michael Newman
Running the view attached results in a reduce_overflow_error. For each reduce_overflow_error a process of /usr/lib/couchdb/bin/couchjs /usr/share/couchdb/server/main.js starts running. Once this gets to 25, which is the os_process_limit by default, all views result in a server error: timeout {gen_server,call,[couch_query_servers,{get_proc,<<"javascript">>}]}
As far as I can tell, these processes and the non-response from the views will continue until couch is restarted.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (COUCHDB-1246) CouchJS process spawned and not
killed on each Reduce Overflow Error
Posted by "Paul Joseph Davis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-1246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13086769#comment-13086769 ]
Paul Joseph Davis commented on COUCHDB-1246:
--------------------------------------------
I swear to christ I clicked the for contribution button. Not that it matters. Also, how does one delete attachments?
> CouchJS process spawned and not killed on each Reduce Overflow Error
> --------------------------------------------------------------------
>
> Key: COUCHDB-1246
> URL: https://issues.apache.org/jira/browse/COUCHDB-1246
> Project: CouchDB
> Issue Type: Bug
> Components: JavaScript View Server
> Affects Versions: 1.1
> Environment: Linux Debian Squeeze
> [query_server_config]
> reduce_limit = true
> os_process_limit = 25
> Reporter: Michael Newman
> Attachments: COUCHDB-1246.patch, COUCHDB-1246.patch, categories, os_pool_trunk.patch, os_pool_trunk.patch, os_pool_trunk.patch
>
>
> Running the view attached results in a reduce_overflow_error. For each reduce_overflow_error a process of /usr/lib/couchdb/bin/couchjs /usr/share/couchdb/server/main.js starts running. Once this gets to 25, which is the os_process_limit by default, all views result in a server error: timeout {gen_server,call,[couch_query_servers,{get_proc,<<"javascript">>}]}
> As far as I can tell, these processes and the non-response from the views will continue until couch is restarted.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (COUCHDB-1246) CouchJS process spawned and not
killed on each Reduce Overflow Error
Posted by "Filipe Manana (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-1246?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Filipe Manana updated COUCHDB-1246:
-----------------------------------
Attachment: os_pool_trunk.patch
> CouchJS process spawned and not killed on each Reduce Overflow Error
> --------------------------------------------------------------------
>
> Key: COUCHDB-1246
> URL: https://issues.apache.org/jira/browse/COUCHDB-1246
> Project: CouchDB
> Issue Type: Bug
> Components: JavaScript View Server
> Affects Versions: 1.1
> Environment: Linux Debian Squeeze
> [query_server_config]
> reduce_limit = true
> os_process_limit = 25
> Reporter: Michael Newman
> Attachments: COUCHDB-1246.patch, categories, os_pool_trunk.patch, os_pool_trunk.patch, os_pool_trunk.patch
>
>
> Running the view attached results in a reduce_overflow_error. For each reduce_overflow_error a process of /usr/lib/couchdb/bin/couchjs /usr/share/couchdb/server/main.js starts running. Once this gets to 25, which is the os_process_limit by default, all views result in a server error: timeout {gen_server,call,[couch_query_servers,{get_proc,<<"javascript">>}]}
> As far as I can tell, these processes and the non-response from the views will continue until couch is restarted.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (COUCHDB-1246) CouchJS process spawned and not
killed on each Reduce Overflow Error
Posted by "Filipe Manana (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-1246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13086826#comment-13086826 ]
Filipe Manana commented on COUCHDB-1246:
----------------------------------------
Thanks Paul, looks good to me.
> CouchJS process spawned and not killed on each Reduce Overflow Error
> --------------------------------------------------------------------
>
> Key: COUCHDB-1246
> URL: https://issues.apache.org/jira/browse/COUCHDB-1246
> Project: CouchDB
> Issue Type: Bug
> Components: JavaScript View Server
> Affects Versions: 1.1
> Environment: Linux Debian Squeeze
> [query_server_config]
> reduce_limit = true
> os_process_limit = 25
> Reporter: Michael Newman
> Attachments: COUCHDB-1246.patch, categories, os_pool_trunk.patch, os_pool_trunk.patch, os_pool_trunk.patch
>
>
> Running the view attached results in a reduce_overflow_error. For each reduce_overflow_error a process of /usr/lib/couchdb/bin/couchjs /usr/share/couchdb/server/main.js starts running. Once this gets to 25, which is the os_process_limit by default, all views result in a server error: timeout {gen_server,call,[couch_query_servers,{get_proc,<<"javascript">>}]}
> As far as I can tell, these processes and the non-response from the views will continue until couch is restarted.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (COUCHDB-1246) CouchJS process spawned and not
killed on each Reduce Overflow Error
Posted by "Filipe Manana (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-1246?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Filipe Manana updated COUCHDB-1246:
-----------------------------------
Attachment: os_pool_trunk.patch
Thanks Paul. I'll probably be updating the patch one or two times until then.
> CouchJS process spawned and not killed on each Reduce Overflow Error
> --------------------------------------------------------------------
>
> Key: COUCHDB-1246
> URL: https://issues.apache.org/jira/browse/COUCHDB-1246
> Project: CouchDB
> Issue Type: Bug
> Components: JavaScript View Server
> Affects Versions: 1.1
> Environment: Linux Debian Squeeze
> [query_server_config]
> reduce_limit = true
> os_process_limit = 25
> Reporter: Michael Newman
> Attachments: COUCHDB-1246.patch, categories, os_pool_trunk.patch, os_pool_trunk.patch
>
>
> Running the view attached results in a reduce_overflow_error. For each reduce_overflow_error a process of /usr/lib/couchdb/bin/couchjs /usr/share/couchdb/server/main.js starts running. Once this gets to 25, which is the os_process_limit by default, all views result in a server error: timeout {gen_server,call,[couch_query_servers,{get_proc,<<"javascript">>}]}
> As far as I can tell, these processes and the non-response from the views will continue until couch is restarted.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (COUCHDB-1246) CouchJS process spawned and not
killed on each Reduce Overflow Error
Posted by "Paul Joseph Davis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-1246?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Joseph Davis updated COUCHDB-1246:
---------------------------------------
Attachment: COUCHDB-1246.patch
Yeah, this is quite the racy error condition. This patch should fix things though. Basic idea is that instead of doing a link dance we just monitor every new os process and remove them when they exit.
Also, couch_os_process's were traping exits and ignoring info messages which left them open, hence the system build up.
This passes my local tests, but I'm not sure how to write an etap for them. I'll commit it if someone else can duplicate the fix though.
> CouchJS process spawned and not killed on each Reduce Overflow Error
> --------------------------------------------------------------------
>
> Key: COUCHDB-1246
> URL: https://issues.apache.org/jira/browse/COUCHDB-1246
> Project: CouchDB
> Issue Type: Bug
> Components: JavaScript View Server
> Affects Versions: 1.1
> Environment: Linux Debian Squeeze
> [query_server_config]
> reduce_limit = true
> os_process_limit = 25
> Reporter: Michael Newman
> Attachments: COUCHDB-1246.patch, categories
>
>
> Running the view attached results in a reduce_overflow_error. For each reduce_overflow_error a process of /usr/lib/couchdb/bin/couchjs /usr/share/couchdb/server/main.js starts running. Once this gets to 25, which is the os_process_limit by default, all views result in a server error: timeout {gen_server,call,[couch_query_servers,{get_proc,<<"javascript">>}]}
> As far as I can tell, these processes and the non-response from the views will continue until couch is restarted.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (COUCHDB-1246) CouchJS process spawned and not
killed on each Reduce Overflow Error
Posted by "Michael Newman (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-1246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13083873#comment-13083873 ]
Michael Newman commented on COUCHDB-1246:
-----------------------------------------
Interesting. I run this view 25 times and I get 25 couchjs processes and any other view I request after that returns this timeout.
This is a Debian server running on an Amazon EC2 micro instance if that helps at all.
> CouchJS process spawned and not killed on each Reduce Overflow Error
> --------------------------------------------------------------------
>
> Key: COUCHDB-1246
> URL: https://issues.apache.org/jira/browse/COUCHDB-1246
> Project: CouchDB
> Issue Type: Bug
> Components: JavaScript View Server
> Affects Versions: 1.1
> Environment: Linux Debian Squeeze
> [query_server_config]
> reduce_limit = true
> os_process_limit = 25
> Reporter: Michael Newman
> Attachments: categories
>
>
> Running the view attached results in a reduce_overflow_error. For each reduce_overflow_error a process of /usr/lib/couchdb/bin/couchjs /usr/share/couchdb/server/main.js starts running. Once this gets to 25, which is the os_process_limit by default, all views result in a server error: timeout {gen_server,call,[couch_query_servers,{get_proc,<<"javascript">>}]}
> As far as I can tell, these processes and the non-response from the views will continue until couch is restarted.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (COUCHDB-1246) CouchJS process spawned and not
killed on each Reduce Overflow Error
Posted by "Paul Joseph Davis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-1246?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Joseph Davis updated COUCHDB-1246:
---------------------------------------
Attachment: (was: COUCHDB-1246.patch)
> CouchJS process spawned and not killed on each Reduce Overflow Error
> --------------------------------------------------------------------
>
> Key: COUCHDB-1246
> URL: https://issues.apache.org/jira/browse/COUCHDB-1246
> Project: CouchDB
> Issue Type: Bug
> Components: JavaScript View Server
> Affects Versions: 1.1
> Environment: Linux Debian Squeeze
> [query_server_config]
> reduce_limit = true
> os_process_limit = 25
> Reporter: Michael Newman
> Attachments: COUCHDB-1246.patch, categories, os_pool_trunk.patch, os_pool_trunk.patch, os_pool_trunk.patch
>
>
> Running the view attached results in a reduce_overflow_error. For each reduce_overflow_error a process of /usr/lib/couchdb/bin/couchjs /usr/share/couchdb/server/main.js starts running. Once this gets to 25, which is the os_process_limit by default, all views result in a server error: timeout {gen_server,call,[couch_query_servers,{get_proc,<<"javascript">>}]}
> As far as I can tell, these processes and the non-response from the views will continue until couch is restarted.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (COUCHDB-1246) CouchJS process spawned and not
killed on each Reduce Overflow Error
Posted by "Filipe Manana (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-1246?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Filipe Manana updated COUCHDB-1246:
-----------------------------------
Attachment: os_pool_trunk.patch
Paul, as we were discussing on IRC, I've a reproducible case where querying a view just hangs and we get os pool full, blocking subsequent requests.
I attach here a wip patch, which adds an etap test (your patch is making this test fail).
> CouchJS process spawned and not killed on each Reduce Overflow Error
> --------------------------------------------------------------------
>
> Key: COUCHDB-1246
> URL: https://issues.apache.org/jira/browse/COUCHDB-1246
> Project: CouchDB
> Issue Type: Bug
> Components: JavaScript View Server
> Affects Versions: 1.1
> Environment: Linux Debian Squeeze
> [query_server_config]
> reduce_limit = true
> os_process_limit = 25
> Reporter: Michael Newman
> Attachments: COUCHDB-1246.patch, categories, os_pool_trunk.patch
>
>
> Running the view attached results in a reduce_overflow_error. For each reduce_overflow_error a process of /usr/lib/couchdb/bin/couchjs /usr/share/couchdb/server/main.js starts running. Once this gets to 25, which is the os_process_limit by default, all views result in a server error: timeout {gen_server,call,[couch_query_servers,{get_proc,<<"javascript">>}]}
> As far as I can tell, these processes and the non-response from the views will continue until couch is restarted.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (COUCHDB-1246) CouchJS process spawned and not
killed on each Reduce Overflow Error
Posted by "Michael Newman (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-1246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13083557#comment-13083557 ]
Michael Newman commented on COUCHDB-1246:
-----------------------------------------
Each reduce_overflow_error, yes. This does not happen with another (proper) view.
> CouchJS process spawned and not killed on each Reduce Overflow Error
> --------------------------------------------------------------------
>
> Key: COUCHDB-1246
> URL: https://issues.apache.org/jira/browse/COUCHDB-1246
> Project: CouchDB
> Issue Type: Bug
> Components: JavaScript View Server
> Affects Versions: 1.1
> Environment: Linux Debian Squeeze
> [query_server_config]
> reduce_limit = true
> os_process_limit = 25
> Reporter: Michael Newman
> Attachments: categories
>
>
> Running the view attached results in a reduce_overflow_error. For each reduce_overflow_error a process of /usr/lib/couchdb/bin/couchjs /usr/share/couchdb/server/main.js starts running. Once this gets to 25, which is the os_process_limit by default, all views result in a server error: timeout {gen_server,call,[couch_query_servers,{get_proc,<<"javascript">>}]}
> As far as I can tell, these processes and the non-response from the views will continue until couch is restarted.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (COUCHDB-1246) CouchJS process spawned and not
killed on each Reduce Overflow Error
Posted by "Paul Joseph Davis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-1246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13086083#comment-13086083 ]
Paul Joseph Davis commented on COUCHDB-1246:
--------------------------------------------
Filipe,
Awesome work on the test. When I stared at it last I was contemplating writing a huge monolithic thing to setup a view and do all that crazy stuff. Knowing we can work down at the os process level should allow us to get a better handle on this.
I'll try looking at this closer tonight or tomorrow.
> CouchJS process spawned and not killed on each Reduce Overflow Error
> --------------------------------------------------------------------
>
> Key: COUCHDB-1246
> URL: https://issues.apache.org/jira/browse/COUCHDB-1246
> Project: CouchDB
> Issue Type: Bug
> Components: JavaScript View Server
> Affects Versions: 1.1
> Environment: Linux Debian Squeeze
> [query_server_config]
> reduce_limit = true
> os_process_limit = 25
> Reporter: Michael Newman
> Attachments: COUCHDB-1246.patch, categories, os_pool_trunk.patch
>
>
> Running the view attached results in a reduce_overflow_error. For each reduce_overflow_error a process of /usr/lib/couchdb/bin/couchjs /usr/share/couchdb/server/main.js starts running. Once this gets to 25, which is the os_process_limit by default, all views result in a server error: timeout {gen_server,call,[couch_query_servers,{get_proc,<<"javascript">>}]}
> As far as I can tell, these processes and the non-response from the views will continue until couch is restarted.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (COUCHDB-1246) CouchJS process spawned and not
killed on each Reduce Overflow Error
Posted by "Michael Newman (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-1246?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Newman updated COUCHDB-1246:
------------------------------------
Attachment: categories
Using this view, a reduce overflow error is created which spawns a CouchJS process that doesn't die.
> CouchJS process spawned and not killed on each Reduce Overflow Error
> --------------------------------------------------------------------
>
> Key: COUCHDB-1246
> URL: https://issues.apache.org/jira/browse/COUCHDB-1246
> Project: CouchDB
> Issue Type: Bug
> Components: JavaScript View Server
> Affects Versions: 1.1
> Environment: Linux Debian Squeeze
> [query_server_config]
> reduce_limit = true
> os_process_limit = 25
> Reporter: Michael Newman
> Attachments: categories
>
>
> Running the view attached results in a reduce_overflow_error. For each reduce_overflow_error a process of /usr/lib/couchdb/bin/couchjs /usr/share/couchdb/server/main.js starts running. Once this gets to 25, which is the os_process_limit by default, all views result in a server error: timeout {gen_server,call,[couch_query_servers,{get_proc,<<"javascript">>}]}
> As far as I can tell, these processes and the non-response from the views will continue until couch is restarted.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (COUCHDB-1246) CouchJS process spawned and not
killed on each Reduce Overflow Error
Posted by "Filipe Manana (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-1246?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Filipe Manana resolved COUCHDB-1246.
------------------------------------
Resolution: Fixed
Fix Version/s: 1.2
1.1.1
Applied to trunk and branch 1.1.x
> CouchJS process spawned and not killed on each Reduce Overflow Error
> --------------------------------------------------------------------
>
> Key: COUCHDB-1246
> URL: https://issues.apache.org/jira/browse/COUCHDB-1246
> Project: CouchDB
> Issue Type: Bug
> Components: JavaScript View Server
> Affects Versions: 1.1
> Environment: Linux Debian Squeeze
> [query_server_config]
> reduce_limit = true
> os_process_limit = 25
> Reporter: Michael Newman
> Fix For: 1.1.1, 1.2
>
> Attachments: COUCHDB-1246.patch, categories, os_pool_trunk.patch, os_pool_trunk.patch, os_pool_trunk.patch
>
>
> Running the view attached results in a reduce_overflow_error. For each reduce_overflow_error a process of /usr/lib/couchdb/bin/couchjs /usr/share/couchdb/server/main.js starts running. Once this gets to 25, which is the os_process_limit by default, all views result in a server error: timeout {gen_server,call,[couch_query_servers,{get_proc,<<"javascript">>}]}
> As far as I can tell, these processes and the non-response from the views will continue until couch is restarted.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (COUCHDB-1246) CouchJS process spawned and not
killed on each Reduce Overflow Error
Posted by "Paul Joseph Davis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-1246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13083791#comment-13083791 ]
Paul Joseph Davis commented on COUCHDB-1246:
--------------------------------------------
I've got it so that I can reproduce the fact that couchjs processes aren't going away. I'm not able to get it so that it hits the timeout though. It ends up getting to one under than then sits there. So I'm either not reproducing this directly, or perhaps other people have concurrency adding to the issue.
Anyway, I'll keep trying to track down where we lose processes.
> CouchJS process spawned and not killed on each Reduce Overflow Error
> --------------------------------------------------------------------
>
> Key: COUCHDB-1246
> URL: https://issues.apache.org/jira/browse/COUCHDB-1246
> Project: CouchDB
> Issue Type: Bug
> Components: JavaScript View Server
> Affects Versions: 1.1
> Environment: Linux Debian Squeeze
> [query_server_config]
> reduce_limit = true
> os_process_limit = 25
> Reporter: Michael Newman
> Attachments: categories
>
>
> Running the view attached results in a reduce_overflow_error. For each reduce_overflow_error a process of /usr/lib/couchdb/bin/couchjs /usr/share/couchdb/server/main.js starts running. Once this gets to 25, which is the os_process_limit by default, all views result in a server error: timeout {gen_server,call,[couch_query_servers,{get_proc,<<"javascript">>}]}
> As far as I can tell, these processes and the non-response from the views will continue until couch is restarted.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (COUCHDB-1246) CouchJS process spawned and not
killed on each Reduce Overflow Error
Posted by "Paul Joseph Davis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-1246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13083545#comment-13083545 ]
Paul Joseph Davis commented on COUCHDB-1246:
--------------------------------------------
And each call to the view ends up creating a new couchjs process right?
> CouchJS process spawned and not killed on each Reduce Overflow Error
> --------------------------------------------------------------------
>
> Key: COUCHDB-1246
> URL: https://issues.apache.org/jira/browse/COUCHDB-1246
> Project: CouchDB
> Issue Type: Bug
> Components: JavaScript View Server
> Affects Versions: 1.1
> Environment: Linux Debian Squeeze
> [query_server_config]
> reduce_limit = true
> os_process_limit = 25
> Reporter: Michael Newman
> Attachments: categories
>
>
> Running the view attached results in a reduce_overflow_error. For each reduce_overflow_error a process of /usr/lib/couchdb/bin/couchjs /usr/share/couchdb/server/main.js starts running. Once this gets to 25, which is the os_process_limit by default, all views result in a server error: timeout {gen_server,call,[couch_query_servers,{get_proc,<<"javascript">>}]}
> As far as I can tell, these processes and the non-response from the views will continue until couch is restarted.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (COUCHDB-1246) CouchJS process spawned and not
killed on each Reduce Overflow Error
Posted by "Paul Joseph Davis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-1246?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Joseph Davis updated COUCHDB-1246:
---------------------------------------
Attachment: COUCHDB-1246.patch
Cleaned up the test. Everything passes for me locally.
> CouchJS process spawned and not killed on each Reduce Overflow Error
> --------------------------------------------------------------------
>
> Key: COUCHDB-1246
> URL: https://issues.apache.org/jira/browse/COUCHDB-1246
> Project: CouchDB
> Issue Type: Bug
> Components: JavaScript View Server
> Affects Versions: 1.1
> Environment: Linux Debian Squeeze
> [query_server_config]
> reduce_limit = true
> os_process_limit = 25
> Reporter: Michael Newman
> Attachments: COUCHDB-1246.patch, COUCHDB-1246.patch, categories, os_pool_trunk.patch, os_pool_trunk.patch, os_pool_trunk.patch
>
>
> Running the view attached results in a reduce_overflow_error. For each reduce_overflow_error a process of /usr/lib/couchdb/bin/couchjs /usr/share/couchdb/server/main.js starts running. Once this gets to 25, which is the os_process_limit by default, all views result in a server error: timeout {gen_server,call,[couch_query_servers,{get_proc,<<"javascript">>}]}
> As far as I can tell, these processes and the non-response from the views will continue until couch is restarted.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (COUCHDB-1246) CouchJS process spawned and not
killed on each Reduce Overflow Error
Posted by "Paul Joseph Davis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-1246?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Joseph Davis updated COUCHDB-1246:
---------------------------------------
Attachment: COUCHDB-1246.patch
Finally found the delete attachments button. It was like a scavenger hunt. Only it sucked.
> CouchJS process spawned and not killed on each Reduce Overflow Error
> --------------------------------------------------------------------
>
> Key: COUCHDB-1246
> URL: https://issues.apache.org/jira/browse/COUCHDB-1246
> Project: CouchDB
> Issue Type: Bug
> Components: JavaScript View Server
> Affects Versions: 1.1
> Environment: Linux Debian Squeeze
> [query_server_config]
> reduce_limit = true
> os_process_limit = 25
> Reporter: Michael Newman
> Attachments: COUCHDB-1246.patch, categories, os_pool_trunk.patch, os_pool_trunk.patch, os_pool_trunk.patch
>
>
> Running the view attached results in a reduce_overflow_error. For each reduce_overflow_error a process of /usr/lib/couchdb/bin/couchjs /usr/share/couchdb/server/main.js starts running. Once this gets to 25, which is the os_process_limit by default, all views result in a server error: timeout {gen_server,call,[couch_query_servers,{get_proc,<<"javascript">>}]}
> As far as I can tell, these processes and the non-response from the views will continue until couch is restarted.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira