Wow…I didn’t realize there would be so many tormented souls who had also experienced the same Apache+FCGI problems.
The good news is that if you regularly kill your zombie processes, you can run a productive server, even on a shared host. And, people are experiencing this on many shared hosts, not just Dreamhost.
The bad news is that you have to regularly kill your zombie processes.
So, I’m going to follow the path that I’ve been hearing about for a long time and will run lighttpd instead (at least on my other TextDrive account).
Some have also suggested voting for lighttpd at Dreamhost if you have a Dreamhost account.
Several people pointed out a bug in the latest Gruff 0.0.4 that was causing the legend to be drawn incorrectly. It has been fixed.
sudo gem install gruff
I also found a list of many different types of graphs that could be implemented in Gruff.
My immediate impulses for a Gruff roadmap are:
Of course, paying work comes first, but I’m using Gruff in other projects, so it will continue to be developed.
Hey Geoffrey,
And a huge thank-you for taking the Ruby graphing to a new level! The lack of style is what has made me use XML/SWF Charts so far, even though it uses Flash. Let me know how I can help you with Gruff, I have a project that uses graphing heavily so I can give a hand in both testing and pushing the project forward. The first thing I’ll need is stacked bar graphs so I will probably dive into the code and try to implement them right away.
There was a fcgi problem also with lighttpd, since a quite recent version it hasn’t killed the fcgi processes automatically when it’s going down. I added the following to my lighttpd control script to take care of the phantom fcgi’s:
ps auxww|grep 'dispatch\.\(fcgi\)\?'|awk '{print $2}'|xargs kill -9The whole script
Gruff runs like the clappers on my RHEL4 machine, however, I can’t get it to work on my Powerbook. I saw someone else posted this error on a previous entry’s comments, however, I didn’t see a response to it.
/usr/lib/ruby/gems/1.8/gems/gruff-0.0.5/lib/gruff/area.rb:4: uninitialized constant Gruff (NameError) from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require__' from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require' from /usr/lib/ruby/gems/1.8/gems/gruff-0.0.5/lib/gruff.rb:4 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require__' from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require' from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:175:in `activate' from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:23:in `require' from browsershare.rb:9The other question I had was how do you control the y-axis scaling? I didn’t see any examples in the tests on how to do this. I wrote this script to display browser share for involution.com, however, it forces the scaling and scaling increments to a fairly strange value. The output image is here.
Tony,
I had the same problem and it turned out I didn’t have the rmagick gem installed on my PowerBook.
Right on, I managed to figure it out earlier. I documented this process so other people won’t suffer the same fate as me.
http://railswiki.involution.com/index.php/GruffOnOSXProblems
It seems like you pretty much need to install ImageMagick from source to get RMagick to play on the Powerbook. C’est la vie, that’s the price of getting cut on the bleeding edge.
Hi, I’m having problems installing your Gruff gem. Here’s the output:
stuff: ~ [6] > sudo gem install gruff Attempting local installation of ‘gruff’ Local gem file not found: gruff*.gem Attempting remote installation of ‘gruff’ ERROR: While executing gem … (OpenURI::HTTPError) 300 Multiple Choices
Yeah…I got that error sometimes, too. Maybe the RubyGems server is having problems? Sometimes I can get to it, but other times not.
I’ll write to the RubyForge people and see what’s going on.
I’d like to thank Jarkko and this thread (http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/159970)
I managed to get it working on winxp.
Hello. I was able to make gruff work in my Ruby on Rails application running on WebRick. But when I deployed it on lighttpd, it fails. The error was that the application fails to read the true type fonts.
Any advice?