otrs consuming 100% CPU

Moderator: crythias

Post Reply
lucasfranco
Znuny newbie
Posts: 23
Joined: 19 Mar 2013, 22:58
Znuny Version: 3.2.3

otrs consuming 100% CPU

Post by lucasfranco »

I need help.

I have the otrs installed on a machine debian 7.6.
The version of OTRS is 4.0.3

My problem is this, when I type the otrs link in web browser his the CPU goes to 100%.
Some pages I can access, exemplo painel the administration, view ticket and customer page,. More the system is very unstable.

I have other Web systems this machine and when access these systems does not happen this error.

This is the service that is consuming too much CPU:

www-data 8707 8102 6 11:22 ? 00:00:26 /opt/otrs/bin/cgi -k start

Viewing the top command:


top - 11:30:16 up 1 day, 2:20, 1 user, load average: 0,71, 0,24, 0,12
Tasks: 81 total, 2 running, 79 sleeping, 0 stopped, 0 zombie
%Cpu(s): 1,6 us, 0,3 sy, 0,0 ni, 98,1 id, 0,0 wa, 0,0 hi, 0,0 si, 0,0 st
KiB Mem: 2061252 total, 744300 used, 1316952 free, 59392 buffers
KiB Swap: 471036 total, 0 used, 471036 free, 166272 cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
8707 www-data 20 0 408m 121m 6984 R 98,5 6,0 1:12.66 /opt/otrs/bin/c

Would anyone have any idea what might be ??
wizbang52
Znuny newbie
Posts: 3
Joined: 26 Feb 2015, 17:47
Znuny Version: 3.3.5
Real Name: Sam DeForest
Company: Walpole Outdoors LLC

Re: otrs consuming 100% CPU

Post by wizbang52 »

I have OTRS 3.3.5 running on Ubuntu 14.04 LTS trusty.....Ive not had the issue you are speaking of....have you checked the OTRS logs in the admin panel? I installed my system from the tar file, and found that getting the permissions just right was key, as well as making sure all the proper perl modules were present. Then later found that because i used the tar file for install.....There were a couple *.pm files that needed to be made.

this might not be a solution...but more of a different "angle".

Regards
Sam
prca
Znuny newbie
Posts: 20
Joined: 05 Jun 2014, 18:56
Znuny Version: 4.0.1
Real Name: Paulo Ricardo Abrahão
Company: Senado Federal
Location: Brasil

Re: otrs consuming 100% CPU

Post by prca »

Hi,

Try disabling the daylight saving time in the Linux.
There is a bug that causes a loop in the function Workintime in time.pm when the system recalculates Tickets Escalations.

I do:
cp /usr/share/zoneinfo/America/Recife /etc/localtime

Regards,

Paulo Ricardo
OTRS 3.3.x on Linux with MySQL/Oracle database.
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: otrs consuming 100% CPU

Post by reneeb »

prca wrote: There is a bug that causes a loop in the function Workintime in time.pm when the system recalculates Tickets Escalations.
Is it a reported bug?
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
prca
Znuny newbie
Posts: 20
Joined: 05 Jun 2014, 18:56
Znuny Version: 4.0.1
Real Name: Paulo Ricardo Abrahão
Company: Senado Federal
Location: Brasil

Re: otrs consuming 100% CPU

Post by prca »

Maybe . What should I do to report ?

I found the loop in "sub WorkingTime" in file /opt/otrs/Custom/Kernel/System/Time.pm (Addon EscalationPlus) and in /opt/otrs/Kernel/System/Time.pm (normal instalation). OTRS Versions: 3.3.7, 3.3.10 and 4.0.1.
The problem only occurs if your linux is with daylight saving enabled.

Regards,

Paulo Ricardo
OTRS 3.3.x on Linux with MySQL/Oracle database.
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: otrs consuming 100% CPU

Post by reneeb »

Bugs should be reported at http://bugs.otrs.org.
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Post Reply