Forum Discussion
FICO
3 years agoCommunity Manager
new XPRM() initialization error in multi-threaded Java programs
Hi, I wrote a multi-threaded Java program to run a large number of small MIP problems. Occasionally, the XPRM() initialization fails at this line: XPRM xprm = new XPRM(); When I print the error sta...
FICO
3 years agoCommunity Manager
Hi, Johannes, I use Windows 11 Home, and Xpress 8.14. The java program I wrote is a Microservice using spring framework (Spring | Home). Clients send REST API calls, and the server side accepts the calls and process the data (running a MIP model for each all). I checked overall memory usage and JVM heap; it didn't show any issue at all. If I slow down the client calls a little bit, there is no problem (new XPRM() won't run into any error). It's when I do a load testing, let client side send huge number of calls constantly at high speed (every few milliseconds), then the new XPRM() run into errors.
I didn't use mmjava in my program and didn't what it is (before today). If you want the code (which has many lines), I will have to reorganize it to remove the irrelevant lines and only focus on the ones that is relevant to this issue.
Thanks,
Jie