百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
J

jubilee

> 编程语言
开源

基于 vert.x 构建的机架服务器

326 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

基于 vert.x 构建的机架服务器

Jubilee server

A rack application compatible http server built on Vertx3. Check out the demo application.

Why another rack server?

"Vert.x is a lightweight, high performance application platform for the JVM that's designed for modern mobile, web, and enterprise applications." - vertx.io site

By using Vertx, jubilee inherent advantages in terms of performance, and all the other cool features of Vertx:

  • EventBus
  • SharedData
  • Clustering

Get started

Make sure you have JDK 8 and jruby 1.7.20+ installed.

bash
bundle && bundle exec rake install

This is the development branch of jubilee, it uses the vertx 3.0 for a working version, please check out the 2.x branch.

Rails

Under the default setup, jubilee runs 4 instances of web servers, each with it's own jruby runtime, if you find that jubilee crashes or hangs with OutOfMemeoryError, please tune your JVM OPTS like this:

$ export JAVA_OPTS="-Xms1024m -Xmx2048m -XX:PermSize=512m -XX:MaxPermSize=512m"

If your OS memory is quite limited, please run jubilee with

$ jubilee -n 1

Event Bus

Event Bus is a pub/sub mechanism, it can be used from server to server, server to client and client to client, with the same API! You can use it to build living real time web application.

Examples

Assume necessary javascript files are loaded in the page (they can be found here), start jubilee in a rack application with:

$ jubilee --eventbus eventbus

In one browser:

javascript
var eb = new vertx.EventBus("/eventbus");
eb.registerHandler("test", function(data){
  console.info(data);
});

In another:

javascript
var eb = new vertx.EventBus("/eventbus");
eb.send("test", "hello, world");

In the previous tab it should print the greetings you just sent.

For more advanced examples, please checkout the chatapp.

Performance Tuning

If you're creating a lot of connections to a Jubilee(Vert.x) server in a short period of time, e.g. benchmarking with tools like wrk, you may need to tweak some settings in order to avoid the TCP accept queue getting full. This can result in connections being refused or packets being dropped during the handshake which can then cause the client to retry.

A classic symptom of this is if you see long connection times just over 3000ms at your client.

How to tune this is operating system specific but in Linux you need to increase a couple of settings in the TCP / Net config (10000 is an arbitrarily large number)

bash
sudo sysctl -w net.core.somaxconn=10000
sudo sysctl -w net.ipv4.tcp_max_syn_backlog=10000

For other operating systems, please consult your operating system documentation.

Contributing

All kinds of contributions are welcome.

File an issue here if you encounter any problems. Or if you prefer to fix by yourself:

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

See LICENSE.txt

Acknowledgment

YourKit is kindly supporting Jubilee Server with its full-featured Java Profiler. YourKit, LLC is the creator of innovative and intelligent tools for profiling Java and .NET applications. Take a look at YourKit's leading software products: YourKit Java Profiler and YourKit .NET Profiler.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Ruby

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言