OTRS Connectors most CPU demanding?

English! place to talk about development, programming and coding
Post Reply
eandrex
Znuny expert
Posts: 213
Joined: 04 Nov 2012, 23:58
Znuny Version: OTRS 4.x
Real Name: Esteban
Company: NORTON DE COLOMBIA

OTRS Connectors most CPU demanding?

Post by eandrex »

Hi,

i coded a desktop app which uses a lot of otrs connectors (http://doc.otrs.org/3.3/en/html/generic ... connectors TicketSearch mainly) and it works as expected, the main problem is that after a few hours, our CPU is almost 99% because of the ApplicationPool which hosts OTRS.(If i delete the webservice i created, otrs will work smooth)

So im wondering how the login process works in OTRS Connectors

im guessing that every time i send for example

Code: Select all

<TicketSearch>
<UserLogin>xx</UserLogin>
<Password>xx</Password>
..
..
</TicketSearch>
OTRS have to authenticate the current agent in order to perform the TicketSearch. right?

will improve our OTRS performance if i use

Code: Select all

<SessionCreate>
         <!--Optional:-->
         <UserLogin>?</UserLogin>
         <!--Optional:-->
         <CustomerUserLogin>?</CustomerUserLogin>
         <!--Optional:-->
         <Password>?</Password>
      </SessionCreate>
and use the Token it returns in the TicketSearch/TicketCreate/ action?

Code: Select all

 <TicketSearch>
 <SessionID>yyyyyyyyyyyyyyy</SessionID>
...
...
</TicketSearch>
in that way otrs doesnt have to authenticate the agent, only check for the session to exist (correct me if i am wrong). Which one will be less cpu consuming?
i have my bets for using the Session thing..
Also, how long that SessionID will be valid for?

Im running OTRS 3.3.3 on
Windows Server 2012
Active State perl 5.16.3.1603
Sql Server 2012
Internet Information Services.

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

Re: OTRS Connectors most CPU demanding?

Post by jojo »

your choosen windows based setup should only work for a max. of 10 conncurrent connections. The session works as described, you don't have to log in in every time
"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
eandrex
Znuny expert
Posts: 213
Joined: 04 Nov 2012, 23:58
Znuny Version: OTRS 4.x
Real Name: Esteban
Company: NORTON DE COLOMBIA

Re: OTRS Connectors most CPU demanding?

Post by eandrex »

Hi, thank you for your response.. but what u said about "10 concurrenct connections".. left me a bit worried :( :shock:

should i really switch to linux+apache+mysql in order to get a bettter perfomance while using my app?

Current one has 4 gb of ram, intel xeon E7 quad core running @ 2.7 ghz(the database is in an external server)

thank you for your advice..it will help to make a decision
Post Reply