You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Benoit Chesneau (JIRA)" <ji...@apache.org> on 2010/04/30 19:56:53 UTC

[jira] Created: (COUCHDB-752) InternalError: script stack space quota is exhausted

InternalError: script stack space quota is exhausted
----------------------------------------------------

                 Key: COUCHDB-752
                 URL: https://issues.apache.org/jira/browse/COUCHDB-752
             Project: CouchDB
          Issue Type: Bug
          Components: JavaScript View Server
    Affects Versions: 0.11
            Reporter: Benoit Chesneau
            Priority: Critical
             Fix For: 0.11.1


 Couchdb freeze and use full CPU after accessing to  a 93MB designdoc:

debug] [<0.91.0>] Spawning new group server for view group _design/aimpl in database aimpl.
[debug] [<0.94.0>] request_group {Pid, Seq} {<0.116.0>,61}
[debug] [<0.81.0>] New task status for aimpl _design/aimpl: Finishing.
[debug] [<0.126.0>] OS Process Start :: #Port<0.2040>
[debug] [<0.87.0>] Teach ddoc to new proc {proc,<0.126.0>,<<"javascript">>,[],
                             {couch_os_process,prompt},
                             {couch_os_process,set_timeout},
                             {couch_os_process,stop}} with DDocKey: {<<"_design/aimpl">>,
                                                                     <<"30-2ab623a62b83b0d9f2616ee209f62659">>}
InternalError: script stack space quota is exhausted


Most of data are in attachments :

enlil:couchapp benoitc$ du -sh aimpl
 93M	aimpl
enlil:couchapp benoitc$ du -sh aimpl/_attachments/
 93M	aimpl/_attachments/

about 100k in views/shows/...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (COUCHDB-752) InternalError: script stack space quota is exhausted

Posted by "Noah Slater (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-752?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Noah Slater updated COUCHDB-752:
--------------------------------

    Fix Version/s: 0.11.2
                       (was: 0.11.1)

> InternalError: script stack space quota is exhausted
> ----------------------------------------------------
>
>                 Key: COUCHDB-752
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-752
>             Project: CouchDB
>          Issue Type: Bug
>          Components: JavaScript View Server
>    Affects Versions: 0.11
>            Reporter: Benoit Chesneau
>            Priority: Critical
>             Fix For: 0.11.2
>
>         Attachments: ddoc.patch
>
>
>  Couchdb freeze and use full CPU after accessing to  a 93MB designdoc:
> debug] [<0.91.0>] Spawning new group server for view group _design/aimpl in database aimpl.
> [debug] [<0.94.0>] request_group {Pid, Seq} {<0.116.0>,61}
> [debug] [<0.81.0>] New task status for aimpl _design/aimpl: Finishing.
> [debug] [<0.126.0>] OS Process Start :: #Port<0.2040>
> [debug] [<0.87.0>] Teach ddoc to new proc {proc,<0.126.0>,<<"javascript">>,[],
>                              {couch_os_process,prompt},
>                              {couch_os_process,set_timeout},
>                              {couch_os_process,stop}} with DDocKey: {<<"_design/aimpl">>,
>                                                                      <<"30-2ab623a62b83b0d9f2616ee209f62659">>}
> InternalError: script stack space quota is exhausted
> Most of data are in attachments :
> enlil:couchapp benoitc$ du -sh aimpl
>  93M	aimpl
> enlil:couchapp benoitc$ du -sh aimpl/_attachments/
>  93M	aimpl/_attachments/
> about 100k in views/shows/...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (COUCHDB-752) InternalError: script stack space quota is exhausted

Posted by "Paul Joseph Davis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-752?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Joseph Davis updated COUCHDB-752:
--------------------------------------

    Skill Level: Regular Contributors Level (Easy to Medium)

> InternalError: script stack space quota is exhausted
> ----------------------------------------------------
>
>                 Key: COUCHDB-752
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-752
>             Project: CouchDB
>          Issue Type: Bug
>          Components: JavaScript View Server
>    Affects Versions: 0.11
>            Reporter: Benoit Chesneau
>            Priority: Critical
>             Fix For: 0.11.3
>
>         Attachments: ddoc.patch
>
>
>  Couchdb freeze and use full CPU after accessing to  a 93MB designdoc:
> debug] [<0.91.0>] Spawning new group server for view group _design/aimpl in database aimpl.
> [debug] [<0.94.0>] request_group {Pid, Seq} {<0.116.0>,61}
> [debug] [<0.81.0>] New task status for aimpl _design/aimpl: Finishing.
> [debug] [<0.126.0>] OS Process Start :: #Port<0.2040>
> [debug] [<0.87.0>] Teach ddoc to new proc {proc,<0.126.0>,<<"javascript">>,[],
>                              {couch_os_process,prompt},
>                              {couch_os_process,set_timeout},
>                              {couch_os_process,stop}} with DDocKey: {<<"_design/aimpl">>,
>                                                                      <<"30-2ab623a62b83b0d9f2616ee209f62659">>}
> InternalError: script stack space quota is exhausted
> Most of data are in attachments :
> enlil:couchapp benoitc$ du -sh aimpl
>  93M	aimpl
> enlil:couchapp benoitc$ du -sh aimpl/_attachments/
>  93M	aimpl/_attachments/
> about 100k in views/shows/...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (COUCHDB-752) InternalError: script stack space quota is exhausted

Posted by "Noah Slater (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-752?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Noah Slater updated COUCHDB-752:
--------------------------------

    Fix Version/s: 0.11.3
                       (was: 0.11.2)

> InternalError: script stack space quota is exhausted
> ----------------------------------------------------
>
>                 Key: COUCHDB-752
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-752
>             Project: CouchDB
>          Issue Type: Bug
>          Components: JavaScript View Server
>    Affects Versions: 0.11
>            Reporter: Benoit Chesneau
>            Priority: Critical
>             Fix For: 0.11.3
>
>         Attachments: ddoc.patch
>
>
>  Couchdb freeze and use full CPU after accessing to  a 93MB designdoc:
> debug] [<0.91.0>] Spawning new group server for view group _design/aimpl in database aimpl.
> [debug] [<0.94.0>] request_group {Pid, Seq} {<0.116.0>,61}
> [debug] [<0.81.0>] New task status for aimpl _design/aimpl: Finishing.
> [debug] [<0.126.0>] OS Process Start :: #Port<0.2040>
> [debug] [<0.87.0>] Teach ddoc to new proc {proc,<0.126.0>,<<"javascript">>,[],
>                              {couch_os_process,prompt},
>                              {couch_os_process,set_timeout},
>                              {couch_os_process,stop}} with DDocKey: {<<"_design/aimpl">>,
>                                                                      <<"30-2ab623a62b83b0d9f2616ee209f62659">>}
> InternalError: script stack space quota is exhausted
> Most of data are in attachments :
> enlil:couchapp benoitc$ du -sh aimpl
>  93M	aimpl
> enlil:couchapp benoitc$ du -sh aimpl/_attachments/
>  93M	aimpl/_attachments/
> about 100k in views/shows/...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (COUCHDB-752) InternalError: script stack space quota is exhausted

Posted by "Benoit Chesneau (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-752?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benoit Chesneau updated COUCHDB-752:
------------------------------------

    Attachment: ddoc.patch

With the help of davisp on irc, I tried some stuff. Increasing the stack isn't enough and figured what's the pb.

There are 23,648 items in _attachments, wich gave a really big string to get as json. Attached patch fix the pb by removing attachments from the ddoc we pass to the function.

But it only work if  the log level is "info, with  "debug" level,  it try to display the ddoc and then it hangs) .



> InternalError: script stack space quota is exhausted
> ----------------------------------------------------
>
>                 Key: COUCHDB-752
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-752
>             Project: CouchDB
>          Issue Type: Bug
>          Components: JavaScript View Server
>    Affects Versions: 0.11
>            Reporter: Benoit Chesneau
>            Priority: Critical
>             Fix For: 0.11.1
>
>         Attachments: ddoc.patch
>
>
>  Couchdb freeze and use full CPU after accessing to  a 93MB designdoc:
> debug] [<0.91.0>] Spawning new group server for view group _design/aimpl in database aimpl.
> [debug] [<0.94.0>] request_group {Pid, Seq} {<0.116.0>,61}
> [debug] [<0.81.0>] New task status for aimpl _design/aimpl: Finishing.
> [debug] [<0.126.0>] OS Process Start :: #Port<0.2040>
> [debug] [<0.87.0>] Teach ddoc to new proc {proc,<0.126.0>,<<"javascript">>,[],
>                              {couch_os_process,prompt},
>                              {couch_os_process,set_timeout},
>                              {couch_os_process,stop}} with DDocKey: {<<"_design/aimpl">>,
>                                                                      <<"30-2ab623a62b83b0d9f2616ee209f62659">>}
> InternalError: script stack space quota is exhausted
> Most of data are in attachments :
> enlil:couchapp benoitc$ du -sh aimpl
>  93M	aimpl
> enlil:couchapp benoitc$ du -sh aimpl/_attachments/
>  93M	aimpl/_attachments/
> about 100k in views/shows/...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.