[Hawkular-commits] [hawkular/hawkular] f4b266: HAWKULAR-751 Avail Creator: server runs out of mem...

Heiko W. Rupp hwr at pilhuhn.de
Tue Oct 27 12:24:06 EDT 2015


  Branch: refs/heads/master
  Home:   https://github.com/hawkular/hawkular
  Commit: f4b2663ad33b100e7c26f6e48b39373db2488317
      https://github.com/hawkular/hawkular/commit/f4b2663ad33b100e7c26f6e48b39373db2488317
  Author: Thomas Segismont <tsegismo at redhat.com>
  Date:   2015-10-25 (Sun, 25 Oct 2015)

  Changed paths:
    M modules/avail-creator/src/main/java/org/hawkular/component/availcreator/MetricReceiver.java

  Log Message:
  -----------
  HAWKULAR-751 Avail Creator: server runs out of memory under heavy load

MetricReceiver performance enhancements

Under heavy load, this bean was a slow consumer and made the system run out of memory.

 In order to consume messages faster:
 - disable transaction support
 - use a shared ObjectMapper
 - navigate Json with Jackson API
 - don't call the publisher if nothing to send


  Commit: 05afc5fb7a4f575b349c0f25d72f2485d6ba197e
      https://github.com/hawkular/hawkular/commit/05afc5fb7a4f575b349c0f25d72f2485d6ba197e
  Author: Thomas Segismont <tsegismo at redhat.com>
  Date:   2015-10-26 (Mon, 26 Oct 2015)

  Changed paths:
    M modules/avail-creator/src/main/java/org/hawkular/component/availcreator/AvailPublisher.java

  Log Message:
  -----------
  HAWKULAR-751 Avail Creator: server runs out of memory under heavy load

Avoid calling blocking APIs in the consumer thread.

The blocking call was a consequence of HAWKULAR-113. But it seems that without tx support, asynchronous annotation works well.


  Commit: d20c8ab65c5298904d809c595bcdf5b89f191e25
      https://github.com/hawkular/hawkular/commit/d20c8ab65c5298904d809c595bcdf5b89f191e25
  Author: Heiko W. Rupp <hwr at pilhuhn.de>
  Date:   2015-10-27 (Tue, 27 Oct 2015)

  Changed paths:
    M modules/avail-creator/src/main/java/org/hawkular/component/availcreator/AvailPublisher.java
    M modules/avail-creator/src/main/java/org/hawkular/component/availcreator/MetricReceiver.java

  Log Message:
  -----------
  Merge pull request #612 from tsegismont/jira/HAWKULAR-751

HAWKULAR-751 Avail Creator: server runs out of memory under heavy load


Compare: https://github.com/hawkular/hawkular/compare/4bc85bad2f50...d20c8ab65c52


More information about the hawkular-commits mailing list