couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Joseph Davis (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (COUCHDB-1409) Look into manual GC
Date Tue, 14 Feb 2012 17:53:59 GMT

    [ https://issues.apache.org/jira/browse/COUCHDB-1409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13207863#comment-13207863
] 

Paul Joseph Davis commented on COUCHDB-1409:
--------------------------------------------

Was just about to say that we have seen a couple places with similar behavior and similar
results in BigCouch. Specifically couch_os_process pids can have this effect. The article
is missing the underlying reason but the HN comment is close enough. Simple fix is to call
erlang:garbage_collect() when processes are returned. I think there might be a few other places
we do similar things but nothing as significant as a couchjs processes.

Also, its possible that this might not be much of an issue for CouchDB. BigCouch deployments
can run in the hundreds to a thousand or so couchjs processes so it was a bit more of an issue
with those pids stealing RAM when they went idle. If the total number is smaller and they're
reused quite quickly then this issue shouldn't manifest, or at least not as drastically.
                
> Look into manual GC
> -------------------
>
>                 Key: COUCHDB-1409
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1409
>             Project: CouchDB
>          Issue Type: Improvement
>            Reporter: Jan Lehnardt
>
> This just as a reminder to consider http://andy.wordpress.com/2012/02/13/erlang-is-a-hoarder/
(incl. comments)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message