Strange forum response speed behaviour

Started by amiranda, April 10, 2006, 07:46:31 AM

Previous topic - Next topic

amiranda

Hi, i'm a newbie and i'm having a problem with smf.

I installed and customized my forum a bit, but i'm not running any accelerator. Mostly it's a clean install.

The problem is: when a user is logged on (admin, for instance), the speed that a page takes to create (i've enabled the create time display) is less than 1sec.
When there is no logon (guest), the time is typically 28sec + a few milliseconds.
The 28secs are a constant, therefore i think this may be some simple problem i'm not figuring out.

Anyone has any ideas to try?

PS. I'm testing the above response times using the same remote connection.

Ben_S

Liverpool FC Forum with 14 million+ posts.

amiranda

If i understood what you meant, i tryed refreshing many times, the same page, and i get the following results when not loged on:

28,606 seconds with 8 queries
28,603 seconds with 8 queries
28,609 seconds with 8 queries
28,659 seconds with 8 queries
...

The rest of the results are alike. You can see what I mean by the 28secs being a constant...

Then I did the same test, in the same forum page, but this time logged on as admin. The results are:

0.102 seconds with 5 queries
0.106 seconds with 7 queries
0.104 seconds with 7 queries
0.103 seconds with 7 queries
...


amiranda

Just to add a few more info:

I'm using SMF 1.1 RC2

amiranda

Even a bit more of info:

I've been testing the forum server with other users, and all users except admin seem to have the 28+ sec delay, not only guest, as posted above.

Any ideas why is this happening?

Ben_S

Liverpool FC Forum with 14 million+ posts.


Ben_S

Liverpool FC Forum with 14 million+ posts.

amiranda

I had already checked on that topic previously. Anyway i can't seem to find the file status.php.
My link should be http://sdskforum.no-ip.org/status.php?php [nofollow] if i understood the instructions in the post. I don't have a subdir, as my index.php is in: http://sdskforum.no-ip.org/index.php. [nofollow]

Right now i don't have access to the server, as i am at work. As soon as i get home i can access the server and try to find the status.php file.

I'll post back when I've made any achivement.

Anyway, thanks for the fast help provided!!

Ben_S

status.php is attached to the first post in http://www.simplemachines.org/community/index.php?topic=49999.0 you need to download it and upload it to your server.
Liverpool FC Forum with 14 million+ posts.

amiranda

Lol... once again your right!

I should know better than posting without paying attention to other posts.  >:(

Anyway, status.php is up and running at http://sdskforum.no-ip.org/status.php?php [nofollow]
There is a lot of info there that i must pay attention to. Hope you can get anything out of it, i'll try to figure it out now by myself right now.

Thanks once more.

amiranda

Well, by looking at status.php and status.php?php I couldn't figure out anything special. But i'm just a newbie to smf so maybe an experienced opinion may help me solve the problem.

http://sdskforum.no-ip.org/status.php [nofollow]

Right now i've managed to avoid the timeouts and blank pages by waiting 60sec before any timeout.
Having the 28sec delay i said above, the 30sec timeout i had previously set in php.ini made it really easy for lots of timeouts, due to the small margin of <2 sec.

So, the forum is working, but i still get those strange 28sec delays when i'm not logged on as admin...

Ben_S

It shouldn't make any difference but try disabling host name lookup.
Liverpool FC Forum with 14 million+ posts.

amiranda

Ok Ben. Once again i'm at work, so i'll try it out as soon as i get home.

amiranda

I haven't tryed disabling host name lookup yet, but i think i may add this extra info:

I get this slowdows as soon as i logout as admin. The forum behaviour is like this: I open it as a guest, and all pages respond slowly (>28sec). Then I log as admin, and all pages respond in less than 1 sec. As soon as I logout, everything goes back to turtle speed and timeouts.
If i logon with another user than admin, it's always slow.

I would say that it should be something that can be customized to admin and different to other users. ?!?! Any ideas?

amiranda

 >:( aaarrrgghhhh

I still haven't solved my delay problem...

My next step will be to do a clean install of apache 2 and php 5 and mysql...

But to give it a last try, how do i disable host name lookup, Ben?

My ignorance...  ;D

minskog

HostnameLookups Off <- in apache configuration file (apache2.conf in debian, httpd.conf in centos), but this is the default value (Off)

Ben_S

It's probably in admin > features and options
Liverpool FC Forum with 14 million+ posts.

uclaros

Hi all,
Sorry for hijacking a dead topic, but I have exactly the same problem.
Forum only works normaly for the logged administrator. All other access gets the delay, around 22 seconds in my case...
i'm using:
SMF 1.1RC2
apache 2.0.50
MySQL 4.0.20
HostnameLookups Off
on a local network mandrake linux 10.1 installation - no internet.
The problem persists even from the linux box browser.

Any news on this one? amiranda?

baskin

I'm having as well the same problem. The delay for me is 5-6 secs. Admin user has 0.5 secs.

I'm using
joomla 1.0.11
SMF 1.1RC3
bridge 1.1.6
apache 2.0.54
myql 4.1.13
php 5.0.4

Does anyone knows something about this?

baskin

Sorry guys, my mistake.

I was sure that i had disabled hostnamelookups, but i didn't.

So everything is ok.

Thanks again.

slade24

Disabling host name lookups worked for me.

I'm on a shared host (which is running IIS, blech I know, but I'm kinda stuck with it), and I figured that might have something to do with it, but it seemed odd that everything was fast as an admin and slow otherwise. I went through everything to find this topic.

Anyway, thanks.

jerm


Advertisement: