JBoss ON server or agent process is terminated by OOM-Killer if host machine has insufficient memory

Solution Verified - Updated -

Issue

  • RHQ Server IS NOT running
  • Server stops working after a few hours
  • rhqctl status unexpectedly reports server IS NOT running:

    RHQ Storage Node               (pid 10155  ) IS running
    RHQ Server                     (pid 10162  ) IS NOT running
    JBossAS Java VM child process  (no pid file) IS NOT running
    RHQ Agent                      (pid 10259  ) IS running
    
  • After any change from user interface (UI), RHQ Server and JBossAS Java VM child process were stopped

  • Server process is terminated and /var/log/messages reveals:

    kernel: Out of memory: Kill process 10162 (java) score 161 or sacrifice child
    kernel: Killed process 10162, UID 0, (java) total-vm:2307155kB, anon-rss:761794kB, file-rss:809kB
    

Environment

  • Red Hat JBoss Operations Network (ON) 3.2
  • Red Hat Enterprise Linux 5, 6, 7
  • Panic on Out-of-Memory (OOM) is disabled

    $ cat /proc/sys/vm/panic_on_oom
    0
    
  • Host machine's total physical and swap memory are insufficient to run the JBoss ON system

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content