vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Sessions problem, +250gb in /var/lib/php/session (https://vborg.vbsupport.ru/showthread.php?t=305628)

suko22 12-09-2013 07:54 AM

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!!

kh99 12-10-2013 08:53 AM

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.

suko22 12-10-2013 01:14 PM

Quote:

Originally Posted by kh99 (Post 2467279)
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.

Lynne 12-10-2013 03:24 PM

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?

kh99 12-10-2013 04:13 PM

Quote:

Originally Posted by Lynne (Post 2467352)
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.

suko22 12-10-2013 06:34 PM

Quote:

Originally Posted by Lynne (Post 2467352)
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.

Zachery 12-10-2013 07:51 PM

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

Are you using Facebook connect?

suko22 12-10-2013 08:40 PM

Quote:

Originally Posted by Zachery (Post 2467451)
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.

Zachery 12-10-2013 10:07 PM

That sounds like a custom coding problem.

suko22 12-11-2013 06:44 AM

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)


All times are GMT. The time now is 03:15 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01853 seconds
  • Memory Usage 1,728KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete