Many process connected to Mysql and consumming resources

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
huho78
Registered User
Posts: 44
Joined: Sun Mar 19, 2017 11:32 am

Many process connected to Mysql and consumming resources

Post by huho78 »

Support Request Template
What version of phpBB are you using? phpBB 3.2.0
What is your board's URL? https://www.ellinceiberico.com
Who do you host your board with? webempresa
How did you install your board? I used the download package from phpBB.com
What is the most recent action performed on your board? Please select your answer
Is registration required to reproduce this issue? No
Do you have any MODs installed? No
Do you have any extensions installed? Yes
What extensions do you have installed? Adsense & Ads
Board announcements
Board rules
Database optimize & repair tool
Google analytics
Google translator
Lightbox
Relative dates
Topic preview
VigLink
What styles do you currently have installed? prosilver
What language(s) is your board currently using? spanish
Which database type/version are you using? MySQL 5
What is your level of experience? New to PHP and phpBB
What actions did you take (updating your board; installing a MOD, style or extension; etc.) prior to this problem becoming noticeable? Maybe installing an extension but i'm not sure
Please describe your problem. My phpbb forum is contnue activating process that are consumming a lot of resource. In my hosting say this error: "[Fri May 19 13:13:28.749437 2017] [:error] [pid 532276] mod_hostinglimits:Error on LVE enter: LVE(619) HANDLER(application/x-lsphp56) HOSTNAME(www.ellinceiberico.com) URL(/foro/app.php/feed) TID(532276) errno (7) Read more: http://e.cloudlinux.com/MHL-E2BIG min_uid (500)"
I see in my forum that always there are many users conected aroun 120; y purge all of them and inmediatly they are present again.
Generated by SRT Generator
User avatar
janus_zonstraal
Registered User
Posts: 6427
Joined: Sat Aug 30, 2014 1:30 pm

Re: Many process connected to Mysql and consumming resources

Post by janus_zonstraal »

You can have a look who the visitors are http://www.ellinceiberico.com/foro/viewonline.php?sg=1
Sorry! My English is bat ;) !!!
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: Many process connected to Mysql and consumming resources

Post by david63 »

Is your site using some form of caching such as Cloudflare?
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
huho78
Registered User
Posts: 44
Joined: Sun Mar 19, 2017 11:32 am

Re: Many process connected to Mysql and consumming resources

Post by huho78 »

Thanks. I'm not using Cloudflare or similar (is recommended?)
I have look in the list of people connected that there many of them with very similar ip....what can i do?is a kind of virus installed in my forum?
Attachments
Captura de pantalla 2017-05-20 11.53.12.png
User avatar
janus_zonstraal
Registered User
Posts: 6427
Joined: Sat Aug 30, 2014 1:30 pm

Re: Many process connected to Mysql and consumming resources

Post by janus_zonstraal »

Search where the IP adress is from
http://whatismyipaddress.com/ip-lookup
And if not important block it
Sorry! My English is bat ;) !!!
User avatar
canonknipser
Registered User
Posts: 2096
Joined: Thu Sep 08, 2011 4:16 am
Location: Germany
Name: Frank Jakobs
Contact:

Re: Many process connected to Mysql and consumming resources

Post by canonknipser »

I would suggest to create a bot with the agent string "[email protected]", the there will be only one connection instead of so many; banning IP addresses is mostly useless and ressource-consuming.

You can add to bot afterwards to a "no access" group, if you feel the need
Greetings, Frank
phpbb.de support team member
English is not my native language - no support via PM or mail
New arrival - Extensions and scripts for phpBB
huho78
Registered User
Posts: 44
Joined: Sun Mar 19, 2017 11:32 am

Re: Many process connected to Mysql and consumming resources

Post by huho78 »

I have buikd a new bot as canonknipser suggest and now the number of user connected is low, but i'm still have the same problem of cpu resource
General Error
SQL ERROR [ mysqli ]
User ellincei_forumad already has more than 'max_user_connections' active connections [1203]
An sql error occurred while fetching this page. Please contact an administrator if this problem persists.
In my host a i can read this list of LVE limits reached errors:
I don't know anything about php or mysql...but it seems that there is a process in my phpfourm folder /feed that could be the cause isn't it?
User avatar
WelshPaul
Registered User
Posts: 420
Joined: Tue Aug 19, 2014 2:09 pm

Re: Many process connected to Mysql and consumming resources

Post by WelshPaul »

What's the max_user_connections in your MySQL configuration? It's obviously too low.

In centos 7 for example, edit the following file:
/etc/my.cnf

Look for:
[mysqld]

After add:
max_user_connections = 500

Should look like this:
[mysqld]
max_user_connections = 500

Save the file and restart mysql server.
Last edited by WelshPaul on Sun May 21, 2017 2:53 pm, edited 2 times in total.
huho78
Registered User
Posts: 44
Joined: Sun Mar 19, 2017 11:32 am

Re: Many process connected to Mysql and consumming resources

Post by huho78 »

Sorry, could you explain me how can i check the number of "max-user_connection" configuration? I have a CPANEL in my host where i can access to phpMyadmin...is there?
User avatar
WelshPaul
Registered User
Posts: 420
Joined: Tue Aug 19, 2014 2:09 pm

Re: Many process connected to Mysql and consumming resources

Post by WelshPaul »

Are you on shared hosting? If so then speak to your host!

In phpMyAdmin click on the Variables tab and scroll down until you find max user connections, click on edit and set it at a higher value.
huho78
Registered User
Posts: 44
Joined: Sun Mar 19, 2017 11:32 am

Re: Many process connected to Mysql and consumming resources

Post by huho78 »

My host is shared and the company say me that max_user_connection allowed =15 and they say that is an enough value because is really immprobable that 1 5users at the same time make request on the table.
I have access to PHPMyAdmin but i don't find anything related with max-user-connecttion.
The problem continue. I have banned the list of IP that was causing to many user connection and now the number of users visiting my forum is more real.
Doyou have any reccomendation? can i change anything in PHPMyAdmin?Do i have any spam code inside?Do i need to re-install the forum?

Thank you
User avatar
canonknipser
Registered User
Posts: 2096
Joined: Thu Sep 08, 2011 4:16 am
Location: Germany
Name: Frank Jakobs
Contact:

Re: Many process connected to Mysql and consumming resources

Post by canonknipser »

huho78 wrote: Tue May 23, 2017 5:29 am I have banned the list of IP
as said above
canonknipser wrote: Sat May 20, 2017 12:18 pm banning IP addresses is mostly useless and ressource-consuming.
. You've already added that user as a bot, so there is no need to ban the IP addresses.
Those users in mysql max user connection are not your board visitors, neither registererd or bots or guests , but are the technical users used by the backend processes to access your database (i.e. the database user configured in your config.php). It depends how many other installations (maybe yours like a wordpress site, maybe sites from other customers) are using the same database server. You need to speak to your host if they can identify which users are connected to the database server and who is the "owner" of those users
Greetings, Frank
phpbb.de support team member
English is not my native language - no support via PM or mail
New arrival - Extensions and scripts for phpBB
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: Many process connected to Mysql and consumming resources

Post by david63 »

With a maximum connection limit of 15 I would guess that you are either on free hosting or it is very cheap. The normal value is around 100.

No matter what you do there is no way to stop any bot/user or anything else from trying to access your server - yes you can put measures in place so that they do not show up but you cannot stop them.

If you host has such a low limit then it is probably time to find a new host.
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
huho78
Registered User
Posts: 44
Joined: Sun Mar 19, 2017 11:32 am

Re: Many process connected to Mysql and consumming resources

Post by huho78 »

Hosting company (it is not a free hosting) tell me that the max_connections=300 and the max_user_connections=15 (now 20 because they have improve a bit my account). When you say that usually hosting offers 100 connections is max_user_connections or max_connections?

thank you so much for your help
User avatar
WelshPaul
Registered User
Posts: 420
Joined: Tue Aug 19, 2014 2:09 pm

Re: Many process connected to Mysql and consumming resources

Post by WelshPaul »

You need a better host, it's as simple as that!

I would set max_connections at 500 as a starting point, 300 is on the low side too. These values will vary from server to server depending on spec and personal requirements etc.

Even if they push the values up a little, a bit more traffic and your site is going to go down again.
Post Reply

Return to “[3.2.x] Support Forum”