This code looks fine. You don't need the atoms, but I don't think that's your trouble.
How do you know this code is causing the error? Unless this is all your code does, descriptions of the error suggest the memory leak might be coming from anywhere. This tight loop might trigger too many successive GCs though: have you observed if the error only occurs under load, or under large time intervals? Some combination? Maybe running without -server so the GC will behave less aggressively? -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.