smf_session marked as crashed almost 10 times a day - Need permanent solution

Started by Sudhakar Arjunan, October 12, 2014, 07:26:43 PM

Previous topic - Next topic

Sudhakar Arjunan

Dear SMF Team,

I have been facing this issue for almost 10 times a day of smf_session is marked as crashed and atleast once , the server restarts itself.

Almost 5 years i have developed my smf forum in a linux dedicated server with 100 other sites. It had grown to 1 lakh post and daily 16,000 visitors to the site. So just wanted to improve the speed of the server, moved to windows dedicated server with only 6 other small sites in it. ( 15 mins avg online 250 )

I had running a windows dedicated server with 6 other small sites in it for last 18 months to improve the speed of the site and ranking.
( Intel Xeon Quad Core, 2.5GHz (8 threads), 250 Mbps Uplink, 4 GB DDR3 RAM, 1,000 GB RAID-1 Drives, 15 TB Bandwidth ).

Scenarios changed and there are loads of issue with smf_session, very often and google took my site to ground.
I had only 5000 visitors per day and there after 6 months faded in to 1200 visitors every day with 1.80 posts only. ( 15 mins average online 75 only )

only issue and server will restart atleast once a day
Table '.\sitename_smf20beta3\smf_sessions' is marked as crashed and should be repaired

My server company being number one in hosting and dedicated market , cannot find even one reason for server restarts for last 18 months.

So i have planned to move to a unique dedicated server and i did the same last week. Move my smf forum on a dedicated standard server with the same spec i mentioned above.

But same happens here but no of time is less, last 3-4 days i see restarts are only 5 - 6 times and site going offline only 3 times as Table '.\sitename_smf20beta3\smf_sessions' is marked as crashed and should be repaired

Now a days 300 visitors to our website with 1.80 lakh post and 2 lakh pages in google ( 15 mins average online 25 only to max 45 a day )

So we need permanent solution team for this issue, if there is no solution i have to go out of 7 years love with smf to another paid board.

Error in logs : last 3-4 days - 6070 errors
http://subdomain.sitename.com/index.php?topic=71081.0Apply Filter: Only show the errors with the same message:
Table '.\sitename_smf20beta3\smf_sessions' is marked as crashed and should be repaired
Apply Filter: Only show the errors from this file File: C:/Inetpub/vhosts/sitename.com/httpdocs/subdomain/Sources/Load.php
Line: 2438

So i have checked load.php and the line 2438 is here for your knowledge :

function sessionRead($session_id)
{
   global $smcFunc;

   if (preg_match('~^[A-Za-z0-9,-]{16,32}$~', $session_id) == 0)
      return false;

   // Look for it in the database.
   $result = $smcFunc['db_query']('', '
      SELECT data
      FROM {db_prefix}sessions
      WHERE session_id = {string:session_id}
      LIMIT 1',
      array(
         'session_id' => $session_id,
      )
   ); - line 2438

Mods in forum :

Modification Packages
Mod Name   Version   
1.   Add Facebook Like, Tweet, and Google +1   1.0.3a   [ Install Mod ]
2.   Advanced Recent Posts   1.1.1   [ Install Mod ]
3.   Aeva Media   1.4w     [ Uninstall ]
4.   Bad Behavior mod   1.5.10     [ Uninstall ]
5.   Board Viewers Mod   1.2.1.1b     [ Uninstall ]
6.   Current Signature Mod   1.2     
7.   Custom Copyright   1.0.2   
8.   Custom Copyright   1.0.3     [ Uninstall ]
9.   Downloads System   1.5.1     [ Uninstall ]
10.   RSS Feed Icon   1.1     [ Uninstall ]
11.   Global Headers Footers   2.0.1   [ Install Mod ]
12.   GoogAd Mod v.1.4   1.3     [ Uninstall ]
13.   Google +1 Topics   1.0     [ Uninstall ]
14.   Google Analytics Code   1.4     [ Uninstall ]
15.   Invitation Message In Your Face (IMIYF)   0.3.1   [ Install Mod ]
16.   Install & Uninstall Mods Quickly   1.4     [ Uninstall ]
17.   Integration Hooks Report   1.5.1   [ Install Mod ]
18.   Join Reason   1.3     [ Uninstall ]
19.   Last Active On MemberList   1.4   [ Install Mod ]
20.   Login Logger   1.0     [ Uninstall ]
21.   Menu_Icons   1.0   
22.   SEO Sitemap   2.2     [ Uninstall ]
23.   More Spiders   1.2     [ Uninstall ]
24.   News Letter Mod for SMF2   1.25   [ Install Mod ]
25.   New Topic Button   1.0     [ Uninstall ]
26.   Online status on login   1.7   [ Install Mod ]
27.   Personal Twitter   0.5.0   [ Install Mod ]
28.   Sayfa Numarasi   1.0     [ Uninstall ]
29.   Post_Board_Select   1.3     [ Uninstall ]
30.   Previous and Next Links for Page Index   2.0     [ Uninstall ]
31.   Register Redirect   1.0   [ Install Mod ]
32.   Relative Dates   1.2     [ Uninstall ]
33.   Remember Position After Login/Logout v1.0.3   1.3   [ Install Mod ]
34.   Remove Child Boards   2.3.3     
35.   Restrict Email Providers on Registration   1.2   [ Install Mod ]
36.   ReTweet Me   0.6   
37.   Search Topic And Boards Button   1.0   [ Install Mod ]
38.   SimpleAds   1.0.1     [ Uninstall ]
39.   SimplePortal   2.3.5   [ Install Mod ]
40.   Sitemap   2.2.0     
41.   Contact Page   3.0     [ Uninstall ]
42.   SMF Redirect Links   1.0   [ Install Mod ]
43.   SMF Social Network LITE   2.0rc3   
44.   SMF 1.1.19 / 2.0.6 Update   1.0     [ Uninstall ]
45.   SMF 2.0.3 Update   1.0     
46.   SMF 2.0.4 Update   1.0     
47.   SMF 2.0.5 Update   1.0     
48.   SMF Quiz   1.1.0     [ Uninstall ]
49.   Social Buttons   2.0   [ Install Mod ]
50.   Social Login   2.2   [ Install Mod ]
51.   Stop Spammer   2.3.9     [ Uninstall ]
52.   Tagging System   2.4.2   
53.   Tagging System   2.4.3     [ Uninstall ]
54.   Tapatalk SMF 2.0 RC4/RC5/Final Plugin   3.0.2   [ Install Mod ]
55.   Team Page   3.6   [ Install Mod ]
56.   TinyPortal   1.107   [ Install Mod ]
57.   Top X Stats   1.0.1   [ Install Mod ]
58.   Tynt-SMF Tracer Mod   2.0     [ Uninstall ]
59.   UnreadMessagesForTitle   1.0   [ Install Mod ]
60.   Unapproved Posts on Moderate Button   1.1   [ Install Mod ]
61.   Users Online Today   2.0.2     [ Uninstall ]
62.   Yap Service   1.0   [ Install Mod ]
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

vbgamer45

Disable database driven sessions or look into changing to a new server machine.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Arantor

Dropping out of DB sessions is only wise if 1) no other sites are on the same machine (or it is *properly*) secured and 2) you're actually going to get a performance benefit out of it... not the case here.

Changing server is also unlikely to make a difference.

MyISAM tables such as the session table uses by default are prone to corruption for heavy use tables; the sessions table should be converted to InnoDB.

Sudhakar Arjunan

Ok team,

I forget to tell you.

Tried google cloud sql for 1 days , had only smf sql table in google cloud sql and site was loading form my old dedicated windows server .( tried two weeks back before going to a new dedicated server now )

The site was loading with 12.5 seconds delay for each load and repeated load 8 - 10 sec delay. ( as shown in load time on site footer ).

But if within same server i get the site loaded in 4 seconds 1st time and 2.5 seconds there after.

So vb gamer, what do you mean by disable db driven sessions., I see 500 - 600 records always in side smf_sessions table

Also Arantor, do you mean, i could simple change smf_session in to inno db just like that - are you sure , i dont want to stop the site even there are only 300 users online a day. Since once there problems are set, and also am good at seo for year. I would get my site on top results with in 6 months.

Kindly advice and thanks for your instant reply.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

vbgamer45

The entire server restarts or just mysql?
To disable database sessions uncheck this under server settings "Use database driven sessions"
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Sudhakar Arjunan

Hi Vbgamer,
The entire server gets restarted. And the shows smf_sessions marked crashed message both old dedicated box and new dedicated box with only this domain only.

Yes that option was already selected and here is the attachment for your reference.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

vbgamer45

Well that is bad issue you server shouldn't restart each day....You need to look at your forum error logs. I have windows servers and only restart them on windows updates
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Sudhakar Arjunan

Thank you Vbgamer45 , for your time and effort.

Anyone here in smf team to support to get rid of this issue.

Tried two dedicated windows server - standard ( configurations given above ).

The new dedicated windows server only runs smf forum.

Restart happens only after smf is live, if smf and db is disabled, no restarts.

Restart happens every one hour , only 10 % it was showing smf_sessions marked as crashed.

Kindly assist team.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

vbgamer45

Did you see anything in your event viewer? How is your CPU load? A server should not restart every hour.....
What is the windows server version?
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Sudhakar Arjunan

Thank you team,

But unfortunately no solution till now.

Am regularly getting smf_sessions crashed very often, atleast weekly thrice with no error log or something.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Illori

do you have a host you can contact for support? if they will not help you then maybe time to look for a new host that will help you.

Sudhakar Arjunan

Quote from: Illori on November 11, 2014, 05:23:49 AM
do you have a host you can contact for support? if they will not help you then maybe time to look for a new host that will help you.

Thank you and if you have read my above post , i had moved 3 dedicated servers now with different hosting providers.

All 3 hosting company ,tried for 5 years now and they said this table crash is something to do with the script which am using. So they have asked some programmers to check since this is out of there support boundary.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Illori

SMF has nothing to do with tables crashing, that is a server side issue most of the time. you must have some really sucky hosts.

Kindred

I have been running SMF for almost 10 years now - and I can count, on one hand, the number of times I had a crashed table.


So... if you are continually getting crashed tables, then - as Illori says - I am afraid you are going to have to blame your HOST(S) not SMF
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: