Coder Social home page Coder Social logo

netty-native-image's Introduction

Introduction

An example netty based http server, that can be compiled to a native binary image using graalvm's native-image.

Quickstart

  1. Download GraalVM and extract it to somewhere. Then set the JAVA_HOME environment variable to the home of it.
  2. Run mvn package on the root directory of this project.
  3. The native image is produced under target directory. So you could run it to start the example server.
  4. Open the link and enjoy it.

Issues

  • When the output server is run, the logging handler should print to console something like the following.

    Jul 18, 2019 2:49:09 PM io.netty.handler.logging.LoggingHandler channelRegistered INFO: [id: 0x45e23bb2] REGISTERED Jul 18, 2019 2:49:09 PM io.netty.handler.logging.LoggingHandler bind INFO: [id: 0x45e23bb2] BIND: 0.0.0.0/0.0.0.0:9000 Server started, will shutdown now. Jul 18, 2019 2:49:09 PM io.netty.handler.logging.LoggingHandler channelActive INFO: [id: 0x45e23bb2, L:/0:0:0:0:0:0:0:0:9000] ACTIVE

    But sometimes the output server image does not log the above output, even though the native-image settings has not changed. Still wonder why.

netty-native-image's People

Contributors

lilac avatar

Watchers

 avatar  avatar

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.