Check my status.php?

Started by chette, November 04, 2006, 11:00:50 PM

Previous topic - Next topic

chette

We've been experiencing situations wherein the website seems to "hang" -- meaning, whenever I enter the URL in the browser, it will take forever before Firefox finally displays its standard connection problem page.

Its probably in my server configuration :( I used the out-of-the box setup of our host, being totally new (really) to VPS.

Can someone make any suggestions based on the information below? I would really appreciate any help & guidance to make this work out :(

Forum: http://talk.philmusic.com/board

Status.php: http://talk.philmusic.com/board/status.php

phpinfo: http://talk.philmusic.com/board/status.php?php

Accelerators: None

Mods: None

Checking of avatar size: Disabled

Hosting type: VPS

Total posts: 168,997 Posts in 12,874 Topics

Average posts per day: 247.53

Total Posts: 168,999

Average online per day: 58.6
chette

Oldiesmann

Your host needs to increase the following MySQL variables:

query_cache_size
thread_cache_size

I would also recommend asking them to install APC or a similar accelerator so you can take advantage of SMF's built-in caching support.

chette

Thanks Oldiesmann. I really appreciate it. I'll try to changes right now.
chette

JuanPablo

Quote from: Oldiesmann on November 08, 2006, 04:58:42 PM
Your host needs to increase the following MySQL variables:

query_cache_size
thread_cache_size

I would also recommend asking them to install APC or a similar accelerator so you can take advantage of SMF's built-in caching support.

How increase this variables?

query_cache_size
thread_cache_size

SleePy

contact your host and ask them...
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

Oldiesmann

Yes, those are things that only the server admnistrator (or someone with root access in MySQL) can change.

JuanPablo

Quote from: Oldiesmann on November 14, 2006, 12:21:42 AM
Yes, those are things that only the server admnistrator (or someone with root access in MySQL) can change.

the host is my

Oldiesmann

In that case, login to MySQL as root from the shell.

Once you get the mysql prompt, you can change the values using this command:

SET GLOBAL variable=value;

Keep an eye on status.php while you're doing this so you can tell when you have the right values set.

For thread_cache_size, I recommend starting at 1024 and increasing or decreasing the values in multiples of around 512 (0.5kb) or so until things get within normal range.

The query_cache_size will need to be much larger - MySQL recommends a minimum of 40kb (40198) for this. Increase it and decrease it by 1kb (1024) as needed until things even out.

The SET GLOBAL ... command is the best way to do it because it allows you to change variables on-the-fly without having to restart MySQL each time.

JuanPablo

Quote from: Oldiesmann on November 14, 2006, 11:07:04 AM
In that case, login to MySQL as root from the shell.

Once you get the mysql prompt, you can change the values using this command:

SET GLOBAL variable=value;

Keep an eye on status.php while you're doing this so you can tell when you have the right values set.

For thread_cache_size, I recommend starting at 1024 and increasing or decreasing the values in multiples of around 512 (0.5kb) or so until things get within normal range.

The query_cache_size will need to be much larger - MySQL recommends a minimum of 40kb (40198) for this. Increase it and decrease it by 1kb (1024) as needed until things even out.

The SET GLOBAL ... command is the best way to do it because it allows you to change variables on-the-fly without having to restart MySQL each time.

Exelent, thanks for reply my message.
This is mi status.php
http://foro.enfierrados.com/status.php

How can get optimized my server?

Oldiesmann

Follow the instructions I gave you in my last post - you need to increase the query_cache_size, table_cache and thread_cache_size variables.

JuanPablo

Quote from: Oldiesmann on November 14, 2006, 11:51:36 AM
Follow the instructions I gave you in my last post - you need to increase the query_cache_size, table_cache and thread_cache_size variables.

But how intruce this command in console mysql?

I have linux red hat and not understand too much...


Oldiesmann

As I said earlier...

Login to MySQL from the shell as root (mysql -uroot -p, enter the password when prompted).
When you see the mysql > prompt, enter the SET GLOBAL variable=value; command. Replace "variable" with the actual variable name and "value" with the value that you want for that variable.

JuanPablo

Quote from: Oldiesmann on November 14, 2006, 12:11:41 PM
As I said earlier...

Login to MySQL from the shell as root (mysql -uroot -p, enter the password when prompted).
When you see the mysql > prompt, enter the SET GLOBAL variable=value; command. Replace "variable" with the actual variable name and "value" with the value that you want for that variable.

Thanks, i change this values, but still the same numbers, and the letters still black, is normal?

Oldiesmann

Just keep adjusting them until things get within normal range.

Suggestions:
table_cache and thread_cache - start at 1024 (1KB) and increase/decrease by 256 as needed
query_cache_size - start at 1048576 (1MB) and increase/decrease by 10240 (10KB) as needed

It may take a while. On one forum that I help out with, we had to set the query_cache_size to 3MB (3145728) to get things within normal range.

chette

Hi oldiesmann! We did the adjustments on query_cache (3MB), table_cache (1MB), and thread_cache_size (1MB). I thought things we're doing well for a few days, until it "hang" again a while ago :(

Would it be advisable for me to give query_cache a higher value?

My status.php is here: http://talk.philmusic.com/board/status.php

(By the way, thanks for all your help. I really appreciate it.)
chette

chette

Just to add to my post: I brought back query_cache size to 1MB. (When I changed it to 3MB, it kept hanging every few minutes)
chette

KGIII

chette:

I am following up on older topics. Does your last post imply that you managed to resolve this? That when you set the query_cache back to 1MB all was good and you are all set now?

My PC Support Forum
Please ask in-thread before PMing
                   SMF Help
                   Visit My Blog

How can we improve the support process?:
http://www.simplemachines.org/community/index.php?topic=163533.0

SMF vs. Godzilla? Who do you think will win?

chette

Ah, I did something else: I downloaded this thing called tuning-primer.sh which gave me suggestions on my MySQL variables.  
chette

KGIII

Alright, thank you for showing us what worked for you. :)
* KGIII marks it solved

My PC Support Forum
Please ask in-thread before PMing
                   SMF Help
                   Visit My Blog

How can we improve the support process?:
http://www.simplemachines.org/community/index.php?topic=163533.0

SMF vs. Godzilla? Who do you think will win?

Advertisement: