News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

Site "hangs" when PHP pages are loaded.

Started by Smith6612, July 23, 2007, 07:39:39 PM

Previous topic - Next topic

Smith6612

Well, this is what's been happening lately. I recently posted a topic regarding my forum hanging while you're logged on a guest and when you visit profiles, that's been fixed now, but another problem has come up. See, ever since I upgraded PHP to the latest stable release, the forum, and even some other PHP pages tend to hang (mainly noticeable on Firefox and PSPs and such). This hasn't seemed to have been getting on anyone's nerves, as no one's been complaining, but I've had SMF 1.1.3 installed even before I upgraded PHP a few releases up. Now, the hang only lasts for a few seconds, though at the time, again, the server is sitting, doing nothing. No CPU usage, no disk space usage, etc. Also, during the hang, images that need to be loaded tend to stop loading or don't load at all until the hang stops 2 seconds later. I would really like to fix this up, as even on my LAN I am noticing this a lot, and would like my full, instant loading back. Here are my server and forum specs/Info in case they are needed:

<TOPIC IS SOLVED>

Forum URL: http://seansite.dyndns.org/forums/index.php

Smith6612

Bump:

Does anyone have an idea, or should I wait until the next PHP release?

karlbenson

have you got any modifications installed?
(the related topics mod?)

Smith6612

I don't have any mods installed other than the latest Googlebot and Spiders mod for SMF 1.1.3. It does the same thing on my Wiki and on fresh SMF installs too.

karlbenson

is this a server @ home?
or is it with a hosting/server company

If its on your home server, you could try going to Admin > server settings >  features and options > layout and options tab > Disable hostname lookups?

See if that makes any difference.

With reference to images, are they ones stored on your server or external ones?  Large size/Animated?
If external, could be that one of the imagehosts is down (and the browser waits for it to timeout)
or if a user has used 'tinyurl.com' to shorten the url, but because tinyurl doesnt send the imagefilesize in the header, the browser hangs until the image is fully loaded.

Smith6612

#5
Everything, including images works off of the server. Also, I already have that unchecked; I had a problem with what that caused, and I posted about that and got it fixed. So it isn't images, and it isn't the Hostname Lookup feature.

Also, about slow image loading, it does the same thing on my LAN, which gives me a good 8MBps download and upload to my server, and I have an unlimited amount of connections enabled to the server. Also, I've never used tinyurl.com, never heard of it anyways :P

karlbenson


Smith6612

I do have compression on, but I don't use a cache on the forum, and I have only a 4MB cache on all my browsers (never gives me probs, though the cache is always clearing itself because of how many forums I have open lol). I used compression even before this started happening, but this might help...

http://seanssite.dyndns.org:85/clientside

Also, I tried turning off compression, no luck. But this problem only occurs when a user loads of a PHP page, but it doesn't affect HTML pages, nor does it lag the server at all when PHP is executed.

karlbenson

do you have anything in your error logs?

Smith6612

#9
Nothing has ever appeared in my logs, except when a user mistypes their password now and again since I've had SMF, and I check them daily.

karlbenson


Smith6612

Well, it was worth trying. Does anyone else have an idea on what could be messed up?

Smith6612

Does anyone else have an idea on what could be wrong, need me to upload any files at all, anything? I'm going to be having a lot of people on my site via my LAN on the 24th of August, so I want to make sure it is fast like it used to be.


Joshua Dickerson

What about your Apache and PHP error logs?
Come work with me at Promenade Group



Need help? See the wiki. Want to help SMF? See the wiki!

Did you know you can help develop SMF? See us on Github.

How have you bettered the world today?

Smith6612

Well, I'm not home so I don't have access to my PHP logs, but I don't use Apache either. I was considering moving over to it one of these days. When I get home later today, Ill post my logs if I have anything in it.

But on a Windows Machine, where would I find it? I think it'll be at C:\Program Files\PHP\ , unless I'm thinking of MySQL where I know the error log for that.

Smith6612

OK, I'm at my house, and I can't find my PHP error logs in my C drive. The only thing I know of outside of the PHP folder is the PHP temp folder, which is empty. Anyone got any ideas where I can find this log or how I can fix this, or will I have to try reinstalling PHP and/or wait for the next release?

SleePy

Are you using your computer as a host?
I would recommend getting a host as a personal computer is not fitted or optimized usually to handle being a server.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

Smith6612

I am using my own computer as a host, it's on 24/7 as it is anyways (along with my other two comps). I do need loads of space for my site, and I do use the site for other purposes, but a free host won't cover it, and I certainly don't have a steady amount of money to go out and buy hosting, even overseller hosting :P

But I have been playing around with the settings a little bit and I've gotten the performance improved a little more. But if you have any other suggestions, I'll gladly take them :)

avenueb

I don't have the answer, but I do have a similar problem.   My site is slow as hell, ever since upgrading to 1.1.3.     It takes like 3 minutes just to load the home page.   meanwhile other php/mysql sites on the same server run smoothly, like gallery..

Advertisement: