Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 317
  • Last Modified:

Performance issue with php website

Hello,

I have the following strange problem with a website I have created.

While I am browsing the website using a browser (any type), after browsing some pages (let's say 50 pages), the website becomes very very slowly. If however I open a new browser window the site is fast again. Are there any chances that something is slowing down the specific browser window when I am browsing page after page of the website?

Thanks a lot for your help,
John
0
infodigger
Asked:
infodigger
3 Solutions
 
mattibuttCommented:
Hi
Are you using cdn network for your website this will improve performance there is possibility that your sessions are not destroyed correctly
0
 
infodiggerAuthor Commented:
Hi Mattibutt,

Is there a way to find out if the sessions are not destroyed properly? I am not currently using a CDN network.

Thanks,
John
0
 
Ray PaseurCommented:
Where is the web site hosted?
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
infodiggerAuthor Commented:
Ray,

Is on a decicated server and I can't see any issues related to CPU / MEM of the server. The load is very low on the server.

Thanks,
John
0
 
Ray PaseurCommented:
Have you got a data base?  If so, are you creating tables?  It may be that the growth in size of tables (perhaps without indexes) could be in play.

You might want to add var_dump($_SESSION) to the page footer to see if the sessions are expanding unreasonably.
0
 
Ray PaseurCommented:
Here's another thought on the session-related possibilities.  PHP sessions normally go away after 24 minutes of inactivity.  Try working through the site until you hit the slow condition, then go to lunch or something.  When you come back the session should have expired.  It might be interesting to see how fast or slow the site is after that exercise.
0
 
infodiggerAuthor Commented:
Ray,

Yes, I have a database but I am only selecting data and have the proper indexes. Also I am using microtime to see how much time it takes to load each page and the average is about 0.02 s. However, even if I see this number the page takes very long to be displayed on the browser.
0
 
Ray PaseurCommented:
Hmm... sounds like the issue may not be in the server at all.  I wonder if the browser cache is too small.  Not even sure how I would go about checking that.  What browser are you using?
0
 
jrm213jrm213Commented:
Are you using flash? I only ask because if you are using flash and it is dynamically grabbing data in a loop, I have seen bugs where the flash is not properly releasing memory when it rotates content reading it from your site. I have seen flash banners take down machines if left running over night.

There is a fix for it but I don't remember what it is at the moment, I would have to look at one of my old projects that used Flash if you think that it could be the problem.
0
 
infodiggerAuthor Commented:
This actually happens on both Firefox 6 and IE 8. I haven't tested any other browsers yet.

jrm213jrm213, yes some pages do have flash charts that load dynamic data. I will check that and replace them with javascript ones to see the results.

Thank you all!
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now