Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Java process wasting computer memory

    Posted 01/29/20 09:19 AM

    Originally posted by: Marc Habib


    When running an heavy model, Java.exe use all computer memory (~ 5 GB free memory) and computer freeze. I cannot even kill java process. I have to restart computer.

    How can I limit java process memory use?

    Java process is: C:\Program Files\IBM\ILOG\CPLEX_Studio1210\opl\oplide\jre\bin\jave.exe.

    This my oplide.ini

    ----

    -startup
    plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
    --launcher.library
    plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.551.v20171108-1834
    --launcher.XXMaxPermSize
    128m
    -clean
    -vmargs
    -Xmx2048m
    -Xms40m
    -Djdk.tls.client.protocols=TLSv1.1,TLSv1.2
    -Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2

    ---- 


    #DecisionOptimization
    #OPLusingCPOptimizer


  • 2.  Re: Java process wasting computer memory



  • 3.  Re: Java process wasting computer memory

    Posted 01/30/20 07:18 AM

    Originally posted by: Marc Habib


    Hi, 

    Thanks for your answer.

     

    I saw this topic, but it didn't help with settings below, java.exe use more than 5GB and my computer freeze. I have to restart computer manually.

     

    This my oplide.ini

    ----

    -startup
    plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
    --launcher.library
    plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.551.v20171108-1834
    --launcher.XXMaxPermSize
    128m
    -clean
    -vmargs
    -Xmx2048m
    -Xms40m
    -Djdk.tls.client.protocols=TLSv1.1,TLSv1.2
    -Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2

    ---- 


    #DecisionOptimization
    #OPLusingCPOptimizer


  • 4.  Re: Java process wasting computer memory

    Posted 01/30/20 11:17 AM

    Originally posted by: ChrisBr


    Hello Marc,

    There may be different reasons for your problem.
    Which engine is used? CPO or CPLEX?
    How many workers are used? By default, the engine uses all workers on your machine this could lead to saturate it.
    This is stated in the documentation, at least for CPO:

    Note that the memory required by CP Optimizer grows roughly linearly as the number of workers is increased. If you are solving a very large model on a multi-core processor and memory usage is an issue, it is advisable to specify a reduced number of workers, or even one worker, rather than use the default value.

    In a first step, I suggest to try only one worker.
    If things run better you can keep like that or try with 4 workers which is the highest value we usually recommend at least for CPO.

    I hope this helps,

    Chris.

     

     


    #DecisionOptimization
    #OPLusingCPOptimizer


  • 5.  Re: Java process wasting computer memory

    Posted 02/03/20 09:14 AM

    Originally posted by: Marc Habib


    Hi

     

    Thanks for your help.

     

    I tried this:

     

    using CP;

    execute {
        cp.param.Workers = 1; 
    }

     

    and did not help (maybe a little, I don't know).

     

    Is this the right way to write this?


    #DecisionOptimization
    #OPLusingCPOptimizer


  • 6.  Re: Java process wasting computer memory

    Posted 02/04/20 09:04 AM

    Originally posted by: ChrisBr


    Hello Marc,

    Yes this is the right way. Sorry that this doesn't fix the problem.

    Maybe your model is very huge?
    Could you send us the beginning of the search log, at least the part where there is the number of variables/constraints.(See search log doc)
    If it is possible you may also send us a .cpo file; it could be anonymized if necessary.

    Parameter ModelAnonymizer

    This parameter controls anonymization of a model dumped via the dumpModel method. When the anonymizer is off, then names of variables and constraints in the model may be found in the output file. When the anonymizer is on, names given to variables or constraints in the model will not be reflected in the output file and standard anonymized names will be used.

    Regards,

    Chris.

     


    #DecisionOptimization
    #OPLusingCPOptimizer