• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

chubaostream / journalkeeper / 83
64%

Build:
DEFAULT BRANCH: master
Ran 21 Apr 2020 05:15AM UTC
Jobs 1
Files 276
Run time 22s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
83

push

travis-ci-com

liyue2008
# 系统参数-Dmemory_cache.max_memory支持设置为百分比,

比如:-Dmemory_cache.max_memory=90%。

修改后,用于缓存的最大堆外内存取值如下:

1. 如果memory_cache.max_memory设置为整数,直接使用设置值。
2. 如果memory_cache.max_memory设置为百分比,比如:90%,最大堆外内存 = 物理内存 * 90% - 最大堆内存(由JVM参数-Xmx配置)
3. 如果memory_cache.max_memory未设置或者设置了非法值,最大堆外内存 = VM.maxDirectMemory() * 90%。其中VM.maxDirectMemory()取值为JVM参数-XX:MaxDirectMemorySize,如果未设置-XX:MaxDirectMemorySize,取值为JVM参数-Xmx。

验证方法:

系统启动后会打印日志:

JournalKeeper PreloadBufferPool loaded, max direct memory: 10.8 GB, core direct memory: 8.7 GB, evict direct memory: 9.8 GB.

其中Max direct memory即为设置的最大堆外内存。

# Journal文件写完后,会调用fsync强制刷盘,避免系统宕机导致文件不连续,下次启动无法恢复的问题。

5548 of 8639 relevant lines covered (64.22%)

0.64 hits per line

Jobs
ID Job ID Ran Files Coverage
1 83.1 21 Apr 2020 05:15AM UTC 0
64.22
Travis Job 83.1
Source Files on build 83
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #83
  • f326128e on github
  • Prev Build on master (#84)
  • Next Build on master (#85)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc