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.

  • 相关阅读:
    Mono的简单例子
    Struts2基础学习(四)—类型转换器和数据校验
    Struts2基础学习(三)—Result和数据封装
    Struts2基础学习(二)—Action
    Struts2基础学习(一)—初识Struts2
    jQuery基础学习(三)—jQuery中的DOM操作
    jQuery基础学习(二)—jQuery选择器
    jQuery基础学习(一)—jQuery初识
    JavaScript基础学习(九)—DOM
    JavaScript基础学习(八)—事件
  • 原文地址:https://www.cnblogs.com/rsapaper/p/10234928.html
Copyright © 2011-2022 走看看