TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

JRE 8 needs more codecache than before

131 点作者 jlward4th超过 8 年前

9 条评论

nn3超过 8 年前
Typical problem of over tuning. Not every tunable needs to be tweaked (or worse cut&#x27;n&#x27;pasted somewhere from the internet). Your street cred as a admin does not depend on how many settings you can change. If they had just kept using the defaults everything would have been fine.<p>That said 250MB is really a lot of code. Their binaries must be gigantic. This by itself likely already causes performance problems because all caches will be thrashing.
评论 #12508005 未加载
评论 #12509194 未加载
otterley超过 8 年前
To the author: It would be useful to put a little blurb paragraph at the top to say that if you haven&#x27;t overridden the default codecache size via JVM options, no action is necessary. This information is buried way down at the bottom of the page, which may lead hurried readers to assume that something may already be wrong with their Java 8 JVMs.
评论 #12509133 未加载
EdSharkey超过 8 年前
Would a good approach to major JVM upgrades in production be to remove all but critical JVM flags in the new version, and run it on a subset of nodes, then?<p>After getting a baseline measurement of performance with JVM defaults, experiment with tuning a couple of settings, measure some more, make sure nothing breaks under load. Repeat until new JVM version seems stable&#x2F;performs better&#x2F;etc even under worst load and then upgrade all nodes to the latest and greatest?
评论 #12509508 未加载
评论 #12507711 未加载
protomyth超过 8 年前
I wonder how many projects have production issues because they are not able to hit expected production volume in a QA environment? This is certainly the cause of a lot of grief I&#x27;ve experienced.
评论 #12507446 未加载
Animats超过 8 年前
How much Java source code does it take to need 256MB of codecache? The author says they&#x27;re using a service architecture where each transaction uses about 20 services. There&#x27;s no indication of why their program is so huge.
评论 #12507103 未加载
评论 #12507328 未加载
osi超过 8 年前
so the unspoken thing seems to be that they kept the same JVM arguments as java 7 and that caused problems in java 8? and they had a JVM argument that was setting a value to the same as the default?
评论 #12507232 未加载
__-X-__超过 8 年前
-XX:-TieredCompilation is the magic option to disable tiered compilation.<p>Beginning with Java 8, instead of having the VM to magically choose between using the client JIT (c1: think V8) or the server JIT (c2: think gcc -O2), the default configuration is to run in so called &quot;tiered mode&quot;, first starts with the interpreter (as usual) then c1 (here keep the profile info) then c2. Because the code is compiled twice, you need a twice bigger code cache.<p>From my own experience, tiered compilation is nice when you run something interactive like an IDE (IntelliJ IDEA) and useless when you run a server app. That&#x27;s said i&#x27;ve never had to have a 250MB code cache.
bobbyi_settv超过 8 年前
If the JVM has one bytecode compiler that it uses only during startup and another that it used the rest of the time, shouldn&#x27;t it dump the bytecode generated by the first compiler from the cache at the point when it switches to the second compiler?
评论 #12508718 未加载
评论 #12507772 未加载
评论 #12507566 未加载
manishsharan超过 8 年前
Yikes ! Can somebody with deep AWS knowledge comment on how this impacts aws lambda (java) and AWS Elastic beanstalk applications? what configuration is recommended?
评论 #12507367 未加载