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 Schneider (JIRA)" <ji...@apache.org> on 2010/09/26 20:23:36 UTC
[jira] Created: (COUCHDB-893) Error: os_process_error
{exit_status,0} when rendering view on 17 mb doc, couchapp and data
attached
Error: os_process_error {exit_status,0} when rendering view on 17 mb doc, couchapp and data attached
-------------------------------------------------------------------------------------------------------
Key: COUCHDB-893
URL: https://issues.apache.org/jira/browse/COUCHDB-893
Project: CouchDB
Issue Type: Bug
Affects Versions: 1.0.1
Environment: I repeated this on windows and linux (64 bit)
Reporter: Michael Schneider
I have a large set of documents that I harvesting data from. All docs < 9mb render fine (with doc size increased)
Attached is a simple couchapp and one doc.
To reproduce, untar and:
reproduce
1) untar file
2) cd bugdoc/couchapp/bugreport
3) couchapp push bugreport
4) cd bugdoc
5) python submitbadjson.py
open url http://127.0.0.1:5984/_utils/database.html?bugreport/_design/bugreport/_view/buggy
You should see a popup
"(Error: os_process_error
{exit_status,0})
"
Note: I can't seem to find out how to attach data files, please email me if you can't find the data
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (COUCHDB-893) Error: os_process_error
{exit_status,0} when rendering view on 17 mb doc, couchapp and data
attached
Posted by "Michael Schneider (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-893?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12916672#action_12916672 ]
Michael Schneider commented on COUCHDB-893:
-------------------------------------------
https://developer.mozilla.org/en/SpiderMonkey/JSAPI_Reference/JS_SetThreadStackLimit
This page seems to indicate the stack size can be changed programmaticly, can this be a user config option?
> Error: os_process_error {exit_status,0} when rendering view on 17 mb doc, couchapp and data attached
> -------------------------------------------------------------------------------------------------------
>
> Key: COUCHDB-893
> URL: https://issues.apache.org/jira/browse/COUCHDB-893
> Project: CouchDB
> Issue Type: Bug
> Affects Versions: 1.0.1
> Environment: I repeated this on windows and linux (64 bit)
> Reporter: Michael Schneider
> Attachments: bugdoc.tar.gz
>
>
> I have a large set of documents that I harvesting data from. All docs < 9mb render fine (with doc size increased)
> Attached is a simple couchapp and one doc.
> To reproduce, untar and:
> reproduce
> 1) untar file
> 2) cd bugdoc/couchapp/bugreport
> 3) couchapp push bugreport
> 4) cd bugdoc
> 5) python submitbadjson.py
> open url http://127.0.0.1:5984/_utils/database.html?bugreport/_design/bugreport/_view/buggy
> You should see a popup
> "(Error: os_process_error
> {exit_status,0})
> "
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (COUCHDB-893) Error: os_process_error
{exit_status,0} when rendering view on 17 mb doc, couchapp and data
attached
Posted by "Michael Schneider (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-893?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12916663#action_12916663 ]
Michael Schneider commented on COUCHDB-893:
-------------------------------------------
I converted the json doc to a javascript file by adding
var foo = eval( "(" + .... contets_of_bad.json_in_attacted_tar_file..... + ")) );
and saving this as bad.js
when I run
$ couchjs bad.js
I get
"script stack space quota is exhausted"
> Error: os_process_error {exit_status,0} when rendering view on 17 mb doc, couchapp and data attached
> -------------------------------------------------------------------------------------------------------
>
> Key: COUCHDB-893
> URL: https://issues.apache.org/jira/browse/COUCHDB-893
> Project: CouchDB
> Issue Type: Bug
> Affects Versions: 1.0.1
> Environment: I repeated this on windows and linux (64 bit)
> Reporter: Michael Schneider
> Attachments: bugdoc.tar.gz
>
>
> I have a large set of documents that I harvesting data from. All docs < 9mb render fine (with doc size increased)
> Attached is a simple couchapp and one doc.
> To reproduce, untar and:
> reproduce
> 1) untar file
> 2) cd bugdoc/couchapp/bugreport
> 3) couchapp push bugreport
> 4) cd bugdoc
> 5) python submitbadjson.py
> open url http://127.0.0.1:5984/_utils/database.html?bugreport/_design/bugreport/_view/buggy
> You should see a popup
> "(Error: os_process_error
> {exit_status,0})
> "
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
Re: [jira] Commented: (COUCHDB-893) Error: os_process_error
{exit_status,0} when rendering view on 17 mb doc, couchapp and data
attached
Posted by Michael Schneider <mi...@cincinnaticomm.com>.
Just Checking In,
Any luck with this issue? I am new to couchdb, I am not sure how the
cycle turns.
Thanks, and keep up the good work,
Mike
On Tue, 2010-10-19 at 15:33 -0400, Paul Joseph Davis (JIRA) wrote:
>
> [ https://issues.apache.org/jira/browse/COUCHDB-893?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12922683#action_12922683 ]
>
> Paul Joseph Davis commented on COUCHDB-893:
> -------------------------------------------
>
> I'll put this on the agenda to try and get to making this a command line switch. Its started cropping up more lately so it should get prioritized.
>
> > Error: os_process_error {exit_status,0} when rendering view on 17 mb doc, couchapp and data attached
> > -------------------------------------------------------------------------------------------------------
> >
> > Key: COUCHDB-893
> > URL: https://issues.apache.org/jira/browse/COUCHDB-893
> > Project: CouchDB
> > Issue Type: Bug
> > Affects Versions: 1.0.1
> > Environment: I repeated this on windows and linux (64 bit)
> > Reporter: Michael Schneider
> > Attachments: bugdoc.tar.gz
> >
> >
> > I have a large set of documents that I harvesting data from. All docs < 9mb render fine (with doc size increased)
> > Attached is a simple couchapp and one doc.
> > To reproduce, untar and:
> > reproduce
> > 1) untar file
> > 2) cd bugdoc/couchapp/bugreport
> > 3) couchapp push bugreport
> > 4) cd bugdoc
> > 5) python submitbadjson.py
> > open url http://127.0.0.1:5984/_utils/database.html?bugreport/_design/bugreport/_view/buggy
> > You should see a popup
> > "(Error: os_process_error
> > {exit_status,0})
> > "
>
Re: [jira] Commented: (COUCHDB-893) Error: os_process_error
{exit_status,0} when rendering view on 17 mb doc, couchapp and data
attached
Posted by Michael Schneider <mi...@cincinnaticomm.com>.
Hello,
Just curious if this is on the radar?
If not, is it possible to do this in 2 steps:
1) apply patch, hard coding increasing memory (no config option, just
more memory)
2) add config option for memory.
Thanks, and keep up the good work
Mike
On Tue, 2010-10-19 at 15:33 -0400, Paul Joseph Davis (JIRA) wrote:
>
> [ https://issues.apache.org/jira/browse/COUCHDB-893?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12922683#action_12922683 ]
>
> Paul Joseph Davis commented on COUCHDB-893:
> -------------------------------------------
>
> I'll put this on the agenda to try and get to making this a command line switch. Its started cropping up more lately so it should get prioritized.
>
> > Error: os_process_error {exit_status,0} when rendering view on 17 mb doc, couchapp and data attached
> > -------------------------------------------------------------------------------------------------------
> >
> > Key: COUCHDB-893
> > URL: https://issues.apache.org/jira/browse/COUCHDB-893
> > Project: CouchDB
> > Issue Type: Bug
> > Affects Versions: 1.0.1
> > Environment: I repeated this on windows and linux (64 bit)
> > Reporter: Michael Schneider
> > Attachments: bugdoc.tar.gz
> >
> >
> > I have a large set of documents that I harvesting data from. All docs < 9mb render fine (with doc size increased)
> > Attached is a simple couchapp and one doc.
> > To reproduce, untar and:
> > reproduce
> > 1) untar file
> > 2) cd bugdoc/couchapp/bugreport
> > 3) couchapp push bugreport
> > 4) cd bugdoc
> > 5) python submitbadjson.py
> > open url http://127.0.0.1:5984/_utils/database.html?bugreport/_design/bugreport/_view/buggy
> > You should see a popup
> > "(Error: os_process_error
> > {exit_status,0})
> > "
>
[jira] Commented: (COUCHDB-893) Error: os_process_error
{exit_status,0} when rendering view on 17 mb doc, couchapp and data
attached
Posted by "Paul Joseph Davis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-893?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12922683#action_12922683 ]
Paul Joseph Davis commented on COUCHDB-893:
-------------------------------------------
I'll put this on the agenda to try and get to making this a command line switch. Its started cropping up more lately so it should get prioritized.
> Error: os_process_error {exit_status,0} when rendering view on 17 mb doc, couchapp and data attached
> -------------------------------------------------------------------------------------------------------
>
> Key: COUCHDB-893
> URL: https://issues.apache.org/jira/browse/COUCHDB-893
> Project: CouchDB
> Issue Type: Bug
> Affects Versions: 1.0.1
> Environment: I repeated this on windows and linux (64 bit)
> Reporter: Michael Schneider
> Attachments: bugdoc.tar.gz
>
>
> I have a large set of documents that I harvesting data from. All docs < 9mb render fine (with doc size increased)
> Attached is a simple couchapp and one doc.
> To reproduce, untar and:
> reproduce
> 1) untar file
> 2) cd bugdoc/couchapp/bugreport
> 3) couchapp push bugreport
> 4) cd bugdoc
> 5) python submitbadjson.py
> open url http://127.0.0.1:5984/_utils/database.html?bugreport/_design/bugreport/_view/buggy
> You should see a popup
> "(Error: os_process_error
> {exit_status,0})
> "
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (COUCHDB-893) Error: os_process_error
{exit_status,0} when rendering view on 17 mb doc, couchapp and data
attached
Posted by "Michael Schneider (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-893?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12922653#action_12922653 ]
Michael Schneider commented on COUCHDB-893:
-------------------------------------------
>From email
From: Paul Hirst <pa...@sophos.com>
Reply-to: user@couchdb.apache.org
To: user@couchdb.apache.org <us...@couchdb.apache.org>
Subject: Re: Solving "os_process_error,{exit_status,0}" ?
Date: Tue, 19 Oct 2010 09:17:07 +0100 (10/19/2010 04:17:07 AM)
On Mon, 2010-10-18 at 21:03 +0100, Marcel Bruch wrote:
> Hi,
>
> I currently experimenting with CouchDB and run into
> "os_process_error,{exit_status,0}" error when building my views. I've
> read that large documents may cause this kind of exceptions - which
> might be the reason in my case: The total database is ~3.2GB in size and
> contains ~300k documents. Few documents are up to 15 MB large.
>
> Can anyone give me a hint how I can get around those os_process_errors?
If it's the same problem I had, I applied the following patch to
drastically increase the available stack memory.
There didn't seem to be a way to do this without a compile. At some
point I might try to turn this into a config option (and therefore
presumably a command line switch to couchjs, but that's 100 times more
effort than I've found time for yet.
I'm not sure if there is a Jira ticket for this problem. I don't
remember opening one myself. In fact I wasn't aware anyone had
encountered the same problem. Maybe you could try the patch and let me
know if it helps in your instance?
diff -Naur couchdb-1.0.0.orig/src/couchdb/priv/couch_js/main.c
couchdb-1.0.0/src/couchdb/priv/couch_js/main.c
--- couchdb-1.0.0.orig/src/couchdb/priv/couch_js/main.c 2009-11-27
22:43:59.000000000 +0000
+++ couchdb-1.0.0/src/couchdb/priv/couch_js/main.c 2010-08-16
09:32:35.000000000 +0100
@@ -56,6 +56,7 @@
JS_ReportOutOfMemory(cx);
return JS_FALSE;
}
+ JS_SetScriptStackQuota(subcx, 0x20000000);
SETUP_REQUEST(subcx);
@@ -285,6 +286,7 @@
cx = JS_NewContext(rt, 8L * 1024L);
if (!cx) return 1;
+ JS_SetScriptStackQuota(cx, 0x20000000);
JS_SetErrorReporter(cx, printerror);
JS_ToggleOptions(cx, JSOPTION_XML);
Sophos Plc, The Pentagon, Abingdon Science Park, Abingdon, OX14 3YP, United Kingdom.
Company Reg No 2096520. VAT Reg No GB 348 3873 20.
> Error: os_process_error {exit_status,0} when rendering view on 17 mb doc, couchapp and data attached
> -------------------------------------------------------------------------------------------------------
>
> Key: COUCHDB-893
> URL: https://issues.apache.org/jira/browse/COUCHDB-893
> Project: CouchDB
> Issue Type: Bug
> Affects Versions: 1.0.1
> Environment: I repeated this on windows and linux (64 bit)
> Reporter: Michael Schneider
> Attachments: bugdoc.tar.gz
>
>
> I have a large set of documents that I harvesting data from. All docs < 9mb render fine (with doc size increased)
> Attached is a simple couchapp and one doc.
> To reproduce, untar and:
> reproduce
> 1) untar file
> 2) cd bugdoc/couchapp/bugreport
> 3) couchapp push bugreport
> 4) cd bugdoc
> 5) python submitbadjson.py
> open url http://127.0.0.1:5984/_utils/database.html?bugreport/_design/bugreport/_view/buggy
> You should see a popup
> "(Error: os_process_error
> {exit_status,0})
> "
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (COUCHDB-893) Error: os_process_error
{exit_status,0} when rendering view on 17 mb doc, couchapp and data
attached
Posted by "Michael Schneider (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-893?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12916662#action_12916662 ]
Michael Schneider commented on COUCHDB-893:
-------------------------------------------
I converted the json doc to a javascript file by adding
var foo = eval( "(" + .... contets_of_bad.json_in_attacted_tar_file..... + ")) );
and saving this as bad.js
when I run
$ couchjs bad.js
I get
"script stack space quota is exhausted"
> Error: os_process_error {exit_status,0} when rendering view on 17 mb doc, couchapp and data attached
> -------------------------------------------------------------------------------------------------------
>
> Key: COUCHDB-893
> URL: https://issues.apache.org/jira/browse/COUCHDB-893
> Project: CouchDB
> Issue Type: Bug
> Affects Versions: 1.0.1
> Environment: I repeated this on windows and linux (64 bit)
> Reporter: Michael Schneider
> Attachments: bugdoc.tar.gz
>
>
> I have a large set of documents that I harvesting data from. All docs < 9mb render fine (with doc size increased)
> Attached is a simple couchapp and one doc.
> To reproduce, untar and:
> reproduce
> 1) untar file
> 2) cd bugdoc/couchapp/bugreport
> 3) couchapp push bugreport
> 4) cd bugdoc
> 5) python submitbadjson.py
> open url http://127.0.0.1:5984/_utils/database.html?bugreport/_design/bugreport/_view/buggy
> You should see a popup
> "(Error: os_process_error
> {exit_status,0})
> "
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (COUCHDB-893) Error: os_process_error
{exit_status,0} when rendering view on 17 mb doc, couchapp and data
attached
Posted by "Paul Joseph Davis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-893?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Joseph Davis updated COUCHDB-893:
--------------------------------------
Skill Level: Regular Contributors Level (Easy to Medium)
> Error: os_process_error {exit_status,0} when rendering view on 17 mb doc, couchapp and data attached
> -------------------------------------------------------------------------------------------------------
>
> Key: COUCHDB-893
> URL: https://issues.apache.org/jira/browse/COUCHDB-893
> Project: CouchDB
> Issue Type: Bug
> Affects Versions: 1.0.1
> Environment: I repeated this on windows and linux (64 bit)
> Reporter: Michael Schneider
> Attachments: bugdoc.tar.gz
>
>
> I have a large set of documents that I harvesting data from. All docs < 9mb render fine (with doc size increased)
> Attached is a simple couchapp and one doc.
> To reproduce, untar and:
> reproduce
> 1) untar file
> 2) cd bugdoc/couchapp/bugreport
> 3) couchapp push bugreport
> 4) cd bugdoc
> 5) python submitbadjson.py
> open url http://127.0.0.1:5984/_utils/database.html?bugreport/_design/bugreport/_view/buggy
> You should see a popup
> "(Error: os_process_error
> {exit_status,0})
> "
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (COUCHDB-893) Error: os_process_error
{exit_status,0} when rendering view on 17 mb doc, couchapp and data
attached
Posted by "Michael Schneider (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-893?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Schneider updated COUCHDB-893:
--------------------------------------
Description:
I have a large set of documents that I harvesting data from. All docs < 9mb render fine (with doc size increased)
Attached is a simple couchapp and one doc.
To reproduce, untar and:
reproduce
1) untar file
2) cd bugdoc/couchapp/bugreport
3) couchapp push bugreport
4) cd bugdoc
5) python submitbadjson.py
open url http://127.0.0.1:5984/_utils/database.html?bugreport/_design/bugreport/_view/buggy
You should see a popup
"(Error: os_process_error
{exit_status,0})
"
was:
I have a large set of documents that I harvesting data from. All docs < 9mb render fine (with doc size increased)
Attached is a simple couchapp and one doc.
To reproduce, untar and:
reproduce
1) untar file
2) cd bugdoc/couchapp/bugreport
3) couchapp push bugreport
4) cd bugdoc
5) python submitbadjson.py
open url http://127.0.0.1:5984/_utils/database.html?bugreport/_design/bugreport/_view/buggy
You should see a popup
"(Error: os_process_error
{exit_status,0})
"
Note: I can't seem to find out how to attach data files, please email me if you can't find the data
> Error: os_process_error {exit_status,0} when rendering view on 17 mb doc, couchapp and data attached
> -------------------------------------------------------------------------------------------------------
>
> Key: COUCHDB-893
> URL: https://issues.apache.org/jira/browse/COUCHDB-893
> Project: CouchDB
> Issue Type: Bug
> Affects Versions: 1.0.1
> Environment: I repeated this on windows and linux (64 bit)
> Reporter: Michael Schneider
> Attachments: bugdoc.tar.gz
>
>
> I have a large set of documents that I harvesting data from. All docs < 9mb render fine (with doc size increased)
> Attached is a simple couchapp and one doc.
> To reproduce, untar and:
> reproduce
> 1) untar file
> 2) cd bugdoc/couchapp/bugreport
> 3) couchapp push bugreport
> 4) cd bugdoc
> 5) python submitbadjson.py
> open url http://127.0.0.1:5984/_utils/database.html?bugreport/_design/bugreport/_view/buggy
> You should see a popup
> "(Error: os_process_error
> {exit_status,0})
> "
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (COUCHDB-893) Error: os_process_error
{exit_status,0} when rendering view on 17 mb doc, couchapp and data
attached
Posted by "Michael Schneider (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-893?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12917002#action_12917002 ]
Michael Schneider commented on COUCHDB-893:
-------------------------------------------
I created an erlang view, and verified erlang works with the same documents that failed underjavascript.
The problem seems to be couchjs
> Error: os_process_error {exit_status,0} when rendering view on 17 mb doc, couchapp and data attached
> -------------------------------------------------------------------------------------------------------
>
> Key: COUCHDB-893
> URL: https://issues.apache.org/jira/browse/COUCHDB-893
> Project: CouchDB
> Issue Type: Bug
> Affects Versions: 1.0.1
> Environment: I repeated this on windows and linux (64 bit)
> Reporter: Michael Schneider
> Attachments: bugdoc.tar.gz
>
>
> I have a large set of documents that I harvesting data from. All docs < 9mb render fine (with doc size increased)
> Attached is a simple couchapp and one doc.
> To reproduce, untar and:
> reproduce
> 1) untar file
> 2) cd bugdoc/couchapp/bugreport
> 3) couchapp push bugreport
> 4) cd bugdoc
> 5) python submitbadjson.py
> open url http://127.0.0.1:5984/_utils/database.html?bugreport/_design/bugreport/_view/buggy
> You should see a popup
> "(Error: os_process_error
> {exit_status,0})
> "
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.