Java Code Examples for org.elasticsearch.monitor.jvm.JvmInfo#jvmInfo()

The following examples show how to use org.elasticsearch.monitor.jvm.JvmInfo#jvmInfo() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: NodeEnvironment.java    From Elasticsearch with Apache License 2.0 4 votes vote down vote up
private void maybeLogHeapDetails() {
    JvmInfo jvmInfo = JvmInfo.jvmInfo();
    ByteSizeValue maxHeapSize = jvmInfo.getMem().getHeapMax();
    String useCompressedOops = jvmInfo.useCompressedOops();
    logger.info("heap size [{}], compressed ordinary object pointers [{}]", maxHeapSize, useCompressedOops);
}
 
Example 2
Source File: ThumbnailGenerator.java    From fess with Apache License 2.0 4 votes vote down vote up
static void initializeProbes() {
    // Force probes to be loaded
    ProcessProbe.getInstance();
    OsProbe.getInstance();
    JvmInfo.jvmInfo();
}
 
Example 3
Source File: SuggestCreator.java    From fess with Apache License 2.0 4 votes vote down vote up
static void initializeProbes() {
    // Force probes to be loaded
    ProcessProbe.getInstance();
    OsProbe.getInstance();
    JvmInfo.jvmInfo();
}
 
Example 4
Source File: Crawler.java    From fess with Apache License 2.0 4 votes vote down vote up
static void initializeProbes() {
    // Force probes to be loaded
    ProcessProbe.getInstance();
    OsProbe.getInstance();
    JvmInfo.jvmInfo();
}
 
Example 5
Source File: BootstrapProxy.java    From crate with Apache License 2.0 4 votes vote down vote up
static void initializeProbes() {
    // Force probes to be loaded
    ProcessProbe.getInstance();
    OsProbe.getInstance();
    JvmInfo.jvmInfo();
}
 
Example 6
Source File: NodeEnvironment.java    From crate with Apache License 2.0 4 votes vote down vote up
private void maybeLogHeapDetails() {
    JvmInfo jvmInfo = JvmInfo.jvmInfo();
    ByteSizeValue maxHeapSize = jvmInfo.getMem().getHeapMax();
    String useCompressedOops = jvmInfo.useCompressedOops();
    logger.info("heap size [{}], compressed ordinary object pointers [{}]", maxHeapSize, useCompressedOops);
}