Ad Widget

Collapse

ZapCat; host uses suboptimal jit compiler?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • 0x570x690x6c0x6c
    Junior Member
    • Mar 2012
    • 13

    #1

    ZapCat; host uses suboptimal jit compiler?

    I'm not a TomCat expert, but I'm curious, what exactly does "host uses suboptimal jit compiler" mean?

    I found this on the Zapcat website as well: "The template queries the compiler type and the accumulated compiler time. The latter is not of great interest, but the compiler name is important to check. To help with this, there is also a trigger named “jvm uses suboptimal jit compiler”. If this trigger is true, you know that adding the flag “-server” to the Java command line is likely to give you a nice performance boost."

    And I'm even more confused on what I should be doing.

    Suggestions?
  • rrupp
    Junior Member
    • Jul 2012
    • 21

    #2
    Here's some more information - http://stackoverflow.com/questions/1...er-jvm-options

    Essentially if you're running a long running application server such as Tomcat you want to be using the server compiler as it's better optimized where as the client compiler is meant for faster startup time (for instance if I wanted to run a quick script written in Java I'd use the -client argument for faster startup).

    If you're using a 64 bit version of Java the JVM should default to the "server" compiler (if not you can use the -server argument when starting the Java process i.e. java -server Your.Main.Class). If you're using Java 1.6.23 (Java 6 version 23) or higher, or Java 7 there's actually a new default compiler for the Oracle/Sun JVM called "Hotspot Tiered Compiler" which is actually preferred now. I haven't checked the latest Zabbix JMX template but I know the original one I had was just checking for the keyword "Server" in the compilation type otherwise the trigger would go off. This was actually a false positive then because I had the "HotSpot Tiered Compiler" which is actually preferable, you can change the trigger definition if this is the case.

    More info about tiered compiler - http://docs.oracle.com/javase/7/docs...cements-7.html

    Also, when referring to the compiler this is in reference to Just in Time (JIT) compilation which is translating Java byte code to actual native code which occurs during runtime, see - http://en.wikipedia.org/wiki/Just-in-time_compilation

    Comment

    Working...