Coder Social home page Coder Social logo

jstart's People

Contributors

hydra-zim avatar jizhilong avatar liumengjie1 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

jstart's Issues

add jstart rule for c2 jit compiler tuning

introduction to tiered compilation: https://www.baeldung.com/jvm-tiered-compilation

candidate rule parameters:

  • c2=on expands to -XX:+TieredCompilation -XX:TieredStopAtLevel=4
  • c2=off expands to -XX:+TieredCompilation -XX:TieredStopAtLevel=1
  • c2=auto behaves just like c2=on when max memory is above 300MB, otherwise behaves like c2=off
  • c2=[0|1|2|3|4] expands to -XX:+TieredCompilation -XX:TieredStopAtLevel=<n> , where n is the level number supplied via the parameter

support classpath and mainclass discovery

Currently jstart only do jvm option expanding automatically, classpath(-cp) and main class name should be specified explicitely.

For example, jstart -cp server.jar com.leyantech.example.ServiceMain or jstart -jar server.jar is required to start the example java service.

With the support of classpath/main class auto discovery, the above command could be simplified to jstart.

Following is some classpath/main class rules suitable for java applications in docker containers:

  1. shade jar-find the jar file with largest size in the current working dir, and expand java command with -jar <jar-found>.jar
  2. lib dirs: treat a sub directory with jar files as the class path, and expand java command with -cp "libs/*"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.