couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Kocoloski <>
Subject Re: inner mechanics question
Date Mon, 16 Nov 2009 12:40:31 GMT
On Nov 16, 2009, at 7:18 AM, Vlad GURDIGA wrote:

> On Mon, Nov 16, 2009 at 1:45 PM, Adam Kocoloski <> wrote:
>> On Nov 16, 2009, at 6:40 AM, Vlad GURDIGA wrote:
>>> Hello!
>>> Again, I'm not sure whether it's a couchdb-dev@ or couchdb-user@ question.
>>> I wonder how _shows, _lists, _updates (and maybe others?) couch-side
>>> code is executed. Is there a single couchjs loaded on couch start and
>>> it is fed all the functions that are called thought URLs or there is a
>>> separate couchjs launched for every function?
>>> Just want to understand what's going on with my code...
>>> Thank you!
>> Hi Vlad, the reality is in between those two cases.  CouchDB keeps a pool of couchjs
processes running.
> Thanks a lot for the quick answer, Adam.
> This sounds like Apache's StartServers* right? Is there a way to
> configure the pool size?
> *

In fact there is no way to configure the pool size, which is a bit of a problem.  A malicious
user could cause a very large number of processes to be spawned.  There's a comment in the
source about adding a process limit, not sure if a JIRA ticket is around too.  Best,


View raw message