From: Scott Cole Date: 2009-06-04T02:33:42+09:00 Subject: Re: gserver hogging CPU Ezra, thanks. This worked great! My CPU usage is below 1% now, even with sleep 0.1. Ezra Zygmuntowicz wrote: >> server.start # Start the server >> >> loop do >> break if server.stopped? >> end > > This last loop looks suspect. You are basically calling > server.stopped? in a loop as fast as you can. Try sleeping a bit in > that loop: > > loop do > sleep 1 > break if server.stopped? > end > > Cheers- > Ezra Zygmuntowicz > ez@engineyard.com -- Posted via http://www.ruby-forum.com/.