zoukankan      html  css  js  c++  java
  • Drip is a launcher for the Java Virtual Machine that provides much faster startup times than the java command. The drip script is intended to be a drop-in replacement for the java command, only faster

    小结:

    1、初始化jvm;

    2、第一次唤醒java命令不快,后续快;

    https://github.com/elastic/logstash

    Advanced: Drip Launcher

    Drip is a tool that solves the slow JVM startup problem while developing Logstash. The drip script is intended to be a drop-in replacement for the java command. We recommend using drip during development, in particular for running tests. Using drip, the first invocation of a command will not be faster but the subsequent commands will be swift.

    To tell logstash to use drip, set the environment variable JAVACMD=`which drip`.

    Example (but see the Testing section below before running rspec for the first time):

    JAVACMD=`which drip` bin/rspec

    https://github.com/ninjudd/drip

    Pre-Initialization

    By default, Drip only loads your main class at startup, but you can tell Drip to run additional code at startup. This can be used to load classes or execute any initialization code you like. For a language like Clojure, which compiles code on-the-fly, this can be used to precompile commonly used code by requiring it.

    To tell Drip how to initialize a new JVM, use the DRIP_INIT and DRIP_INIT_CLASS environment variables. DRIP_INIT should be a newline-separated list of args to be passed to the main() function of DRIP_INIT_CLASSDRIP_INIT_CLASS defaults to the main class the JVM was started with.

  • 相关阅读:
    maven常用命令
    div标签width:auto无效
    将本地文件推送到码云
    Spring事件监听讲解
    常用js代码积累
    HTML中块级元素和行内元素的总结和区分
    box-shadow详解
    设置最小宽高的作用
    Java英语词汇表
    标识符
  • 原文地址:https://www.cnblogs.com/rsapaper/p/10234928.html
Copyright © 2011-2022 走看看