Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions

You are not logged in.

Announcement

#1 2015-07-14 08:19:16

olegfusion
Member
Registered: 2015-06-29
Posts: 32

looking to optimize delays (memcached?)

Hello again!
I have small delays on the chat, but it's a little bit annoying.
So, I started to look around about optimizing speed.
installed php5-memcached, memcached itself, but when I
'cacheEngine' =>
    array (
      'cache_global_key' => something,
      'className' => 'erLhcoreClassLhMemcache'
),

I get blank white screen.

Also, about node.js (never tried it, but) will it help with optimizing speeds of message delivery? I get 1-5 seconds delays.

Thanks for reply!!

Offline

#2 2015-07-14 08:39:34

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: looking to optimize delays (memcached?)

Hi,

1. Just use node.js extension it will speedup significantly everything.
2. These cache settings will speedup just chatbox, it has very limited effect on live helper itself
3. Make sure you have enabled all the caches.

Goodluck smile

Offline

#3 2015-07-14 09:21:57

olegfusion
Member
Registered: 2015-06-29
Posts: 32

Re: looking to optimize delays (memcached?)

Hi and thank you for quick reply.

Decided to try nodejs extension.

I'm on this step:
Now ir order to make sure that everything works you can navigation to extension/nodejshelper/server and execute

    node server.js

Start some chat, you should see some messages in console.
***
there are small addon: need to install npm install socket.io and redis with -g flag, because them the path of modules will not be global and it'll not compatible with settings.

My trouble is that I don't see any messages in console after starting chat. Can't understand well, how to debug?
thank you

update.
I didn't change settings.js and nodejshelper_config.tpl.php (just remove default from the names). settings.debug.output = true
default port is 31129 is not used by other application.
settings.socketiopath = '/usr/local/lib/node_modules/socket.io'; // exists in folder

update2.
the application to launch is
nodejs server.js

LHC Server listening on localhost:31129
Debug enabled - true

no other messages are seen

Last edited by olegfusion (2015-07-14 09:33:54)

Offline

#4 2015-07-15 09:27:59

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: looking to optimize delays (memcached?)

Hi,

sorry but you will have to debug. Disable cache, activate extension etc...

Offline

#5 2015-07-15 09:29:09

olegfusion
Member
Registered: 2015-06-29
Posts: 32

Re: looking to optimize delays (memcached?)

I just don't get any messages, either the server is started successfully. I simply don't know how nodejs should work  glasses  ops

Offline

#6 2016-01-29 15:40:58

dmitry_stas
Member
Registered: 2016-01-29
Posts: 3

Re: looking to optimize delays (memcached?)

olegfusion wrote:

Hi and thank you for quick reply.
My trouble is that I don't see any messages in console after starting chat. Can't understand well, how to debug?

I have the same problem. olegfusion, did you solve the problem?

Offline

Board footer