Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 63FA8200C15 for ; Wed, 8 Feb 2017 11:45:47 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 62873160B5A; Wed, 8 Feb 2017 10:45:47 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id AABEE160B4E for ; Wed, 8 Feb 2017 11:45:46 +0100 (CET) Received: (qmail 20494 invoked by uid 500); 8 Feb 2017 10:45:45 -0000 Mailing-List: contact issues-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list issues@ignite.apache.org Received: (qmail 20485 invoked by uid 99); 8 Feb 2017 10:45:45 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Feb 2017 10:45:45 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 4CF4BC05D7 for ; Wed, 8 Feb 2017 10:45:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.199 X-Spam-Level: X-Spam-Status: No, score=-1.199 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id pdETdAOGIG9G for ; Wed, 8 Feb 2017 10:45:44 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id DA1D75F298 for ; Wed, 8 Feb 2017 10:45:43 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id DCA80E04DB for ; Wed, 8 Feb 2017 10:45:42 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id D274C2528E for ; Wed, 8 Feb 2017 10:45:41 +0000 (UTC) Date: Wed, 8 Feb 2017 10:45:41 +0000 (UTC) From: "Vyacheslav Daradur (JIRA)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (IGNITE-4374) Ignite should validate JVM and OS configuration and output warning in log MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 08 Feb 2017 10:45:47 -0000 [ https://issues.apache.org/jira/browse/IGNITE-4374?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15857821#comment-15857821 ] Vyacheslav Daradur commented on IGNITE-4374: -------------------------------------------- [~dmagda] Done. Current output: {code} [11:54:40] [11:54:41] Message queue limit is set to 0 which may lead to potential OOMEs when running cache operations in FULL_ASYNC or PRIMARY_SYNC modes due to message queues growth on sender and receiver sides. [11:54:41] Security status [authentication=off, tls/ssl=off] [11:54:43] Performance suggestions for grid (fix if possible) [11:54:43] To disable, set -DIGNITE_PERFORMANCE_SUGGESTIONS_DISABLED=true [11:54:43] ^-- JVM heap size is greater than 30.5Gb, JVM will not use compressed oops [11:54:43] ^-- Enable server mode for JVM (add '-server' to JVM options) [11:54:43] ^-- Enable G1 Garbage Collector (add '-XX:+UseG1GC' to JVM options) [11:54:43] ^-- Specify JVM heap max size (add '-Xmx[g|G|m|M|k|K]' to JVM options)" [11:54:43] ^-- Specify New I/O max total size (add '-XX:MaxDirectMemorySize=[g|G|m|M|k|K]' to JVM options) [11:54:43] ^-- Enable the thread-local allocation blocks (add '-XX:+UseTLAB' to JVM options) [11:54:43] ^-- Disable processing of calls to System.gc() (add '-XX:+DisableExplicitGC' to JVM options) [11:54:43] ^-- Speed up flushing of dirty pages by OS (alter vm.dirty_writeback_centisecs and vm.dirty_expire_centisecs parameters by setting to 500) [11:54:43] ^-- Reduce pages swapping ratio (set vm.swappiness=10) [11:54:43] ^-- Disable NUMA memory reclaim (set vm.zone_reclaim_mode=0) [11:54:43] ^-- Avoid direct reclaim and page allocation failures (set vm.extra_free_kbytes=1240000) [11:54:43] Refer to this page for more performance suggestions: https://apacheignite.readme.io/docs/jvm-and-system-tuning [11:54:43] [11:54:43] To start Console Management & Monitoring run ignitevisorcmd.{sh|bat} [11:54:43] [11:54:43] Ignite node started OK (id=8bf18ef1) [11:54:43] Topology snapshot [ver=1, servers=1, clients=0, CPUs=1, heap=1.0GB] {code} These lines are optionaly: {code} [11:59:07] ^-- Speed up flushing of dirty pages by OS (alter vm.dirty_expire_centisecs parameter by setting to 500) or [12:34:01] ^-- Speed up flushing of dirty pages by OS (alter vm.dirty_writeback_centisecs parameter by setting to 500) or [12:33:01] ^-- Speed up flushing of dirty pages by OS (alter vm.dirty_writeback_centisecs and vm.dirty_expire_centisecs parameters by setting to 500) {code} bq. Avoid direct reclaim and page allocation failures (set vm.extra_free_kbytes to 1240000 or other value). We check equality to 1240000. If we write "or other value", we should change the check. [Latest ci.tests|http://ci.ignite.apache.org/viewQueued.html?itemId=449798] > Ignite should validate JVM and OS configuration and output warning in log > ------------------------------------------------------------------------- > > Key: IGNITE-4374 > URL: https://issues.apache.org/jira/browse/IGNITE-4374 > Project: Ignite > Issue Type: Improvement > Components: documentation > Reporter: Yakov Zhdanov > Assignee: Vyacheslav Daradur > Attachments: x32_not_optimized.png, x32_optimized.png, x64_not_optimized.png, x64_optimized.png > > > Currently we have GridPerformanceSuggestions that output suggestions to logs on Ignite start on how Ignite can be improved. > I suggest to go a little bit deeper and validate more configuration options and add validation for JVM and OS settings. > Ignite should output warning if: > * GC logging is not enabled > * MaxDirectMemorySize is not set (-XX:MaxDirectMemorySize) > * Heap size is greater than 30,5G and JVM cannot use compressed oops > * Any of the recommended OS setting described here https://apacheignite.readme.io/docs/jvm-and-system-tuning are not properly set -- This message was sent by Atlassian JIRA (v6.3.15#6346)