<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Eclipse might be running the process as part of the eclipse process
    and VisualVM might be counting eclipse's memory too.<br>
    <br>
    <div class="moz-cite-prefix">Op 30-01-13 17:28, Andr&eacute; Fr&oacute;es schreef:<br>
    </div>
    <blockquote
cite="mid:CAC8f_wWU4+8cgWt3t0Te=7NpJEJ7by4=kDSq158RsaqBRXkcUQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">Actually i'm only with eclipse and VisualVM open. I
        don't know either why is it taking 1500MB, I got no apache nor
        any other kind of java based program opened.
        <div style="">But be aware that this machine is not really good
          :D, planner is really light. Regarding the heap space problem,
          when u told me to increase do Xmx512, i did a test regarding
          128/256/512</div>
        <div style="">I generate a graph with the 3 executions with 1000
          engineer/2000 workorders to see if it would do any difference.
          By what I can see (by my noobie saight), it was no difference
          regarding time and amount of memory usage. It used the full
          memory (128/256/512) when running the planner.</div>
        <div style=""><br>
        </div>
        <div style=""><img src="cid:part1.07070405.06060104@gmail.com"
            alt="Imagem inline 1"><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">2013/1/30 Geoffrey De Smet <span
            dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:ge0ffrey.spam@gmail.com" target="_blank">ge0ffrey.spam@gmail.com</a>&gt;</span><br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000"> Interesting
              benchmarks.<br>
              These images would make an interesting blog post on how
              memory consumption scales in planner, if you're interested
              in writing one.<br>
              <br>
              I still don't understand why you start out with 1500MB
              already taken (before planner starts) if the engineers and
              workorder objects are so light.<br>
              Is it running on a heavy app server?<br>
              <br>
              <div>Op 30-01-13 16:23, Andr&eacute; Fr&oacute;es schreef:<br>
              </div>
              <blockquote type="cite">
                <div dir="ltr">Would be this:
                  <div><br>
                  </div>
                  <div><img src="cid:part3.05020302.01070501@gmail.com"
                      alt="Imagem inline 2"><br>
                  </div>
                  <div>i noticed 2 thing doing this test, 1st, the ID
                    binded on workorder/engineer can be the same, for
                    example, it will run if I have an workorder id 0 and
                    an engineer id 0, and that it will run if provided
                    time enough to do the comparison by the xml file,
                    otherwise, it will present a result full of
                    "null's".</div>
                  <div><br>
                  </div>
                  <div>I generate the workorder/engineer this way:</div>
                  <div>--------</div>
                  <div>
                    <div>List&lt;Engineer&gt; engineerList = new
                      ArrayList&lt;Engineer&gt;();</div>
                    <div>for (int i = 1; i &lt; 1001; i++){</div>
                    <div><span style="white-space:pre-wrap"> </span>engineerList.add(new

                      Engineer(i, "engineer " + i, 8 ));</div>
                    <div>}</div>
                    <div><span style="white-space:pre-wrap"><br>
                      </span></div>
                    <div>List&lt;WorkOrder&gt; workOrderList = new
                      ArrayList&lt;WorkOrder&gt;();<br>
                    </div>
                    <div>for (int i = 1002; i &lt; 3002; i++){</div>
                    <div><span style="white-space:pre-wrap"> </span>workOrderList.add(new

                      WorkOrder(i, (new Random().nextInt(5-1+1)+1)));</div>
                    <div>}</div>
                    <div>----------------</div>
                    <div> <br>
                    </div>
                    <div>in order to stop receiving nulls, i increased
                      the termination from 5s to 120s, and it worked</div>
                    <div><br>
                    </div>
                    <div>----------------</div>
                    <div>
                      <div>&lt;termination&gt;</div>
                      <div>&nbsp; &nbsp;
                        &lt;maximumSecondsSpend&gt;120&lt;/maximumSecondsSpend&gt;</div>
                      <div>&lt;/termination&gt;</div>
                    </div>
                    <div>----------------</div>
                    <div><br>
                    </div>
                  </div>
                </div>
                <div class="gmail_extra"><br>
                  <br>
                  <div class="gmail_quote">2013/1/30 Geoffrey De Smet <span
                      dir="ltr">&lt;<a moz-do-not-send="true"
                        href="mailto:ge0ffrey.spam@gmail.com"
                        target="_blank">ge0ffrey.spam@gmail.com</a>&gt;</span><br>
                    <blockquote class="gmail_quote" style="margin:0 0 0
                      .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      <div bgcolor="#FFFFFF" text="#000000"> Now try
                        2000 workorders and 1000 engineers and see what
                        it does ;-)<br>
                        <br>
                        <div>Op 30-01-13 14:27, Andr&eacute; Fr&oacute;es schreef:<br>
                        </div>
                        <div>
                          <div>
                            <blockquote type="cite">
                              <div dir="ltr">Just to knowledge, i'm
                                sending the graph of memory usage when
                                running it with, first marker(between
                                first 2 green lines) peak with 10
                                workorders and 5 engineers, and, secong
                                marker (between last 2 green lines), &nbsp;26
                                workordes and 10 engineers.
                                <div> <img
                                    src="cid:part5.01050000.02070301@gmail.com"
                                    alt="Imagem inline 1" height="221"
                                    width="747"><br>
                                </div>
                              </div>
                              <div class="gmail_extra"><br>
                                <br>
                                <div class="gmail_quote">2013/1/30
                                  Geoffrey De Smet <span dir="ltr">&lt;<a
                                      moz-do-not-send="true"
                                      href="mailto:ge0ffrey.spam@gmail.com"
                                      target="_blank">ge0ffrey.spam@gmail.com</a>&gt;</span><br>
                                  <blockquote class="gmail_quote"
                                    style="margin:0 0 0
                                    .8ex;border-left:1px #ccc
                                    solid;padding-left:1ex">
                                    <div bgcolor="#FFFFFF"
                                      text="#000000">
                                      <div>
                                        <blockquote type="cite">I wonder
                                          why it worked on the
                                          5.5.0.Final with the
                                          cloudbalance but not with my
                                          workorder example that was
                                          much simpler,</blockquote>
                                      </div>
                                      Me too. All the examples / unit
                                      tests work with 5.5.0.Final, but
                                      there's clearly a case they don't
                                      cover.<br>
                                      Good thing is that 5.6 will be out
                                      soon.<br>
                                      <br>
                                      <div>Op 30-01-13 13:30, Andr&eacute;
                                        Fr&oacute;es schreef:<br>
                                      </div>
                                      <blockquote type="cite">
                                        <div>
                                          <div>
                                            <div dir="ltr"><br>
                                              It worked with the
                                              5.5.1-SNAPSHOT
                                              <div><br>
                                              </div>
                                              <div>-----------------</div>
                                              <div>
                                                <div>10:27:49.215 [main]
                                                  INFO
                                                  &nbsp;o.d.p.core.solver.DefaultSolver
                                                  - Solving started:
                                                  time spend (179),
                                                  score (null), new best
                                                  score (null), random
                                                  seed (0).</div>
                                                <div>10:27:49.254 [main]
                                                  DEBUG
                                                  o.d.p.c.c.g.DefaultGreedyFitSolverPhase
                                                  - &nbsp; &nbsp; Step index (0),
                                                  time spend (224),
                                                  score (0hard/0soft),
                                                  initialized planning
                                                  entity
                                                  ([WorkOrder-15]).</div>
                                                <div>10:27:49.256 [main]
                                                  DEBUG
                                                  o.d.p.c.c.g.DefaultGreedyFitSolverPhase
                                                  - &nbsp; &nbsp; Step index (1),
                                                  time spend (225),
                                                  score (0hard/0soft),
                                                  initialized planning
                                                  entity
                                                  ([WorkOrder-14]).</div>
                                                <div>10:27:49.284 [main]
                                                  DEBUG
                                                  o.d.p.c.c.g.DefaultGreedyFitSolverPhase
                                                  - &nbsp; &nbsp; Step index (2),
                                                  time spend (254),
                                                  score (0hard/0soft),
                                                  initialized planning
                                                  entity
                                                  ([WorkOrder-13]).</div>
                                                <div>10:27:49.293 [main]
                                                  DEBUG
                                                  o.d.p.c.c.g.DefaultGreedyFitSolverPhase
                                                  - &nbsp; &nbsp; Step index (3),
                                                  time spend (263),
                                                  score (0hard/0soft),
                                                  initialized planning
                                                  entity
                                                  ([WorkOrder-12]).</div>
                                                <div>10:27:49.297 [main]
                                                  DEBUG
                                                  o.d.p.c.c.g.DefaultGreedyFitSolverPhase
                                                  - &nbsp; &nbsp; Step index (4),
                                                  time spend (267),
                                                  score (0hard/0soft),
                                                  initialized planning
                                                  entity
                                                  ([WorkOrder-11]).</div>
                                                <div>10:27:49.300 [main]
                                                  DEBUG
                                                  o.d.p.c.c.g.DefaultGreedyFitSolverPhase
                                                  - &nbsp; &nbsp; Step index (5),
                                                  time spend (270),
                                                  score (0hard/0soft),
                                                  initialized planning
                                                  entity
                                                  ([WorkOrder-10]).</div>
                                                <div>10:27:49.306 [main]
                                                  DEBUG
                                                  o.d.p.c.c.g.DefaultGreedyFitSolverPhase
                                                  - &nbsp; &nbsp; Step index (6),
                                                  time spend (276),
                                                  score (0hard/0soft),
                                                  initialized planning
                                                  entity
                                                  ([WorkOrder-9]).</div>
                                                <div>10:27:49.310 [main]
                                                  DEBUG
                                                  o.d.p.c.c.g.DefaultGreedyFitSolverPhase
                                                  - &nbsp; &nbsp; Step index (7),
                                                  time spend (280),
                                                  score (0hard/0soft),
                                                  initialized planning
                                                  entity
                                                  ([WorkOrder-8]).</div>
                                                <div>10:27:49.315 [main]
                                                  DEBUG
                                                  o.d.p.c.c.g.DefaultGreedyFitSolverPhase
                                                  - &nbsp; &nbsp; Step index (8),
                                                  time spend (285),
                                                  score (0hard/0soft),
                                                  initialized planning
                                                  entity
                                                  ([WorkOrder-7]).</div>
                                                <div>10:27:49.321 [main]
                                                  DEBUG
                                                  o.d.p.c.c.g.DefaultGreedyFitSolverPhase
                                                  - &nbsp; &nbsp; Step index (9),
                                                  time spend (291),
                                                  score (0hard/0soft),
                                                  initialized planning
                                                  entity
                                                  ([WorkOrder-6]).</div>
                                                <div>10:27:49.321 [main]
                                                  INFO
                                                  &nbsp;o.d.p.c.c.g.DefaultGreedyFitSolverPhase
                                                  - Phase
                                                  constructionHeuristic
                                                  ended: step total
                                                  (10), time spend
                                                  (291), best score
                                                  (0hard/0soft).</div>
                                                <div>10:27:50.041 [main]
                                                  DEBUG
                                                  o.d.p.c.l.DefaultLocalSearchSolverPhase
                                                  - &nbsp; &nbsp; Step index (0),
                                                  time spend (1010),
                                                  score (0hard/0soft), &nbsp;
                                                  &nbsp; best score
                                                  (0hard/0soft),
                                                  accepted/selected move
                                                  count (1000/1000) for
                                                  picked step
                                                  ([WorkOrder-8]
                                                  &lt;=&gt;
                                                  [WorkOrder-12]).</div>
                                                <div>10:27:50.744 [main]
                                                  DEBUG
                                                  o.d.p.c.l.DefaultLocalSearchSolverPhase
                                                  - &nbsp; &nbsp; Step index (1),
                                                  time spend (1714),
                                                  score (0hard/0soft), &nbsp;
                                                  &nbsp; best score
                                                  (0hard/0soft),
                                                  accepted/selected move
                                                  count (1000/1422) for
                                                  picked step
                                                  ([WorkOrder-14]
                                                  &lt;=&gt;
                                                  [WorkOrder-10]).</div>
                                                <div>10:27:51.568 [main]
                                                  DEBUG
                                                  o.d.p.c.l.DefaultLocalSearchSolverPhase
                                                  - &nbsp; &nbsp; Step index (2),
                                                  time spend (2538),
                                                  score (0hard/0soft), &nbsp;
                                                  &nbsp; best score
                                                  (0hard/0soft),
                                                  accepted/selected move
                                                  count (1000/2013) for
                                                  picked step
                                                  ([WorkOrder-6]
                                                  &lt;=&gt;
                                                  [WorkOrder-9]).</div>
                                                <div>10:27:52.083 [main]
                                                  DEBUG
                                                  o.d.p.c.l.DefaultLocalSearchSolverPhase
                                                  - &nbsp; &nbsp; Step index (3),
                                                  time spend (3053),
                                                  score (0hard/0soft), &nbsp;
                                                  &nbsp; best score
                                                  (0hard/0soft),
                                                  accepted/selected move
                                                  count (1000/3635) for
                                                  picked step
                                                  ([WorkOrder-11]
                                                  &lt;=&gt;
                                                  [WorkOrder-15]).</div>
                                                <div>10:27:52.902 [main]
                                                  DEBUG
                                                  o.d.p.c.l.DefaultLocalSearchSolverPhase
                                                  - &nbsp; &nbsp; Step index (4),
                                                  time spend (3872),
                                                  score (0hard/0soft), &nbsp;
                                                  &nbsp; best score
                                                  (0hard/0soft),
                                                  accepted/selected move
                                                  count (1000/8864) for
                                                  picked step
                                                  ([WorkOrder-7]
                                                  &lt;=&gt;
                                                  [WorkOrder-13]).</div>
                                                <div>10:27:54.030 [main]
                                                  DEBUG
                                                  o.d.p.c.l.DefaultLocalSearchSolverPhase
                                                  - &nbsp; &nbsp; Step index (5),
                                                  time spend (5000),
                                                  score (0hard/0soft), &nbsp;
                                                  &nbsp; best score
                                                  (0hard/0soft),
                                                  accepted/selected move
                                                  count (0/31698) for
                                                  picked step
                                                  ([WorkOrder-15]
                                                  &lt;=&gt;
                                                  [WorkOrder-7]).</div>
                                                <div>10:27:54.031 [main]
                                                  INFO
                                                  &nbsp;o.d.p.c.l.DefaultLocalSearchSolverPhase
                                                  - Phase localSearch
                                                  ended: step total (6),
                                                  time spend (5001),
                                                  best score
                                                  (0hard/0soft).</div>
                                                <div>10:27:54.031 [main]
                                                  INFO
                                                  &nbsp;o.d.p.core.solver.DefaultSolver
                                                  - Solving ended: time
                                                  spend (5001), best
                                                  score (0hard/0soft),
                                                  average calculate
                                                  count per second
                                                  (9730).</div>
                                                <div><br>
                                                </div>
                                                <div>Solved distribution
                                                  with 10 work orders
                                                  and 5 engineers:</div>
                                                <div>&nbsp; 6: ID: 5 - Monkey
                                                  D. Ruffy</div>
                                                <div>&nbsp; 7: ID: 5 - Monkey
                                                  D. Ruffy</div>
                                                <div>&nbsp; 8: ID: 4 - Mr.
                                                  Miyagi</div>
                                                <div>&nbsp; 9: ID: 4 - Mr.
                                                  Miyagi</div>
                                                <div>&nbsp; 10: ID: 3 - Rambo</div>
                                                <div>&nbsp; 11: ID: 3 - Rambo</div>
                                                <div>&nbsp; 12: ID: 2 - Chuck
                                                  Norris</div>
                                                <div>&nbsp; 13: ID: 2 - Chuck
                                                  Norris</div>
                                                <div>&nbsp; 14: ID: 1 -
                                                  Aladin</div>
                                                <div>&nbsp; 15: ID: 1 -
                                                  Aladin</div>
                                              </div>
                                              <div>---------------</div>
                                              <div><br>
                                              </div>
                                              <div>I wonder why it
                                                worked on the
                                                5.5.0.Final with the
                                                cloudbalance but not
                                                with my workorder
                                                example that was much
                                                simpler, i mean, the
                                                rule was only a hard
                                                constraint and the pojo
                                                simples though.</div>
                                            </div>
                                            <div class="gmail_extra"><br>
                                              <br>
                                              <div class="gmail_quote">2013/1/29

                                                Andr&eacute; Fr&oacute;es <span
                                                  dir="ltr">&lt;<a
                                                    moz-do-not-send="true"
href="mailto:arfmoraes@gmail.com" target="_blank">arfmoraes@gmail.com</a>&gt;</span><br>
                                                <blockquote
                                                  class="gmail_quote"
                                                  style="margin:0 0 0
                                                  .8ex;border-left:1px
                                                  #ccc
                                                  solid;padding-left:1ex">
                                                  <p dir="ltr">Okay I'll
                                                    try it now and then&nbsp;
                                                    post the result.</p>
                                                </blockquote>
                                              </div>
                                              <br>
                                            </div>
                                            <br>
                                            <fieldset></fieldset>
                                            <br>
                                          </div>
                                        </div>
                                        <div>
                                          <pre>_______________________________________________
rules-users mailing list
<a moz-do-not-send="true" href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a>
<a moz-do-not-send="true" href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
                                        </div>
                                      </blockquote>
                                      <br>
                                    </div>
                                    <br>
_______________________________________________<br>
                                    rules-users mailing list<br>
                                    <a moz-do-not-send="true"
                                      href="mailto:rules-users@lists.jboss.org"
                                      target="_blank">rules-users@lists.jboss.org</a><br>
                                    <a moz-do-not-send="true"
                                      href="https://lists.jboss.org/mailman/listinfo/rules-users"
                                      target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
                                    <br>
                                  </blockquote>
                                </div>
                                <br>
                              </div>
                              <br>
                              <fieldset></fieldset>
                              <br>
                              <pre>_______________________________________________
rules-users mailing list
<a moz-do-not-send="true" href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a>
<a moz-do-not-send="true" href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
                            </blockquote>
                            <br>
                          </div>
                        </div>
                      </div>
                      <br>
                      _______________________________________________<br>
                      rules-users mailing list<br>
                      <a moz-do-not-send="true"
                        href="mailto:rules-users@lists.jboss.org"
                        target="_blank">rules-users@lists.jboss.org</a><br>
                      <a moz-do-not-send="true"
                        href="https://lists.jboss.org/mailman/listinfo/rules-users"
                        target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
                      <br>
                    </blockquote>
                  </div>
                  <br>
                </div>
                <br>
                <fieldset></fieldset>
                <br>
                <pre>_______________________________________________
rules-users mailing list
<a moz-do-not-send="true" href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a>
<a moz-do-not-send="true" href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
              </blockquote>
              <br>
            </div>
            <br>
            _______________________________________________<br>
            rules-users mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
            <a moz-do-not-send="true"
              href="https://lists.jboss.org/mailman/listinfo/rules-users"
              target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>