That sounds related, but the problem in the case of logging is that (as far as I know) it runs on the default dispatcher and cannot be reconfigured. And anyway, I'm thinking of a case where regardless of dispatcher, there's just too many messages and we cannot possibly manage to write them all.
On Mon, Dec 14, 2015 at 11:31 AM, Maxim Valyanskiy <[email protected]> wrote: > Hello! > > I saw the same problem when default dispatcher was overloaded by a lot of > small tasks that was created via map/flatMap/etc operations on Future's. I > fixed my problem by moving away heavy batch processing and operations on > futures to dedicated dispatcher. > > Maxim > > воскресенье, 13 декабря 2015 г., 19:15:36 UTC+3 пользователь Adam написал: > >> Hi, >> >> I sometimes see this issue where I want to switch logs to DEBUG, but due >> to the large number of messages the JVM will crash on OutOfMemory which >> turns out to be due to the accumulation of logging events. >> Most logging frameworks have the ability to drop messages beyond a >> certain number and so do Akka unbounded mailboxes. >> >> Is there a way to achieve this with Akka logging as well? >> The behavior of the non blocking unbounded mailbox is what I have in mind >> (logging frameworks usually add a warning of some kind telling you that >> messages are being dropped, but I can manage without this for now). >> >> Alternatively, I could just using my logger directly. >> It's asynchronous anyway. The only issue with that is that I find the >> extra MDC data of actor path very useful when looking at piles of DEBUG >> logs. >> It makes zeroing in on a single transaction very simple. >> > -- > >>>>>>>>>> Read the docs: http://akka.io/docs/ > >>>>>>>>>> Check the FAQ: > http://doc.akka.io/docs/akka/current/additional/faq.html > >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user > --- > You received this message because you are subscribed to a topic in the > Google Groups "Akka User List" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/akka-user/Ct9noZyBhtU/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/akka-user. > For more options, visit https://groups.google.com/d/optout. > -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
