on 07-24-2012 12:36 PM
Hello All,
I have a MII(12.1.9) transaction posting data to ERP through JCO function call. From time to time, we got this error :
Problem retrieving JCO.Function object: Concurrent call. Connection currently used in another thread.
Any idea how we can avoid this ? We are running in a clustered environment, and calls are coming from PLC with sometimes very short delays between 2 calls, I guess it's why we got this...
Thanks in advance
Regards
Olivier
Hi Michael,
I asked my basis colleague to check, he saw in MII, the pool size for the JCO connection is set to 1.
Should we increase this pool size ? What's the impact of this ?
Also, in MII JCO function, there is a flag "Pool connection", should I set it to true ? What's the impact of this flag ? Help says nothing about this one...
Thanks
Olivier
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, let me summarize your scenario to ensure I understand it fully...You have multiple MII transactions running in parallel to each other and making calls to the SAP ERP system. You have a single connection/credential alias combination setup to point to this system and the connection pool is set to a max of 1 in the connection alias.
I recomment you set this connection pool back to it's default of 10 in order to allow the connection objects in the JCO connection pool to be accessible by these parallel MII transactions. If a transaction has to wait too long for another transaction to release the "only" connection resource to ERP then you will see this error; which indicates that no objects are available because they are all in use.
Thanks,
Sam
Hi Olivier,
Can you ask a Basis person to see how many threads are configured for the MII installation (or perhaps even the NWCE installation). You may need more in the pool.
Also there is a lifetime limit for unreleased connections which may be affecting the availability of the next connection due to that time duration. I ran into a similar problem a long time ago with one of the early versions of 12.1. A Basis person had to analyze the use of the connections and the release times associated before we could figure out that there was a bug with connections not being released after usage was complete.
Regards, Mike
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
12 | |
7 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.