2 Replies Latest reply on Apr 24, 2006 3:41 AM by wang wei

    Question: about jboss rules performance problem

    wang wei Newbie

      I have do a jboss rules test, only one rule

      rule "alarmdefine"

      ??no-loop true
      ??when
      #conditions
      alarm(reason:alarmreason, level:alarmlevel)
      alarmdefine(alarmreason==reason, alarmlevel!=level)
      ??then
      ???#actions
      ???alarm.setCounter();?
      end

      eviroment: eclipse3.2M5, jdk1.4.2-03

      when alarmdefine exist 50000 record, loop 1000 , result 20s
      when alarmdefine exist 5000 recode, loop 1000, result 2s

      I have do same test with JESS

      (defrule alarm-cleared-all
      (alarm (alarmreason ?a) (alarmlevel ?x) )
      (alarmdef (alarmreason ?a) (alarmlevel ?y&:(<> ?y ?x)))
      =>
      (call alarm setCounter)
      )

      when alarmdefine exist 50000 record, loop 1000 , result only 0.2s

      Why? what can I do?