[SOGo] SOGo 2.0 eats up to 100% mem and cpu

2013-08-08 Thread Daniel Müller
Dear All,



concerning: Version 2.0.0 (root@shiva 201209280016).

I have a small installation of SOGo 2.0 running with about 5 users tu share there calendars with Outlook and Funambol.

All the time it was running top but suddenly sogod eats up my cpu and memory until I do a restart.

My Sogo-Config: /home/sogo/G*/D*/.GNUstepDefaults:




?xml version=1.0 encoding=UTF-8?
!DOCTYPE plist PUBLIC -//GNUstep//DTD plist 0.9//EN http://www.gnustep.org/plist-0_9.xml
plist version=0.9
dict
 keyNSGlobalDomain/key
 dict
 /dict
 keysogod/key
 dict
 keyOCSFolderInfoURL/key
 stringpostgresql://sogo:sogo@localhost:5432/sogo/sogo_folder_info/string
 keyOCSSessionsFolderURL/key
 stringpostgresql://sogo:sogo@localhost:5432/sogo/sogo_sessions_folder/string
 keySOGoACLsSendEMailNotification/key
 stringYES/string
 keySOGoAppointmentSendEMailNotification/key
 stringYES/string
 keySOGoAuthenticationMethod/key
 stringLDAP/string
 keySOGoBusyOffHours/key
 stringYES/string
 keySOGoDraftsFolderName/key
 stringINBOX.Drafts/string
 keySOGoEnablePublicAccess/key
 stringYES/string
 keySOGoCalendarDefaultRoles/key
array
stringPublicDAndTViewer/string
stringConfidentialDAndTViewer/string
stringPrivateDAndTViewer/string
/array

 keySOGoFirtsDayOfWeek/key
 string1/string
 keySOGoFoldersSendEMailNotification/key
 stringYES/string
 keySOGoGoMailMessageCheck/key
 stringevery_5_minutes/string
 keySOGoIMAPServer/key
 string192.168.135.250:143/string
 keySOGoLanguage/key
 stringGerman/string
 keySOGoMailAuxiliaryUserAccountsEnabled/key
 stringYES/string
 keySOGoMailDomain/key
 stringcomm2.local/string
 keySOGoMailUseOutlookStyleReplies/key
 stringYES/string
 keySOGoMailingMechanism/key
 stringsmtp/string
 keySOGoNotifyOnExternalModifications/key
 stringYES/string
 keySOGoNotifyOnPersonalModifications/key
 stringYES/string
 keySOGoPageTitle/key
 stringTopenklinik Webmailer-Interface/string

keySOGoPasswordChangeEnabled/key
 stringYES/string
 keySOGoProfileURL/key
 stringpostgresql://sogo:sogo@localhost:5432/sogo/sogo_user_profile/string
 keySOGoSMTPServer/key
 string192.168.135.250/string
 keySOGoSentFolderName/key
 stringINBOX.Sent/string
 keySOGoSharedFolderName/key
 stringshared/string
 keySOGoSpecialFoldersInRoot/key
 stringYES/string
 keySOGoSuperUsernames/key
 array
 stringmueller/string
 stringmarstaller/string
 /array
 keySOGoTimeZone/key
 stringEurope/Berlin/string
 keySOGoTrashFolderName/key
 stringINBOX.Trash/string
 keySOGoUserSources/key
 array
 dict
 keyCNFieldName/key
 stringcn/string
 keyIDFieldName/key
 stringuid/string
 keyUIDFieldName/key
 stringuid/string
 keybaseDN/key
 stringou=users,dc=tuepdc,dc=local/string
 keybindDN/key
 stringuid=sogo,ou=users,dc=tuepdc,dc=local/string
 keybindPassword/key
 stringqwerty/string
 keycanAuthenticate/key
 stringYES/string
 keydisplayName/key
 stringBenutzer Adressen/string
 keyhostname/key
 string192.168.135.236/string
 keyid/key
 stringpublic/string
 keyisAddressBook/key
 stringYES/string
 keyport/key
 string389/string
 keyuserPasswordAlgorithm/key
 stringmd5/string
 /dict
 dict
 keyCNFieldName/key
 stringcn/string
 keyIDFieldName/key
 stringcn/string
 keyUIDFieldName/key
 stringcn/string

keyUIDFieldName/key
 stringcn/string
 keybaseDN/key
 stringou=groups,dc=tuepdc,dc=local/string
 keybindDN/key
 stringuid=sogo,ou=users,dc=tuepdc,dc=local/string
 keybindPassword/key
 stringqwerty/string
 keycanAuthenticate/key
 stringYES/string
 keydisplayName/key
 stringGruppen Adressen/string
 keyhostname/key
 string192.168.135.236/string
 keyid/key
 stringpublic_groups/string
 keyisAddressBook/key
 stringYES/string
 keyport/key
 string389/string
 /dict
 /array
 keySxVMemLimit/key
 string1024/string
 keyWOWorkersCount/key
 string2/string
 /dict
/dict
/plist

/etc/sysconfig/sogo:

PREFORK=2




[root@tplk-openchange bin]# ps ax  grep sogod
18223 ? S 13:35 /usr/sbin/sogod -WOWorkersCount 2 -WOPidFile /var/run/sogo/sogo.pid -WOLogFile /var/log/sogo/sogo.log
20411 ? Ss 0:11 /usr/sbin/sogod -WOWorkersCount 2 -WOPidFile /var/run/sogo/sogo.pid -WOLogFile /var/log/sogo/sogo.log
20618 ? Ss 0:00 /usr/sbin/sogod -WOWorkersCount 2 -WOPidFile /var/run/sogo/sogo.pid -WOLogFile /var/log/sogo/sogo.log
20695 pts/0 S+ 0:00 grep sogod



In my sogo.log there are infos like this..hnaging for 1 until ... minutes

Aug 08 10:16:48 sogod [18223]: [WARN] 0x0x14c3c28[WOWatchDogChild] pid 20618 has been hanging in the same request for 1 minutes

top shows:

20618 sogo 20 0 9169m 6.9g 2804 R 66.0 92.4 2:10.48 sogod
 38 root 20 0 0 0 0 D 25.4 0.0 16:19.27 kswapd0


And users can not login the web gui anymore:

The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /SOGo.
How can I fix this issue?



Greetings

Daniel















Re: [SOGo] SOGo 2.0 eats up to 100% mem and cpu

2013-08-08 Thread MJ Ray
On 08/08/13 09:24, Daniel Müller wrote:
   Dear All,
 concerning: Version 2.0.0 (root@shiva 201209280016).
 I have a small installation of SOGo 2.0 running with about 5 users tu share 
 there calendars with Outlook and Funambol.
 All the time it was running top but suddenly sogod eats up my cpu and memory 
 until I do a restart.

I saw this happen on 2.0.5 and 2.0.6 when someone got their LDAP
password wrong.  It seems to have stopped after upgrading to 2.0.7

I filed it onto http://sogo.nu/bugs/view.php?id=2367

Also, please don't reply to unrelated messages because it messes up the
threading/categorisation of your message, which means it won't be read
by as many people.  Use the Compose button for new subjects.

Thanks,
-- 
MJ Ray (slef), member of www.software.coop, a for-more-than-profit co-op
http://koha-community.org supporter, web and library systems developer.
In My Opinion Only: see http://mjr.towers.org.uk/email.html
Available for hire (including development) at http://www.software.coop/
-- 
users@sogo.nu
https://inverse.ca/sogo/lists


Re: [SOGo] SOGo 2.0 eats up to 100% mem and cpu

2013-08-08 Thread Jean Raby

On 13-08-08 4:24 AM, Daniel Müller wrote:

concerning: Version 2.0.0 (root@shiva 201209280016).

Please try to reproduce that problem with 2.0.7.

Also, to debug this kind of issues, it would be really helpful to enable 
SOGoDebugRequests and post your logfile.  The next step would be to isolate the 
query that makes sogo go crazy by analyzing the logs. Then, take a pcap of the 
traffic on port 2 and look for the query.


With that we should be able to replay the query and find the issue quickly.

Like MJ said, don't reply to a thread to start a new one,  simply send a new 
mail to users@.

--
users@sogo.nu
https://inverse.ca/sogo/lists