mChat server load

Display mChat when viewing forums and topics, configurable in the UCP
Post Reply
User avatar
NAPWR
Posts: 30
Joined: 27 May 2017, 12:43

mChat server load

#1

Post by NAPWR » 29 Aug 2018, 06:26

Hello Kasimi and all,

I have just moved our forum to a faster host,

and they now have told me that mChat is using a lot of resources,

which they also say, that too many more users using the chat will spill over the resources.


so the question here is:-

how can I reduce the mChat server load without turning it off ? :lol:

terry2
Donor
Posts: 152
Joined: 22 Oct 2016, 18:22
Location: My castle

Re: mChat server load

#2

Post by terry2 » 29 Aug 2018, 07:56

Make the refresh longer also maybe update to latest version ? my server stats droped with new version.

User avatar
kasimi
mChat developer
Posts: 738
Joined: 06 Oct 2016, 09:56
Location: Germany
Contact:

Re: mChat server load

#3

Post by kasimi » 29 Aug 2018, 08:02

Hi NAPWR,

it all depends on how many users are actively chatting at the same time. Lately I get the feeling that hosts are quick to warn their customers about high resource usage even though it's not as dramatic as they make it sound.

One easy improvement you can make is to fix this bug in core phpBB which will be available in 3.2.4: https://github.com/phpbb/phpbb/pull/5157 The code change saves an UPDATE query on each add, edit & delete action in mChat.

For details about which of mChat's ACP settings affect performance the most, read here: https://www.phpbb.com/customise/db/exte ... pic/174966

User avatar
NAPWR
Posts: 30
Joined: 27 May 2017, 12:43

Re: mChat server load

#4

Post by NAPWR » 29 Aug 2018, 08:17

thanks Terry2 and Kasimi,

is a bit out of my league with code changes.

User avatar
kasimi
mChat developer
Posts: 738
Joined: 06 Oct 2016, 09:56
Location: Germany
Contact:

Re: mChat server load

#5

Post by kasimi » 29 Aug 2018, 08:22

That's easy: open the PR link I posted and click on the Files changed tab. Open your phpbb/sessions.php file. Now add all green lines to your file and delete all red lines. Maybe this side-by-side view helps too: https://github.com/phpbb/phpbb/pull/515 ... diff=split :+1:

User avatar
kasimi
mChat developer
Posts: 738
Joined: 06 Oct 2016, 09:56
Location: Germany
Contact:

Re: mChat server load

#6

Post by kasimi » 29 Aug 2018, 09:35

Also, if you're running phpBB 3.2.0 or 3.2.1, use PHP 7.1. If you're running phpBB 3.2.2, use PHP 7.2.

User avatar
NAPWR
Posts: 30
Joined: 27 May 2017, 12:43

Re: mChat server load

#7

Post by NAPWR » 29 Aug 2018, 10:34

Ok thanks, will see how we go Kasimi :lol:

User avatar
kasimi
mChat developer
Posts: 738
Joined: 06 Oct 2016, 09:56
Location: Germany
Contact:

Re: mChat server load

#8

Post by kasimi » 29 Aug 2018, 12:57

Let me know if you need help. :+1:

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest