Application working very slow

Hi all,
I’ve developed a web application using InstantRuby and Apache HTTP
server with SCGI. Problem is, it is working very slowly while accessing
pages, also CPU usage goes to 100%. Ruby.exe is utilizing CPU 100%. I
cant find problem in my development environment. Please help me out.