skip to Main Content

My server is running some java processes (Wowza media Server).
And 1 day, it had been error “out of memory java heap”.
I want zabbix to detect this issue to send notify email.
Anyone know about this please help, or just give me an idea.
Thank a lot.

I tried to find some commandline to get java heap size,
java -XX:+PrintFlagsFinal -version | grep HeapSize
but this is not what i want.

I want to get the value of heap memory at the time i run the command

2

Answers


  1. You can use JMX to monitor JVM metrics (cpu, threads, memory).

    JMX monitoring has native support in Zabbix in the form of a Zabbix daemon called “Zabbix Java gateway”, introduced since Zabbix 2.0.

    You can see the documentation here.

    Login or Signup to reply.
  2. As mentioned you can use JVM . For

    The interface for the item key “jmx [java.lang: type = Memory,
    HeapMemoryUsage.committed]

    Does your Host in Zabbix have JMX interface configured? You can see how it should look like in the documentation link, mentioned above. in section: Configuring JMX interface

    p.s mostly it is server_ip and port 6969.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search