OTRS extremely slow

Moderator: crythias

Locked
Eraserhead
Znuny newbie
Posts: 33
Joined: 05 Apr 2011, 05:28
Znuny Version: 3.0.5

OTRS extremely slow

Post by Eraserhead »

Hi,

OTRS is very slow for me. I'm the only user on the system right now. It is installed on a VPS with 512MB virtual RAM and 1Ghz virtual CPU.

I have enabled the performance log, i see a lot of extreme response times which correspond with my experience. Only i have no idea how to improve them. Any help will be appreciated! :)
otrsperformance.JPG
8)
You do not have the required permissions to view the files attached to this post.
Wolfgangf
Znuny ninja
Posts: 1029
Joined: 13 Apr 2009, 12:26
Znuny Version: 6.0.13
Real Name: Wolfgang Fürtbauer
Company: PBS Logitek GmbH
Location: Pinsdorf

Re: OTRS extremely slow

Post by Wolfgangf »

512MB RAM look rather small for database, webserver, ...; I suppose this box is heavily swapping
You can also install the support module and run it to see the performance hints
Produktiv:
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: OTRS extremely slow

Post by jojo »

yeah, 512 MB is usable for a 1 person demo...

You really need to increase memory (at least 2G on a small system) and also should have a fast disk
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Eraserhead
Znuny newbie
Posts: 33
Joined: 05 Apr 2011, 05:28
Znuny Version: 3.0.5

Re: OTRS extremely slow

Post by Eraserhead »

Thanks for the response guise :)

Even with 1 user i need 2GB? OK

I also tried the Support module and it gave me these warnings:
Check "max_allowed_packet" setting.
"max_allowed_packet" should be higher then 7 MB (it's 1 MB).

Check "query_cache_size" setting.
The setting "query_cache_size" should be used, you will get improvements up to 30 % of speed.

Check log for error log entries.
You have more error log entries: Module GD/Graph.pm not found!, Module GD.pm not found!

Check if the system uses Apache::DBI.
Apache::DBI should be used to get a better performance (pre-establish database connections).
Do you think if i fix these issues that i will see a significant performance increase?
Wolfgangf
Znuny ninja
Posts: 1029
Joined: 13 Apr 2009, 12:26
Znuny Version: 6.0.13
Real Name: Wolfgang Fürtbauer
Company: PBS Logitek GmbH
Location: Pinsdorf

Re: OTRS extremely slow

Post by Wolfgangf »

absolutelly!
Produktiv:
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
Eraserhead
Znuny newbie
Posts: 33
Joined: 05 Apr 2011, 05:28
Znuny Version: 3.0.5

Re: OTRS extremely slow

Post by Eraserhead »

What should value should i give query_cache_size ?
I probably should also change query cache limit?
Wolfgangf
Znuny ninja
Posts: 1029
Joined: 13 Apr 2009, 12:26
Znuny Version: 6.0.13
Real Name: Wolfgang Fürtbauer
Company: PBS Logitek GmbH
Location: Pinsdorf

Re: OTRS extremely slow

Post by Wolfgangf »

i have something like

Code: Select all

set-variable = query_cache_size=1000000000
in my /etc/my.cnf
Produktiv:
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
Eraserhead
Znuny newbie
Posts: 33
Joined: 05 Apr 2011, 05:28
Znuny Version: 3.0.5

Re: OTRS extremely slow

Post by Eraserhead »

Thanks. I resolved all those messages except for the DBI one. I found this FAQ article: http://faq.otrs.org/otrs/public.pl?Acti ... ItemID=331

So i went inside apache2-perl-startup.pl and it turned out that these lines already were uncommented:
use Apache::DBI ();
Apache::DBI->connect_on_init('DBI:mysql:otrs', 'otrs', 'some-pass');
use DBI ();
The only thing i noticed it still said 'some-pass' so i changed that to the value i found here in Kernel/Config.pm:
# (The database user.)
$Self->{'DatabaseUser'} = 'otrs';
# DatabasePw
# (The password of database user. You also can use bin/otrs.CryptPassword.pl
# for crypted passwords.)
$Self->{'DatabasePw'} = '***';
# DatabaseDSN
# (The database DSN for MySQL ==> more: "man DBD::mysql")
$Self->{DatabaseDSN} = "DBI:mysql:database=$Self->{Database};host=$Self->{DatabaseHost};";
I rebooted the server but it still said:
Check if the system uses Apache::DBI.
Apache::DBI should be used to get a better performance (pre-establish database connections).
What did i do wrong?
Eraserhead
Znuny newbie
Posts: 33
Joined: 05 Apr 2011, 05:28
Znuny Version: 3.0.5

Re: OTRS extremely slow

Post by Eraserhead »

Bump ^
Wolfgangf
Znuny ninja
Posts: 1029
Joined: 13 Apr 2009, 12:26
Znuny Version: 6.0.13
Real Name: Wolfgang Fürtbauer
Company: PBS Logitek GmbH
Location: Pinsdorf

Re: OTRS extremely slow

Post by Wolfgangf »

did you also active this in the startup script?

Code: Select all

# enable this if you use mysql
use DBD::mysql ();
use Kernel::System::DB::mysql;
Produktiv:
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
Eraserhead
Znuny newbie
Posts: 33
Joined: 05 Apr 2011, 05:28
Znuny Version: 3.0.5

Re: OTRS extremely slow

Post by Eraserhead »

OK i just uncommented those lines but i'm still getting the same warning message with the Support test.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: OTRS extremely slow

Post by jojo »

did you restart apache afterwards?
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Eraserhead
Znuny newbie
Posts: 33
Joined: 05 Apr 2011, 05:28
Znuny Version: 3.0.5

Re: OTRS extremely slow

Post by Eraserhead »

Yes, but didn't work. But someone helped me out and it's all good now. Don't know what he changed to get DBI working but he said the setting query_cache_size=1000000000 was too high. Thanks for your support! :)
ferrosti
Znuny superhero
Posts: 723
Joined: 10 Oct 2007, 14:30
Znuny Version: 3.0
Location: Hamburg, Germany

Re: OTRS extremely slow

Post by ferrosti »

1GB for a query_cache on a 512MB machine is usally no good idea ;)

max_allowed_packet should at least be the maximum size of a single email. In case you allow 16MB for a single mail, don´t go below this value, rather add 50%.
openSuSE on ESX
IT-Helpdesk: OTRS 3.0
Customer Service: OTRS 3.0 (upgraded from 2.3)
Customer Service (subsidiary): OTRS 3.0
+additional test and development systems
Locked