Welcome Guest, Not a member yet? Register   Sign In
huge memory usage discrepancy between localhost and actual host
#1

[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,
#2

[eluser]InsiteFX[/eluser]
Use CodeIgniter's Profiler to see what is going on.

InsiteFX
#3

[eluser]jbawarren[/eluser]
Thanks InsiteFX. That's exactly how I learned about the discrepancy.

Have you seen this problem before?
#4

[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
  // <p><br />Memory usage is {memory_usage}</p>

  // Results:

  // http://localhost/
  Memory usage is 1.32MB

  // Online
  Memory usage is 0.9MB
&nbsp;
&nbsp;
&nbsp;
#5

[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.
#6

[eluser]John_Betong[/eluser]
&nbsp;
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/


&nbsp;
Also try Googling for "web page speed sprites".
&nbsp;
&nbsp;
&nbsp;
#7

[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?
#8

[eluser]John_Betong[/eluser]
&nbsp;
Can you:

1. supply a link to your slow application

2. supply the Profiler details

&nbsp;
&nbsp;
&nbsp;




Theme © iAndrew 2016 - Forum software by © MyBB