
Could it be idle time garbage collection [0]? You can try turning it
off with '+RTS -I0'.
Erik
[0] http://www.haskell.org/ghc/docs/7.6.3/html/users_guide/runtime-control.html#...
On Wed, May 7, 2014 at 9:43 PM, Robin Palotai
Hello List,
I have a tiny scotty-based application, which when compiled and started in profiling mode, consumes 10x CPU it does in normal mode.
Interestingly, if I fire a request on the app, CPU usage drops to minimal after finishing the request for a while. But after a few minutes it starts consuming 10x CPU again.
First I would have suspected scotty, however collecting time profiling info with -p, -P or -Pa doesn't reveal much. That still not rules scotty out however.
To make matters worse, I inspect strange time profiling tick count I can't explain - the .prof file says "2 ticks @ 1000 us", while the application was clearly running idle for a good few seconds.
Any ideas what am I missing?
Thanks, Robin _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe