Increasing xTour poolSize. How to prevent Dima conflicts?
Posted: Mon Nov 03, 2014 9:49 am
Hello,
I need to use xTour in a multitask approach. So, I would like to have several processes "xTour.planBasicTours" working at same time.
In order to achieve this, on properties file of xTour (Xtour.properties) I increased the number of module instances to 4.
ex:
# The number of module instances to be started as background processes.
poolSize=4
Then, when I make more than one request of xTour.planBasicTours at the same time I get the following error:
2014-09-19 10:16:41,988;ERROR;com.ptvag.xserver.module.xtour.m0001;ed1c2dca-c443-4550-b9f6-7289297b9045;;;;Could not plan basic tours (Reason: Could not delete dima (before usage)). Engine error: Dima is in use by another process (code: -1008).
However, everything works perfect if I chose not to use the array of distance matrices (by setting the directVelocity value on planning parameters).
The problem is that in this case, I need to have the plan results with different driving speeds, according to the road type or location (ex: city or highway).
Can you please help me on this? Thank you.
I need to use xTour in a multitask approach. So, I would like to have several processes "xTour.planBasicTours" working at same time.
In order to achieve this, on properties file of xTour (Xtour.properties) I increased the number of module instances to 4.
ex:
# The number of module instances to be started as background processes.
poolSize=4
Then, when I make more than one request of xTour.planBasicTours at the same time I get the following error:
2014-09-19 10:16:41,988;ERROR;com.ptvag.xserver.module.xtour.m0001;ed1c2dca-c443-4550-b9f6-7289297b9045;;;;Could not plan basic tours (Reason: Could not delete dima (before usage)). Engine error: Dima is in use by another process (code: -1008).
However, everything works perfect if I chose not to use the array of distance matrices (by setting the directVelocity value on planning parameters).
The problem is that in this case, I need to have the plan results with different driving speeds, according to the road type or location (ex: city or highway).
Can you please help me on this? Thank you.