Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does yesod uses the processor when idle?

Tags:

haskell

yesod

I have created a very simple application using yesod. It's not very used, but when I check with htop, it has consumed more cpu time than all other processes in the server, including processes that are running for a much bigger time. Also, when I start the process I see that it's processor usage time keeps increasing even when no requests are made (most of the time no requests are made). Is this common or expected with yesod apps?

like image 281
marcot Avatar asked Oct 14 '12 21:10

marcot


1 Answers

Try disable idle GC:

./app +RTS -I0 -RTS

Probably, yesod have a thread that updates IORef with current time which triggers idle GC, like in this ticket http://hackage.haskell.org/trac/ghc/ticket/4322

like image 141
vshabanov Avatar answered Nov 16 '22 02:11

vshabanov