vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   "Too many connections" error? (https://vborg.vbsupport.ru/showthread.php?t=315394)

ccw 11-13-2014 11:44 AM

"Too many connections" error?
 
Hi,

Today I receive an error message as below:

Database error in vBulletin :

mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Too many connections /xxx/htdocs/includes/class_core.php on line 317

MySQL Error :
Error Number :
Request Date : Thursday, November 13th 2014 @ 04:32:30 AM
Error Date : Thursday, November 13th 2014 @ 04:32:30 AM
Script : http://forums.mysite.com/search.php?search_type=1
Referrer :
IP Address : ##.##.###.##
Username :
Classname : vB_Database
MySQL Version :

How to solve this problem?

Thanks

Dave 11-13-2014 11:47 AM

<a href="http://dev.mysql.com/doc/refman/5.5/en/too-many-connections.html" target="_blank">http://dev.mysql.com/doc/refman/5.5/...nnections.html</a>
Increase the max_connections variable of MySQL.

RichieBoy67 11-13-2014 02:16 PM

I agree with Dave. Change the setting in the mysql.cnf but also make sure you limit searches because these are very intensive and this is what is causing your issue. Only allow them 30 seconds apart and lower the max output as well.

ccw 11-13-2014 02:27 PM

Thank you very much. I think the error is caused by DOS attacks. So how to prevent this? How to allow the search 30 seconds apart and lower the max output? Should I modify in vBulltin or in MySQL settings?

ozzy47 11-13-2014 02:29 PM

What makes you think it is a Dos attack?

RichieBoy67 11-13-2014 02:55 PM

Quote:

Originally Posted by ccw (Post 2522538)
Thank you very much. I think the error is caused by DOS attacks. So how to prevent this? How to allow the search 30 seconds apart and lower the max output? Should I modify in vBulltin or in MySQL settings?

Under message searching options in your admin panel.

I doubt it is ddos but you can check server logs to be sure.

ccw 11-13-2014 08:40 PM

Because in the past, I also encounter similar error messages and sometimes there will be about thousands of such messages, which makes me believe that is a DOS attack.

ozzy47 11-13-2014 09:56 PM

Well check your server logs and see. :)

ccw 11-14-2014 12:32 PM

Now today I receive 39 "Too many connections" errors, as below:

Database error in vBulletin :

mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Too many connections /var/www/vhost/forums.datanumen.com/htdocs/includes/class_core.php on line 317

MySQL Error :
Error Number :
Request Date : Friday, November 14th 2014 @ 05:36:50 AM
Error Date : Friday, November 14th 2014 @ 05:36:50 AM
Script : http://forums.datanumen.com/private....=newpm&u=15515
Referrer :
IP Address : 157.55.39.30
Username :
Classname : vB_Database
MySQL Version :

and

Database error in vBulletin :

mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Too many connections /var/www/vhost/forums.datanumen.com/htdocs/includes/class_core.php on line 317

MySQL Error :
Error Number :
Request Date : Friday, November 14th 2014 @ 05:42:33 AM
Error Date : Friday, November 14th 2014 @ 05:42:34 AM
Script : http://forums.datanumen.com/entry.ph...ods-Girlfriend
Referrer :
IP Address : 199.58.86.206
Username :
Classname : vB_Database
MySQL Version :

The error body will be different a little, but all said "Too many connections"

It seems that the attacker is try to using different way to attack my server. Is there a way to prevent this, other than just increase the max connection for My SQL?

Thanks

ForceHSS 11-14-2014 12:34 PM

Getting a better host if the one you have can't handle what it has now


All times are GMT. The time now is 07:25 PM.

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.01133 seconds
  • Memory Usage 1,735KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete