Rails syslogger extremly slow..

Discussion in 'Ruby' started by kenlet.usenet@gmail.com, Dec 23, 2005.

  1. Guest

    I'm using sysloglogger from here...

    http://rails-analyzer.rubyforge.org/hacks/classes/SyslogLogger.html

    but it causes my website to run 10x slower. It looks like there's heavy
    IO wait. Does anyone know why this may be?

    Is it just because of the large amount of stuff it has to write to
    disk? I don't have a lot of memory...is that the main problem?
     
    , Dec 23, 2005
    #1
    1. Advertising

  2. Gene Tani Guest

    wrote:
    > I'm using sysloglogger from here...
    >
    > http://rails-analyzer.rubyforge.org/hacks/classes/SyslogLogger.html
    >
    > but it causes my website to run 10x slower. It looks like there's heavy
    > IO wait. Does anyone know why this may be?
    >
    > Is it just because of the large amount of stuff it has to write to
    > disk? I don't have a lot of memory...is that the main problem?


    (not trying to be nasty, but i think the canonical answer is you'll get
    an answer faster at the rails list

    http://lists.rubyonrails.org/mailman/listinfo/rails
     
    Gene Tani, Dec 23, 2005
    #2
    1. Advertising

  3. Lou Vanek Guest

    a hard disk is roughly 100x slower than IO over a wire because it
    has mechanically moving parts. So seeing a 10x slowdown is reasonable.

    putting the following line in your rails environment.rb file should speed
    things up since it will minimize logging output to the hard disk:

    config.log_level = :fatal



    wrote:
    > I'm using sysloglogger from here...
    >
    > http://rails-analyzer.rubyforge.org/hacks/classes/SyslogLogger.html
    >
    > but it causes my website to run 10x slower. It looks like there's heavy
    > IO wait. Does anyone know why this may be?
    >
    > Is it just because of the large amount of stuff it has to write to
    > disk? I don't have a lot of memory...is that the main problem?
     
    Lou Vanek, Dec 23, 2005
    #3
  4. kenlet Guest

    What are the other available log levels?
     
    kenlet, Dec 27, 2005
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    3
    Views:
    3,057
  2. HK
    Replies:
    3
    Views:
    464
  3. mike
    Replies:
    3
    Views:
    404
    Virgil Green
    Jul 11, 2005
  4. Replies:
    10
    Views:
    507
  5. Nick Green
    Replies:
    4
    Views:
    202
    Nick Green
    Nov 18, 2009
Loading...

Share This Page