Advertisement:
Advertise With Us!

Author Topic: Discontinuos slow forum  (Read 2050 times)

Offline Epitaffio

  • Semi-Newbie
  • *
  • Posts: 17
Discontinuos slow forum
« on: July 20, 2012, 10:37:08 PM »
Hi all,

i've a problem with my forum, at (apparently) random time, it's go slow like hell. Well, not random at all, let's say randomly when there are more then 10/15 users, but first things first:

This is the forum: http://forum.sohead.org [nofollow]
The status.php: http://forum.sohead.org/status.php?mysql_info=1 [nofollow]
The phpinfo: http://sohead.org/info.php [nofollow]

The forum is on a VPS (Xeon Quad E5620, 0.50GHz reserved - 512MB RAM / 512 SWAP many time we use a little bit of it, shhh ).
The OS info are: Ubuntu 12.04 64bit with this services: Nginx, Php5 (with memcache), MySql, Sphinx and Postfix.
The forum info: 653.681 Posts in 21.509 Topics by 379 Members (at this time) and a TON of Boards, more than 200 (i know it's a bad practice, but it's so .-.) and during peak time, we have 30 users online.

And these are our mod:
1.    WYSIWYG Quick Reply, 2.3 (a must have but so bugged with 2.x, i've patched it with info founded in the related thread)
2.    Tapatalk SMF 2.0 RC4/RC5/Final Plugin, 3.0.2 (i hate this, but i have some iPhone users that whining about the pinch to zoom and forum usability... ... ...)
3.    Aeva ~ Auto-Embed Video & Audio, 7.2 (other must have, it's the lite version, never had problem with this)
4.    Spoiler Tag, 0.7.2a (same as aeva)
5.    Hide Tag Special, 3.0 (so bugged in conjunction with the spoiler, but the only one i finded)


Our problem is mostly about that the server take a long time before serving the page to the browser. No matter if you open a single page or a bunch of them, the pages (or the page) sleeps for a couple of seconds and then quick load.
All of this seem to happen to randomly users when there are more then 10/15 users.

Oh, by the way the problem it's started quite recently, and obviously i can't say when T_T.



Ok, now, seeing all the info up here, there are any visible problems with the forum or the configs i've posted?

What can i do for check for any other related setting/problem?

Can i use the "inactive users" script? I've read that it will grow the database and can slow the forum (with all of our boards, we will have A LOT of rows in the log_xxx table with the inactive script). I don't know the query for the "new" board/thread, it will use advantage from all the rows in the log_xxx table or it will mess up things?

If needed i can post also the nginx and mysql config file (they are really default by the way, i've only installed it with apt-get and configured the security a bit).


Thank you all in advance and sorry for any noticeable grammar errors but here are 4.30 AM and i'm a dunce with english grammar :O
Matteo.

Offline Epitaffio

  • Semi-Newbie
  • *
  • Posts: 17
Re: Discontinuos slow forum
« Reply #1 on: July 22, 2012, 11:12:52 AM »
No hint? : (

Online CoreISP

  • Server Admin
  • Servers Team
  • SMF Super Hero
  • *
  • Posts: 11,055
  • Gender: Male
  • CoreISP.net
    • coreisp on Facebook
    • liroyvh on LinkedIn
    • @liroyvh on Twitter
    • CoreISP Corporation :: WebHosting, Dedicated Servers, and more!
Re: Discontinuos slow forum
« Reply #2 on: July 22, 2012, 01:57:35 PM »
According to Status.php, you are running out of memory. 512MB isn't much anyway.
However, status.php is very unreliable for proper measuring, but since your server seems to use swap; it looks like it really is.
To do a reliable check, can you please do this in SSH:
vmstat -SM
and/or: free -m
  CoreISP.net Corporation
  WebHosting, Colocation, Domain Registration & Network Services

  DedicatedBox.us Servers
  Low priced Servers in a high-quality Network,
  the place for all your server needs!

  Awesome deals for Big Boards! Contact us!

((U + C + I)x(10 − S)) / 20xAx1 / (1 − sin(F / 10))
If I ever get twins I will shout "LOL repost!" through the delivery room when the second one is born.

Offline Epitaffio

  • Semi-Newbie
  • *
  • Posts: 17
Re: Discontinuos slow forum
« Reply #3 on: July 22, 2012, 07:09:09 PM »
Code: [Select]
             total       used       free     shared    buffers     cached
Mem:           491        481          9          0         28        266
-/+ buffers/cache:        187        304
Swap:          511         54        457

So, from the smf config/status there aren't any problem, right?

Offline Joshua Dickerson

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,644
  • Gender: Male
    • joshuaadickerson on LinkedIn
Re: Discontinuos slow forum
« Reply #4 on: July 26, 2012, 02:34:26 PM »
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?

Offline Epitaffio

  • Semi-Newbie
  • *
  • Posts: 17
Re: Discontinuos slow forum
« Reply #5 on: July 27, 2012, 09:36:10 AM »
yep, all those except for:

8: Run the mark read for inactive users script periodically.
As i wrote in the first post, i don't know if it can help us or will mess up things

9: Do you really need that many boards?
yes : (


Online ziycon

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 1,882
  • Gender: Male
Re: Discontinuos slow forum
« Reply #6 on: July 27, 2012, 10:08:50 AM »
It looks like you don't have enough resources to handle the load on the site and the amount of data being stored, bare in mind that as your on a vps the 512mb of RAM has to run the operating system, web server, PHP, mysql etc.
Please don't PM me for support unless asked as they'll be ignored.
If you've removed the SMF copyright you won't get support.

ign.ie | SQLFace | APRAI | war.ie

Offline Epitaffio

  • Semi-Newbie
  • *
  • Posts: 17
Re: Discontinuos slow forum
« Reply #7 on: July 27, 2012, 12:31:25 PM »
Ok, i was right at the end.


Thank you all! :3