Opened 4 years ago
CPL running out of memory with large dataset
|Reported by:||gmata||Owned by:||somebody|
|Keywords:||out of memory||Cc:|
One of our client was running our application and received an out of memory error message. We were able to reproduce the bug with the following command and instance: clp_solve.exe -m vmbmod_m2 -s p -p
Note that the vmbmod_m2.mps file is about 199 MB.
After an hour of running we encountered the error below:
Unhandled exception at 0x758f9617 in clp_solve.exe: Microsoft C++ exception: std::bad_alloc at memory location 0x0012bf2c.
The new operator used to allocate dynamic memory is throwing a _STD bad_alloc exception when requesting memory for an array of 107,726,584 elements (about 102.74 MB). This is a very big amount of elements for an array.
And while running, the Windows task manager shows about 1 GB of memory consumed by the clp_solve: