Ruby crawling on a Win2003 Server

M

Marcus Andersson

I have an application that makes heavy use of ActiveRecord to fetch data
and publish to files. When running on my local machine (a laptop with
WinXP) I produce 1-2 files per second which is perfectly acceptable.
When running in the production environment (a Windows 2003 server with
double processors and mucho memory) it crawls. It takes about 30 seconds
to produce each file (using the same dataset although running on
different db servers (localhost (which is contextual...) MySQL 4.1.x in
both cases)).

Is there anyone who has any idea of what might be going on? Any
profiling tips for a Ruby noob?

Ruby 1.8.2 is used.

Thanks

/Marcus
 
R

Rufus Kneeslapper

Marcus said:
I have an application that makes heavy use of ActiveRecord to fetch data
and publish to files. When running on my local machine (a laptop with
WinXP) I produce 1-2 files per second which is perfectly acceptable.
When running in the production environment (a Windows 2003 server with
double processors and mucho memory) it crawls. It takes about 30 seconds
to produce each file (using the same dataset although running on
different db servers (localhost (which is contextual...) MySQL 4.1.x in
both cases)).

Is there anyone who has any idea of what might be going on? Any
profiling tips for a Ruby noob?

Ruby 1.8.2 is used.

Thanks

/Marcus


Try looking at the Windows Event Viewer first in Computer Management.
 
R

Robert Klemme

Marcus said:
I have an application that makes heavy use of ActiveRecord to fetch
data and publish to files. When running on my local machine (a laptop
with WinXP) I produce 1-2 files per second which is perfectly
acceptable. When running in the production environment (a Windows
2003 server with double processors and mucho memory) it crawls. It
takes about 30 seconds to produce each file (using the same dataset
although running on different db servers (localhost (which is
contextual...) MySQL 4.1.x in both cases)).

Is there anyone who has any idea of what might be going on? Any
profiling tips for a Ruby noob?

Ruby 1.8.2 is used.

I'd try to profile with PerfMon as well as Ruby's profiler. For databases
often IO is the bottleneck, so if your 2003 server is slow then maybe it's
doing something else. Online virus scanners often also have an adversary
effect on performance... HTH

Kind regards

robert
 
M

Marcus Andersson

Robert Klemme skrev:
I'd try to profile with PerfMon as well as Ruby's profiler. For databases
often IO is the bottleneck, so if your 2003 server is slow then maybe it's
doing something else. Online virus scanners often also have an adversary
effect on performance... HTH

Okay. I'll look into this. Thanks.

/Marcus
 

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

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top