cancel
Showing results for 
Search instead for 
Did you mean: 

Sender JDBC blocks the follow succesive polls with a big message size.

iaki_vila
Active Contributor
0 Kudos

Hi friends,


We have noticed that when the sender jdbc select a huge register size,the channel is blocked and this doesn't do a new poll, even if we create a new channel to have the two processes in parallel, the second one is waiting as well. Only when the Adapter has sent the message to the Integration Engine, in the audit log the step "Trying to put the message into the send queue." is finished the adapter does the new poll. This step is the bottleneck, then i don't think the problem is in the SELECT/UPDATE statements.


We have notice the receiver JDBC has parameters to deal with the parallelism but we haven't found anyone to the Sender JDBC.

Transaction Isolation level is setting to Serializable also we try with read_commited.


We have tried yet:


1. Defining an Operating System Command->Timeout: the SAP.HELP documentation points that when the timeout is reached the active program will run in batch mode but we have not notice any improvement.

2. Disconnect from Database After Processing Each Message. Even with this check marked, the adapter continues blocking in the large query.


The system is a PI 7.0 SP12.


I have found this note 1084161 - Performance decrease after applying XI 3.0 SP20 7.0 SPS12 but im not sure that this note could improve the performance, anyone has tried it?


I really appreciate any help you can provide.


Regards.

Accepted Solutions (1)

Accepted Solutions (1)

iaki_vila
Active Contributor
0 Kudos

Hi all,

With a little investigation SAP PI 7.0 writes sequentially the messages from jdbc adapter to integration engine,  it doesn't have parallelism in contrast of file adapter for example.

Increasing one java node (although only one is active at time with this channel but in this way i avoid the channel stopping) and increasing the physical memory as well, the problem has been solved.

Thank you all for your valuable suggestions.

Regards.

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Inaki,

As per me, the connection pooling is either not set up or not enabled at the database side to which you are connecting to.

Also, if the connection pooling is enabled, then in the JDBC sender Connection URL, depending on the type of database you are connecting, you need to either specify the name of the pooled DataSource or for Oracle the POOLED key word is to be specified as connect type.

Regards,

Alka.

Former Member
0 Kudos

Hi Inaki

Have u checked the option 'Terminate program after timeout' in sender JDBC adapter?

I don't think we have further more options in sender JDBC adapter to solve your probelm.

In the worst case , you may have to optimize your select query ( may be selecting less number of rows and increasing the number of poll by reduicng the poll interval.

Thanks,

Indrajit

iaki_vila
Active Contributor
0 Kudos

HI Indrajit,

Thanks for your help, but the SELECT/UPDATE statements are really fast, accessing by index. The issue is when the Adapter Engine try to copy the message to the queue in the Integration Engine, the step "Trying to put the message into the send queue".  However, in the production environment this step is quicker (3 times more or less), i don't know exactly why because the systems dimension are similar. The problem persists in PRO but is enough quick that the customer doesn't realized this time.

I haven't tried the option that you mentioned because not timeout is really throwed, and to finish the program i think the thread with the poll doesn't seem a good choice, the time with huge files (bt 50MB and 90 MB) in Quality system is about 2 or 4 minutes.

Regards.

naveen_chichili
Active Contributor
0 Kudos

Hi Inaki,

There might be chance of locking the JDBC adapter due to huge records.

You might need to unlock the adapter and then try again.

Thanks and Regards,

Naveen    

iaki_vila
Active Contributor
0 Kudos

Hi Naveen,

Not locks in the JDBC adapter, at least in the Visual Administrator.

Thanks you.

Regards.

naveen_chichili
Active Contributor
0 Kudos

Hi Inaki,

Did you try with "tasktimeout" parameter in advanced tab. it worked for me once.

Thanks and Regards,

Naveen

iaki_vila
Active Contributor
0 Kudos

Thanks Naveen,

I've already used that parameter to avoid the JDBC adapter lock and the issue with polls without retrieving data, but that parameter doesn't influence with the Send Queue lock. I'm wondering this behavior is the normal functionality. I haven't found any documentation to increase the queues in the adapter engine, only the threads and the threads never are all used at the same time.

Regards.