tips on the performance !!!

Moderator: crythias

Locked
madhoos
Znuny newbie
Posts: 23
Joined: 31 Oct 2012, 09:02
Znuny Version: otrs3.1.11
Real Name: Madhu
Company: personal

tips on the performance !!!

Post by madhoos »

Hi,

Any suggestions on the performance issue.

please find the Server hardware configuration and the software details attached.

Intel Pentium 2.8 Ghz - 2 proc
RAM : - 2 Gb
HDD : - 2*300 Gb
Os : - windows 2003 SP1
Only OTRS running in this machine.

SQL Bench MARK Result (this is varying based on the CPU utilization, by the time i am taking this bench mark the CUP utilization is more than 80%). When more than 6-8 agents are working the cpu is taking more.

Please suggest any tips to increase the performance.


SQL benchmark
Multiplier:

Please select a multiplier and press start button.
Result: SQL
Key Value Time Comment
Insert Time: 10000 9 s :-( Should not take more than 5's on an average system.
Update Time: 10000 24 s :-( Should not take more than 9's on an average system.
Select Time: 10000 12 s :-( Should not take more than 6's on an average system.
Delete Time: 10000 16 s :-( Should not take more than 5's on an average system.
Multiplier: * 1 s


Configuration file : -
Database
• OK Check "System Time" vs "Current Timestamp".
There is no difference between application server time and database server time.
• OK Size of the current database.
Database size is 0.210 GB.
• OK Check "max_allowed_packet" setting.
Your configuration setting is 20 MB.
• OK Check "query_cache_size" setting.
32 MB
• OK Check existing framework tables.
81 tables checked.
• OK Check if the client uses utf8 for the connection.
Your client connection is utf8.
• OK Check if the database uses utf8 as charset.
Your database character setting is utf8.
• OK Check database utf8 support.
Your database version supports utf8.
• OK Check the utf8 table charset collation.
Your charset collation is set to utf8_general_ci.
• OK Check database version.
MySQL 5.1.51-community-log
OS
• OK Shows the used distribution.
Windows Server 2003 R2 Standard Edition Service Pack 1 is used.
• OK Check Perl Version.
Perl 5.12.3 (MSWin32) is used.
• OK Check Perl Modules installed.
All Perl modules needed are currently installed.

OTRS
• OK Check if Ticket::Frontend::ResponseFormat contains no $Data{""}.
No $Data{""} found.
• OK Check default SOAP credentials.
You have not enabled SOAP or have set your own password.
• OK Check if root@localhost account has the default password.
There is no active root@localhost with default password.
• Failed Check if the configured FQDN is valid.
Invalid FQDN '192.168.2.90'.
• OK Check if file system is writable.
The file system is writable.
• OK Search for invalid user with locked tickets.
There are no invalid users with locked tickets.
• OK Check log for error log entries.
• OK Check open tickets in your system.
You have 97 open tickets in your system.
• OK Check deployment of all packages.
All packages are correctly installed.
• OK Check if the configured SystemID contains only digits.
Your SystemID setting is 10.
• OK Check Ticket::SearchIndexModule setting.
You are using "Kernel::System::Ticket::ArticleSearchIndex::RuntimeDB", that's fine for 259 articles in your system.
• OK Check Ticket::IndexModule setting.
You are using "Kernel::System::Ticket::IndexAccelerator::RuntimeDB", that's fine for 111 tickets in your system.
• OK Check orphaned StaticDB records.
No orphaned records found.
• OK Display a general system overview
General information about your system.
Item Value
Agents 56
Articles 259
Articles per ticket (avg) 2.33
Attachment size (avg) 14.00 KB
Attachments per ticket (avg) 0.49
Customers with at least one ticket 32
Groups 17
Months between first and last ticket 1.00
Operating system MSWin32
Product OTRS 3.1.11
Roles 5
Tickets 111
Tickets per month (avg) 111.00
Webserver
• OK Check if the system uses Apache::DBI.
Apache::DBI
• OK Check if the system uses Apache::Reload/Apache2::Reload.
Apache2::Reload
• OK Display web server version.
You are running Apache/2.2.22 (Win32) mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.12.3.
• OK Check for CGI Accelerator.
mod_perl/2.0.4


Regards,
Madhu
Evanscheijen
Znuny newbie
Posts: 10
Joined: 18 Dec 2012, 15:42
Znuny Version: 3.1.6
Real Name: Erik
Company: st Antonius

Re: tips on the performance !!!

Post by Evanscheijen »

Just wonderng, if you check your taskmanager, which process is causing the high utilization. I would first sort out the server running OTRS before I would look into the application itself.
E.g. anti-virus programs are notorious performance spoilers. You might want to exclude the website data and the database in your anti-virus program (unless you have the website accessible to the big bad internet).
80% processor utilization on an OTRS system seems rather high to me.

regards,

Erik
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: tips on the performance !!!

Post by jojo »

I would switch to Linux. Windows is a lot slower running apache and PERL on it
"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
madhoos
Znuny newbie
Posts: 23
Joined: 31 Oct 2012, 09:02
Znuny Version: otrs3.1.11
Real Name: Madhu
Company: personal

Re: tips on the performance !!!

Post by madhoos »

Hi Erik,

Apache and perl are utilizing 90% cpu.

Rest of all normal.

Regards,
Madhu
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: tips on the performance !!!

Post by jojo »

you should increase memory, also you should have a static assignment of CPU if this is a virtual Box.

If you have more than 5 conncurrent agents I strongly recommend Linux as OS
"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
madhoos
Znuny newbie
Posts: 23
Joined: 31 Oct 2012, 09:02
Znuny Version: otrs3.1.11
Real Name: Madhu
Company: personal

Re: tips on the performance !!!

Post by madhoos »

Hi Jojo,

Once i installed new setup in Linux (centOS 5.5). What all backup files required from windows server to new server other than MySql Data Backup.

Pls advise.

Regards,
Madhu
Evanscheijen
Znuny newbie
Posts: 10
Joined: 18 Dec 2012, 15:42
Znuny Version: 3.1.6
Real Name: Erik
Company: st Antonius

Re: tips on the performance !!!

Post by Evanscheijen »

Adding memory will not really improve much I am afraid, it's a 32 bit system and 3 Gb will max it out (in theory win 32 system can adress around 3,5 Gb but that's theory....
So in short: more then 5 concurrent users? move to either a linux system or go for 64 bit win 2K3 and add memory.
Of course there are several ways to fine tune the current system, but the improvement in performance will be trivial.
When you move to linux you need your database and any changes made on the configuration, e.g. custom fields etc.

regards,

Erik
madhoos
Znuny newbie
Posts: 23
Joined: 31 Oct 2012, 09:02
Znuny Version: otrs3.1.11
Real Name: Madhu
Company: personal

Re: tips on the performance !!!

Post by madhoos »

Hi Evanscheijen / Jojo,

I took full backup of mysql database (.sql file). the same was restored on different machine where OTRS Was installed.

I am not able to see the Queue lists in the backup restored machine.

Please guide.


Regards,
Madhu
madhoos
Znuny newbie
Posts: 23
Joined: 31 Oct 2012, 09:02
Znuny Version: otrs3.1.11
Real Name: Madhu
Company: personal

Re: tips on the performance !!!

Post by madhoos »

Hi,

Frequently i am getting the below entries in the Apache log.

Please guide me how to fix this error / notice.

Regards,
Madhu

[Wed Jan 02 17:19:22 2013] [error] APR does not understand this error code at d:/PROGRA~1/OTRS/OTRS//Kernel/Output/HTML/Layout.pm line 1643.\n
[Wed Jan 02 17:19:34 2013] [error] [client 192.168.2.116] (20024)The given path is misformatted or contained invalid characters: Cannot map GET /otrs/%20 HTTP/1.1 to file, referer: http://192.168.2.90/otrs/index.pl?Actio ... 5d76018d7c
[Wed Jan 02 17:19:35 2013] [error] APR does not understand this error code at d:/PROGRA~1/OTRS/OTRS//Kernel/Output/HTML/Layout.pm line 1643.\n
[Wed Jan 02 17:19:40 2013] [error] APR does not understand this error code at d:/PROGRA~1/OTRS/OTRS//Kernel/Output/HTML/Layout.pm line 1643.\n
Scalars leaked: 1
Scalars leaked: 1
Scalars leaked: 1
Scalars leaked: 1
Scalars leaked: 1
Scalars leaked: 1
Scalars leaked: 1
[Wed Jan 02 17:23:17 2013] [error] APR does not understand this error code at d:/PROGRA~1/OTRS/OTRS//Kernel/Output/HTML/Layout.pm line 1643.\n
[Wed Jan 02 17:23:31 2013] [error] [client 192.168.2.116] (20024)The given path is misformatted or contained invalid characters: Cannot map GET /otrs/%20 HTTP/1.1 to file, referer: http://192.168.2.90/otrs/index.pl?Actio ... 5d76018d7c
[Wed Jan 02 17:23:45 2013] [error] APR does not understand this error code at d:/PROGRA~1/OTRS/OTRS//Kernel/Output/HTML/Layout.pm line 1643.\n
[Wed Jan 02 17:24:22 2013] [error] APR does not understand this error code at d:/PROGRA~1/OTRS/OTRS//Kernel/Output/HTML/Layout.pm line 1643.\n
[Wed Jan 02 17:24:22 2013] [error] APR does not understand this error code at d:/PROGRA~1/OTRS/OTRS//Kernel/Output/HTML/Layout.pm line 1643.\n
[Wed Jan 02 17:24:24 2013] [error] APR does not understand this error code at d:/PROGRA~1/OTRS/OTRS//Kernel/Output/HTML/Layout.pm line 1643.\n
[Wed Jan 02 17:24:41 2013] [error] APR does not understand this error code at d:/PROGRA~1/OTRS/OTRS//Kernel/Output/HTML/Layout.pm line 1643.\n
[Wed Jan 02 17:24:43 2013] [error] APR does not understand this error code at d:/PROGRA~1/OTRS/OTRS//Kernel/Output/HTML/Layout.pm line 1643.\n
Scalars leaked: 1
Scalars leaked: 1
Scalars leaked: 1
Scalars leaked: 1
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: tips on the performance !!!

Post by crythias »

madhoos wrote:[Wed Jan 02 17:19:34 2013] [error] [client 192.168.2.116] (20024)The given path is misformatted or contained invalid characters: Cannot map GET /otrs/%20 HTTP/1.1 to file, referer: http://192.168.2.90/otrs/index.pl?Actio ... 9;FileID=2
something is requesting a space after /otrs/ ... either it's a customization of yours or typed at the client.

http://192.168.2.90/otrs/index.pl?Actio ... 9;FileID=1
Or this article's files are unreachable ... but since it seems like it happens on multiple articles and files, there may be a problem with your attachment storage. It's a bit difficult to otherwise troubleshoot.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
madhoos
Znuny newbie
Posts: 23
Joined: 31 Oct 2012, 09:02
Znuny Version: otrs3.1.11
Real Name: Madhu
Company: personal

Re: tips on the performance !!!

Post by madhoos »

Hi,

1)
i have a problem after restoring the Mysql database to the new system.

The queues are not visible which were created by us where as the default queues are visible in manage queues.
where as the same queues created by us are visible in the response-queues manage option. what will be the problem

Note : - as i am unable to attach the screen shot.

2) What is the recommended hardware for OTRS where concurrently 25-30 users will work on the same.

As in current setup windows 2003 - 32bit, the performance is very bad. even though i have done the apache tunning part.

Request you to suggest the hardware requirement , i am planning to go with centos 5.5.

Pls advise.

Regards,
Madhu
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: tips on the performance !!!

Post by jojo »

did you deleted the caches?

For the setup of a new server you should have about 5GB of memory if the servr is just OTRS and no database. For the same server including database you should use 8 to 12GB of memory
"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
madhoos
Znuny newbie
Posts: 23
Joined: 31 Oct 2012, 09:02
Znuny Version: otrs3.1.11
Real Name: Madhu
Company: personal

Re: tips on the performance !!!

Post by madhoos »

Hi jojo,

i dint delete the caches. How to do that. please guide.

I have done few changes in the existing windows server where currently OTRS 3.1.11 is running under apache configuration (enabled the Mod_headers & Mod_dflate). but still no luck still httpd is taking maximum CPU when ever anybody accessing the Application.

As it will take some to move to the new harware. for time being i need to fine tune the application.

please help me in fine tuning the apache / otrs application.

Note : - apache + perl is consuming the maximum CPU

Regards,
Madhu
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: tips on the performance !!!

Post by jojo »

you can not tune to conceal not approbiate hardware. You'll need more power, thats all
"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
madhoos
Znuny newbie
Posts: 23
Joined: 31 Oct 2012, 09:02
Znuny Version: otrs3.1.11
Real Name: Madhu
Company: personal

Re: tips on the performance !!!

Post by madhoos »

what are files need to be cleared periodically (tmp / chache) .

I have so many files under tmp/CacheFileStorable. tmp/cache is totally clear.


Regards,
Madhu
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: tips on the performance !!!

Post by jojo »

if all cronjobs are run as planned uneeded cachefiles will be deleted daily
"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
Locked