Git Product home page Git Product logo

simple-countdown's Introduction

这是一个非常简单的倒计时服务,但项目使用了较为完整的组织结构,加入了全局异常处理和日志管理等功能,可谓麻雀虽小五脏俱全。后期也可能会加入更多新的功能。

另外,本项目基于Java21+Graalvm开发,支持编译为本地二进制文件,由于不支持交叉编译,我采用Docker容器方式为目标平台进行编译,比如创建一个centos7的容器,在容器中进行编译,容器的构建代码如下:

centos7

opencloudos

opencloudos是腾讯云研发的操作系统,与centos8兼容,在腾讯云启动服务器时官方推荐使用,

不推荐centos7的原因是它已经停止维护了。

image-20240513111838882

上面是分别采用SerialGC和G1GC的测试结果,在内存使用上,G1GC初始内存占用高于SerialGC大约1/3,在面对大流量的时候,G1GC有着更稳定的内存占用,维持在280M,而SerialGC会达到400M,这个内存占用状态会在请求都结束后保存一段时间,所以并发较高(200以上)时最好采用G1GC,内存消耗更少,用户量少时SerialGC可以带来更低的内存占用。

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.