View Single Post
  #1 (permalink)  
Old 07-30-2008, 02:44 PM
dlbrown06 dlbrown06 is offline
Junior Member
 
Join Date: Mar 2008
Posts: 11
Default Causing HUGE load on the Server

Hey Guys,

My host is throttling my site's performance due to huge load on my shared server. I built the site with Zend Framework and it only gets around 1K to 2K unique visits a day, and I have heard of a lot more traffic than that without causing much load on a server.

Anyway, apparently I need to optimize its performance.

To first get me started, I took a look at the bootstrap file (index.php).

It's size is ~9500KB or about 10MB. It is so large because I have a ton of router statements like this:

// router for account activation
$router->addRoute('activation', new Zend_Controller_Router_Route_Regex('activate-(.+)-(\d+)\.htm', array('controller' => 'auth', 'action' => 'activation'), array(1 => "code", 2 => "id"), 'activate-%s-%d.htm'));

I had to add all of these to keep the link structure of the site before I added the Zend Framework.

Is this not the best way to handle this? I would think not, because everyone visits this site needs to check ALL of these router regex's.

Does it look like this is a major problem that could be causing me these headache? Any gurus in this forum got a good answer? Thanks!

- Doug
Reply With Quote