Uploaded image for project: 'OptaPlanner'
  1. OptaPlanner
  2. PLANNER-2546

Memory leak related to PhreakPropagationContext when multithreaded

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 8.13.0.Final
    • None
    • None
    • None
    • Hide

      Download the Quarkus example:
      {{ $ git clone https://github.com/quarkusio/quarkus-quickstarts.git}}
      {{ $ cd quarkus-quickstarts/optaplanner-quickstart}}

      Then change src/main/resources/application.properties by increasing the termination time (e.g. to quarkus.optaplanner.solver.termination.spent-limit=10h) and uncommenting the line that says quarkus.optaplanner.solver.move-thread-count=2 to enable multithreading.

      Then, run the request mentioned in the quickstart manual:
      {{ $ ./mvnw compile quarkus:dev}}
      {{ $ {{curl -i -X POST http://localhost:8080/timeTable/solve -H "Content-Type:application/json" -d '{"timeslotList":[

      {"dayOfWeek":"MONDAY","startTime":"08:30:00","endTime":"09:30:00"}

      ,{"dayOfWeek":"MONDAY","startTime":"09:30:00","endTime":"10:30:00"}],"roomList":[\{"name":"Room A"},\{"name":"Room B"}],"lessonList":[\{"id":1,"subject":"Math","teacher":"A. Turing","studentGroup":"9th grade"},\{"id":2,"subject":"Chemistry","teacher":"M. Curie","studentGroup":"9th grade"},\{"id":3,"subject":"French","teacher":"M. Curie","studentGroup":"10th grade"},\{"id":4,"subject":"History","teacher":"I. Jones","studentGroup":"10th grade"}]}'}}}}

      Show
      Download the Quarkus example: {{ $ git clone https://github.com/quarkusio/quarkus-quickstarts.git }} {{ $ cd quarkus-quickstarts/optaplanner-quickstart}} Then change src/main/resources/application.properties by increasing the termination time (e.g. to quarkus.optaplanner.solver.termination.spent-limit=10h ) and uncommenting the line that says quarkus.optaplanner.solver.move-thread-count=2 to enable multithreading. Then, run the request mentioned in the quickstart manual: {{ $ ./mvnw compile quarkus:dev}} {{ $ {{curl -i -X POST http://localhost:8080/timeTable/solve -H "Content-Type:application/json" -d '{"timeslotList":[ {"dayOfWeek":"MONDAY","startTime":"08:30:00","endTime":"09:30:00"} ,{"dayOfWeek":"MONDAY","startTime":"09:30:00","endTime":"10:30:00"}],"roomList": [\{"name":"Room A"},\{"name":"Room B"}] ,"lessonList": [\{"id":1,"subject":"Math","teacher":"A. Turing","studentGroup":"9th grade"},\{"id":2,"subject":"Chemistry","teacher":"M. Curie","studentGroup":"9th grade"},\{"id":3,"subject":"French","teacher":"M. Curie","studentGroup":"10th grade"},\{"id":4,"subject":"History","teacher":"I. Jones","studentGroup":"10th grade"}] }'}}}}
    • NEW
    • NEW

      I seem to be getting a memory leak in Optaplanner. When running multithreaded, memory steadily increases (about 10 MB per minute on my PC) while millions of PhreakPropagationContext objects are made.
       

              lpetrovi@redhat.com Lukáš Petrovický (Inactive)
              frederik.vanderstraeten@gmail.com Frederik Vanderstraeten (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: