Rails syslogger extremly slow..

G

Gene Tani

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
 
L

Lou Vanek

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top