huge memory usage discrepancy between localhost and actual host - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: huge memory usage discrepancy between localhost and actual host (/showthread.php?tid=38205) |
huge memory usage discrepancy between localhost and actual host - El Forum - 02-01-2011 [eluser]jbawarren[/eluser] I have been troubleshooting a performance issue on my hosted server, and while I havent seemed to solve the problem, I did find a huge memory usage descrepancy between my localhost and actual host. My memory usage locally is: 676,428 bytes And on my server is: 2,265,732 bytes That's a huge difference! Is it common for there to be such a huge difference? Thanks, huge memory usage discrepancy between localhost and actual host - El Forum - 02-01-2011 [eluser]InsiteFX[/eluser] Use CodeIgniter's Profiler to see what is going on. InsiteFX huge memory usage discrepancy between localhost and actual host - El Forum - 02-01-2011 [eluser]jbawarren[/eluser] Thanks InsiteFX. That's exactly how I learned about the discrepancy. Have you seen this problem before? huge memory usage discrepancy between localhost and actual host - El Forum - 02-01-2011 [eluser]John_Betong[/eluser] This difference has always puzzled me as well. I have ensured that the Profiler is not in use on both localhost and the server. Fortunately it is my locahost which uses more MBs. Code: // added following line to ./views/welcome_message.php huge memory usage discrepancy between localhost and actual host - El Forum - 02-01-2011 [eluser]jbawarren[/eluser] Are you experiencing any performance issues? My site's slow and I'm wondering if this is the culprit - considering Codeigniters reputation of speed. huge memory usage discrepancy between localhost and actual host - El Forum - 02-01-2011 [eluser]John_Betong[/eluser] I reckon your site is slow because not only is there a large number of images, some are quite large. Try: 1. browsing with Opera and turn the images off. 2. analyse with - http://tools.pingdom.com/ 3. analyse with - http://www.indeep76.com/ 3. analyse with - http://siteloadtest.com/ Also try Googling for "web page speed sprites". huge memory usage discrepancy between localhost and actual host - El Forum - 02-01-2011 [eluser]jbawarren[/eluser] Thanks, but I've got like 2 or 3 images in the whole application. I'm really hoping that it's a server setting or a known issue of some sort. Any other ideas? huge memory usage discrepancy between localhost and actual host - El Forum - 02-01-2011 [eluser]John_Betong[/eluser] Can you: 1. supply a link to your slow application 2. supply the Profiler details |