Author Topic: SOGo hanging  (Read 3630 times)

Dan Blazek

  • Zen Apprentice
  • *
  • Posts: 13
  • Karma: +1/-0
    • View Profile
SOGo hanging
« on: April 11, 2014, 07:59:35 pm »
Hi all,
i have cca 150 openchange users. When more users are connected with sogo, it hangs (bar is running, and after that it will show proxy error). Roundcube normally working, so its not about imap. Tried to increase mysql memory, connections, cash etc. We will see.
Its not about machine, its strong enough.

Any idea, why its hanging?

Dan

update: also increased max openfiles,
« Last Edit: April 11, 2014, 08:08:18 pm by Dan Blazek »

Dan Blazek

  • Zen Apprentice
  • *
  • Posts: 13
  • Karma: +1/-0
    • View Profile
Re: SOGo hanging
« Reply #1 on: April 13, 2014, 01:52:27 pm »
I found it. SOGo creators/implementators made very basic and (sorry for that) stupid mistake.
When anybody is uploading attachment to email, all users on SOGo are LOCKED!!! So uploading f.e. 6MB attachments on slow upload causes LOCKING all logged users on SOGo.

Sorry, but this error MUST be repaired, because its unusable in this state.

Roundcube is working fine with any attachments work, so its just inside SOGo.

Regards D.
« Last Edit: April 13, 2014, 02:19:54 pm by Dan Blazek »

jkerihuel

  • Zentyal Staff
  • Zen Warrior
  • *****
  • Posts: 152
  • Karma: +18/-3
    • View Profile
Re: SOGo hanging
« Reply #2 on: April 14, 2014, 12:07:10 pm »
Hi Dan,

Thanks for pushing this up.

SOGo is by default spawning a new child every time it receives a request. However the number of children is by default set to 1 unless the parameter is tuned - which Zentyal currently does not handle. In your case, you want to play with the WOWorkersCount parameter and increase it to match the average number of current users at a given time on the system. For instance:

  • Edit /usr/share/zentyal/stubs/openchange/sogo.conf.mas
  • Add the workers count parameter: WOWorkersCount = 40
  • Restart services

Cheers,
Julien.
« Last Edit: April 14, 2014, 03:05:33 pm by jkerihuel »
Twitter: http://twitter.com/jkerihuel
Key fingerprint = 08BA 50B1 9EFF 8E1E FB4A  24FA B2A9 D5F3 9624 1CC2

Dan Blazek

  • Zen Apprentice
  • *
  • Posts: 13
  • Karma: +1/-0
    • View Profile
Re: SOGo hanging
« Reply #3 on: April 29, 2014, 11:10:01 pm »
Hi Julien,
it should be issue with this parameter, but  I changed it, it changes in /etc/sogo too. But same problem, only one instance. Restarted services, then after machine too. Still one instance...

Updated /etc/default/sogo parameter PREFORK=1 to 15 and after restarting sogo it returned to 1. I am crazy about it.

WOWorkerCount added, prefork increased in all files i found. But... in default its still only 1

Any idea, what else?

Dan

Dan Blazek

  • Zen Apprentice
  • *
  • Posts: 13
  • Karma: +1/-0
    • View Profile
Re: SOGo hanging
« Reply #4 on: May 01, 2014, 08:25:16 pm »
Julien,
 I found it,
master settings for PREFORK is in /usr/share/zentyal/stubs/openchange/sogo.mas
original: PREFORK=<% $prefork %>
updated: PREFORK=10
its default for lower settings. Now its working and WoWorkersCount is 10 in htop.
WoWorkersCount in sogo.conf.mas has no affect to anything.

Many thanx for pushing to right way.

Dan