Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  CPLEX get amount of memory used

    Posted 12/11/10 08:37 PM

    Originally posted by: hugh_medal


    Hello,
    I am doing computational experimentation on my model and I want to see how much memory it requires to run. Is there a way to report the maximum amount of memory that the model used? I am running CPLEX concert with Java.

    Thanks,
    Hugh Medal
    Ph.D. Candidate
    University of Arkansas
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: CPLEX get amount of memory used

    Posted 12/12/10 06:06 PM

    Originally posted by: SystemAdmin


    Memory consumption is a tricky issue and actually not very well defined. Please see my answer in thread http://www.ibm.com/developerworks/forums/thread.jspa?threadID=353476&tstart=45 to get started.
    On Linux, you could regularly inspect the proc file system at /proc/<pid>/status, or you could parse the output of
    ps -A -o pid= -o ppid= -o rss=
    

    I have no clue how to do this on Windows.
    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: CPLEX get amount of memory used

    Posted 12/13/10 05:37 PM

    Originally posted by: EdKlotz


    > Tobias Achterberg wrote:
    > Memory consumption is a tricky issue and actually not very well defined. Please see my answer in thread http://www.ibm.com/developerworks/forums/thread.jspa?threadID=353476&tstart=45 to get started.
    > On Linux, you could regularly inspect the proc file system at /proc/<pid>/status, or you could parse the output of
    >
    > ps -A -o pid= -o ppid= -o rss=
    >
    

    > I have no clue how to do this on Windows.
    On Windows the Task Manager enables you to monitor memory usage. If you use it
    and find the default display doesn't give you all the information you need, select
    View->Select Columns to see the additional output you can obtain.
    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: CPLEX get amount of memory used

    Posted 12/13/10 11:59 AM

    Originally posted by: SystemAdmin


    If you search on the keys "Java memory profiler", you'll find some products you can integrate into your code to track memory consumption. I'm not sure whether you'll be able to distinguish memory consumed by CPLEX from memory consumed by the rest of your code. That may depend on the profiler.

    /Paul

    Mathematicians are like Frenchmen: whenever you say something to them, they translate it into their own language, and at once it is something entirely different. (Goethe)
    #CPLEXOptimizers
    #DecisionOptimization


  • 5.  Re: CPLEX get amount of memory used

    Posted 12/16/10 10:07 AM

    Originally posted by: SystemAdmin


    Are you still looking for a solution? It would be interesting whether you can live with a solution that depends on a particular operating system or if you need something that is independent of the operating system.
    Did you try limiting the memory that is assigned to the virtual machine (this is one of -X switches, I think). Using these switches and a binary search should give you a quick idea about how much memory the virtual machine needs to build up your problem. Don't know if that is what you are looking for?
    #CPLEXOptimizers
    #DecisionOptimization