Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-09-2013, 08:54 AM
suko22 suko22 is offline
 
Join Date: Jan 2009
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Sessions problem, +250gb in /var/lib/php/session

Hi guys, I have a big problem with my vBulletin Forum 3.8. My dedicated server is going very slow since a few months ago, and the problem is in the hard drives (RAID 2x2 TB), they are working aaaaall time writing in /var/lib/php/session, with more than 250 gb stored here!!!

I´ve got some products installed like Automatic Thread Tagger, IFRAMEr by BOP5 (FREE Version), Per Forum Edit Time Limit, PhotoPost vBGallery, Post Thank You Hack, Quick Editor Improver, vBSEO, vbStopForumSpam, Word Links FREE by BOP5 VB3, DragonByte Tech: Advanced User Tagging (Lite)...

I can´t find where is the problem, seems like sessions are never deleted and are stored forever, any idea???

Thanks!!
Reply With Quote
  #2  
Old 12-10-2013, 09:53 AM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Go to Scheduled Tasks > Scheduled Task Manager and check to see if your Hourly Cleanup and Hourly Cleanup 2 tasks are running. You could run one of them manually and see if it fixes the problem, and if so it means they aren't running like they should.

Also check to see what you have set for Session Timeout under "Cookies and HTTP Header Options" in the options (The default is 900). If you have that set really high then it might cause the problem you described.
Reply With Quote
  #3  
Old 12-10-2013, 02:14 PM
suko22 suko22 is offline
 
Join Date: Jan 2009
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
Go to Scheduled Tasks > Scheduled Task Manager and check to see if your Hourly Cleanup and Hourly Cleanup 2 tasks are running. You could run one of them manually and see if it fixes the problem, and if so it means they aren't running like they should.

Also check to see what you have set for Session Timeout under "Cookies and HTTP Header Options" in the options (The default is 900). If you have that set really high then it might cause the problem you described.
Thanks for the reply. Hourly Cleanup and Hourly Cleanup 2 are working fine, every hour each one.


Session Timeout was 1500 one week ago, then I changed it to 900 as default, but problem persist.
Reply With Quote
  #4  
Old 12-10-2013, 04:24 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This - /var/lib/php/session - is not a directory that vB writes to. vB writes to a session TABLE in your database, but those are not directories. The session table would be a session.frm file. Is that what you are talking about?
Reply With Quote
  #5  
Old 12-10-2013, 05:13 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
This - /var/lib/php/session - is not a directory that vB writes to.

Oh, right. I wasn't paying attention and I was thinking of the session table.
Reply With Quote
  #6  
Old 12-10-2013, 07:34 PM
suko22 suko22 is offline
 
Join Date: Jan 2009
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
This - /var/lib/php/session - is not a directory that vB writes to. vB writes to a session TABLE in your database, but those are not directories. The session table would be a session.frm file. Is that what you are talking about?
No, there are millions of files in /var/lib/php/session and we don?t know where are they coming from. session.frm file is fine, all the problem is that there someting that is making hard drives work all time, fullin the php/session carpet.
Reply With Quote
  #7  
Old 12-10-2013, 08:51 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

vBulletin doesn't use PHP sessions, except in the case of Facebook, but that is facebooks code.

Are you using Facebook connect?
Reply With Quote
  #8  
Old 12-10-2013, 09:40 PM
suko22 suko22 is offline
 
Join Date: Jan 2009
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zachery View Post
vBulletin doesn't use PHP sessions, except in the case of Facebook, but that is facebooks code.

Are you using Facebook connect?
No, no facebook connect.

We have our own bridge between Web session (todocircuito.com) and Forum session (todocircuito.com/foro).

Thanks.
Reply With Quote
  #9  
Old 12-10-2013, 11:07 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That sounds like a custom coding problem.
Reply With Quote
  #10  
Old 12-11-2013, 07:44 AM
suko22 suko22 is offline
 
Join Date: Jan 2009
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks all, we found the problem. 2 chinese search engines have been making thousands of searchs las weeks, colapsing the server. 98% of the ip's in sessions carpet logs were from China.

We have blocked those chinese search engines and server load is now under 10% (before was always 50% Or more)
Reply With Quote
Благодарность от:
Lynne
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:25 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04583 seconds
  • Memory Usage 2,248KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete