That was me in IRC being an idiot -- I didn't realize how (mongo!) worked, and that it was creating and keeping open a new connection on each call. Basically I accidentally was creating mongo connections in a looping construct with mapped over > ulimit elements. Wrapping (mongo!) in (defonce *mongo ...) and putting it elsewhere fixed everything.
On May 17, 12:39 am, Andrew Boekhoff <boekho...@gmail.com> wrote: > Hi.Congomongois a fairly thin wrapper around the MongoDB java driver. > All fetch requests are proxied through the driver which handles all > opening and closing of connections automatically. > > Its main utility is providing a smooth(er) interface between Clojure's > immutable types and the mutable types that the driver deals in. It also > tries to unify various similar methods on collections into a few > parameterizable functions. > > It does tend to give the garbage collector a workout on large (for some > value of large) reads and writes. That seems to have been the case with > regards to the discussion from IRC that you mentioned. > > Cheers, > Andy > > > A couple days ago, on IRC, I observed some folks talking about a > > possible memory leak in the somniumcongomongoclojure interface to > > mongoDB. The discussion suggested that each fetch opens the file > > without closing it, and pretty soon you get an error. Does anyone > > know what happened with this? Is it a real problem, and if so, is it > > being addressed? > > > I'm about to start a project using clojure/mongoDB but don't want to > > use it if there's a known problem without a known fix. > > > Thanks, > > > Mark > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with your > first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group > athttp://groups.google.com/group/clojure?hl=en -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en