We are having an issue over the last month where the web access will grind to a halt every week or so. When it happens, CPU and Memory usage spike with the /opt/otrs/bin/c processes each taking up 5% or so of the CPU and remote access to the server becomes very slow.
The fix for this is to restart the HTTPD service on the CentOS server. Prior to this the server has been stable for 3+ months without issue.
Once HTTPD is restarted, everything is fine for another week.
I updated to the latest OTRS/Kix 3.x release around a month ago so I dont know if its due to that.
See below for the error generated in the httpd error log. I have thousands of these in the logs when the issue occurs.
Code: Select all
[Tue Mar 10 10:07:21 2015] -e: DBD::mysql::st execute failed: MySQL server has gone away at /opt/otrs/KIX4OTRS/Kernel/System/DB.pm line 650.
[Tue Mar 10 10:07:21 2015] -e: Version string '-1, set by base.pm' contains invalid data; ignoring: '-1, set by base.pm' at /opt/otrs//Kernel/System/Log.pm line 203.
ERROR: OTRS-CGI-01 Perl: 5.10.1 OS: linux Time: Tue Mar 10 10:07:21 2015
Message: MySQL server has gone away, SQL: 'SELECT id, value_text, value_date, value_int, field_id
FROM dynamic_field_value
WHERE object_id = ?
ORDER BY id'
RemoteAddress: 10.36.165.10
RequestURI: /otrs/index.pl?Action=AgentTicketEscalationView
Traceback (29813):
Module: Kernel::System::DynamicFieldValue::ValueGet (OTRS 3.3.11) Line: 275
Module: Kernel::System::DynamicField::Driver::BaseSelect::ValueGet (OTRS 3.3.11) Line: 38
Module: Kernel::System::DynamicField::Backend::ValueGet (OTRS 3.3.11) Line: 850
Module: Kernel::System::Ticket::TicketGet (OTRS 3.3.11) Line: 6005
Module: Kernel::System::Ticket::TicketAcl (OTRS 3.3.11) Line: 3151
Module: Kernel::Output::HTML::TicketOverviewSmall::Run (OTRS 3.3.11) Line: 536
Module: Kernel::Output::HTML::LayoutTicket::TicketListShow (OTRS 3.3.11) Line: 2184
Module: Kernel::Modules::AgentTicketEscalationView::Run (OTRS 3.3.11) Line: 405
Module: Kernel::System::Web::InterfaceAgent::Run (OTRS 3.3.11) Line: 910
Module: ModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_index_2epl::handler (unknown version) Line: 56
Module: (eval) (v1.99) Line: 204
Module: ModPerl::RegistryCooker::run (v1.99) Line: 204
Module: ModPerl::RegistryCooker::default_handler (v1.99) Line: 170
Module: ModPerl::Registry::handler (v1.99) Line: 31
Code: Select all
[Tue Mar 10 10:08:01 2015] -e: DBD::mysql::st execute failed: MySQL server has gone away at /opt/otrs/KIX4OTRS/Kernel/System/DB.pm line 650.
ERROR: OTRS-CGI-01 Perl: 5.10.1 OS: linux Time: Tue Mar 10 10:08:01 2015
Message: MySQL server has gone away, SQL: 'SELECT id, name, calendar_name, first_response_time, first_response_notify, update_time, update_notify, solution_time, solution_notify, valid_id, comments, create_time, create_by, change_time, change_by , type_id, min_time_bet_incidents FROM sla WHERE id = ? LIMIT 1'
RemoteAddress: 10.36.150.7
RequestURI: /otrs/index.pl?Action=AgentTicketEscalationView;SortBy=EscalationTime;OrderBy=Up;View=;Filter=NextWeek
Traceback (29716):
Module: Kernel::System::SLA::SLAGet (OTRS 3.3.11) Line: 272
Module: Kernel::System::Ticket::TicketEscalationPreferences (OTRS 3.3.11) Line: 2353
Module: Kernel::System::Ticket::TicketEscalationDateCalculation (OTRS 3.3.11) Line: 2436
Module: Kernel::System::Ticket::TicketGet (OTRS 3.3.11) Line: 6073
Module: Kernel::Output::HTML::TicketOverviewSmall::Run (OTRS 3.3.11) Line: 487
Module: Kernel::Output::HTML::LayoutTicket::TicketListShow (OTRS 3.3.11) Line: 2184
Module: Kernel::Modules::AgentTicketEscalationView::Run (OTRS 3.3.11) Line: 405
Module: Kernel::System::Web::InterfaceAgent::Run (OTRS 3.3.11) Line: 910
Module: ModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_index_2epl::handler (unknown version) Line: 56
Module: (eval) (v1.99) Line: 204
Module: ModPerl::RegistryCooker::run (v1.99) Line: 204
Module: ModPerl::RegistryCooker::default_handler (v1.99) Line: 170
Module: ModPerl::Registry::handler (v1.99) Line: 31
[Tue Mar 10 10:08:01 2015] -e: DBD::mysql::st fetchrow_array failed: fetch() without execute() at /opt/otrs/KIX4OTRS/Kernel/System/DB.pm line 720.
ERROR: OTRS-CGI-01 Perl: 5.10.1 OS: linux Time: Tue Mar 10 10:08:01 2015
Message: No such SLAID (3)!
RemoteAddress: 10.36.150.7
RequestURI: /otrs/index.pl?Action=AgentTicketEscalationView;SortBy=EscalationTime;OrderBy=Up;View=;Filter=NextWeek
Traceback (29716):
Module: Kernel::System::SLA::SLAGet (OTRS 3.3.11) Line: 316
Module: Kernel::System::Ticket::TicketEscalationPreferences (OTRS 3.3.11) Line: 2353
Module: Kernel::System::Ticket::TicketEscalationDateCalculation (OTRS 3.3.11) Line: 2436
Module: Kernel::System::Ticket::TicketGet (OTRS 3.3.11) Line: 6073
Module: Kernel::Output::HTML::TicketOverviewSmall::Run (OTRS 3.3.11) Line: 487
Module: Kernel::Output::HTML::LayoutTicket::TicketListShow (OTRS 3.3.11) Line: 2184
Module: Kernel::Modules::AgentTicketEscalationView::Run (OTRS 3.3.11) Line: 405
Module: Kernel::System::Web::InterfaceAgent::Run (OTRS 3.3.11) Line: 910
Module: ModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_index_2epl::handler (unknown version) Line: 56
Module: (eval) (v1.99) Line: 204
Module: ModPerl::RegistryCooker::run (v1.99) Line: 204
Module: ModPerl::RegistryCooker::default_handler (v1.99) Line: 170
Module: ModPerl::Registry::handler (v1.99) Line: 31
ERROR: OTRS-CGI-01 Perl: 5.10.1 OS: linux Time: Tue Mar 10 10:08:01 2015
Message: MySQL server has gone away, SQL: '
SELECT article_key, article_value
FROM article_flag
WHERE article_id = ?
AND create_by = ? LIMIT 1500'
RemoteAddress: 10.36.165.10
RequestURI: /otrs/index.pl?Action=AgentTicketEscalationView
Traceback (29818):
Module: Kernel::System::Ticket::Article::ArticleFlagGet (OTRS 3.3.11) Line: 3191
Module: Kernel::Output::HTML::TicketOverviewSmall::Run (OTRS 3.3.11) Line: 646
Module: Kernel::Output::HTML::LayoutTicket::TicketListShow (OTRS 3.3.11) Line: 2184
Module: Kernel::Modules::AgentTicketEscalationView::Run (OTRS 3.3.11) Line: 405
Module: Kernel::System::Web::InterfaceAgent::Run (OTRS 3.3.11) Line: 910
Module: ModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_index_2epl::handler (unknown version) Line: 56
Module: (eval) (v1.99) Line: 204
Module: ModPerl::RegistryCooker::run (v1.99) Line: 204
Module: ModPerl::RegistryCooker::default_handler (v1.99) Line: 170
Module: ModPerl::Registry::handler (v1.99) Line: 31