BennyHallett / obelisk

Static Site Generator written in Elixir.
MIT License
393 stars 34 forks source link

100% CPU when serving #28

Closed AdamBrodzinski closed 8 years ago

AdamBrodzinski commented 8 years ago

When I run blog|⇒ mix obelisk server my CPU is pegged at 100%. Is this a known issue? Are there any work arounds?

BennyHallett commented 8 years ago

I suspect it's this busy-loop when waiting for the cowboy server to die:

https://github.com/BennyHallett/obelisk/blob/master/lib/obelisk/tasks/server.ex#L21

I haven't done any work on Obelisk in quite a while but intend to fix some issues starting next week. i'll clean this one up then.

AdamBrodzinski commented 8 years ago

@BennyHallett ah, sounds good! I would checkout this fork. I think Clark fixed this and the titles that were not working: https://github.com/ckampfe/obelisk

mvalitov commented 7 years ago

Hi, I'm seeing the same problem,

When I run blog|⇒ mix obelisk server my CPU is pegged at 100%

I'm using the version

    [{ :obelisk, "~> 0.10.0" },
   {:yamerl, "~> 0.4.0"}]

You have no idea how to fix it? Thanks