V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  sun1992  ›  全部回复第 2 页 / 共 2 页
回复总数  35
1  2  
2019-01-03 20:18:25 +08:00
回复了 sun1992 创建的主题 程序员 Spring 中互为别名的作用是啥?@AliasFor
@jakes 嗯 你这个有一定道理,简写的确方便一点。还有其他好处吗?
2019-01-03 20:15:23 +08:00
回复了 sun1992 创建的主题 程序员 Spring 中互为别名的作用是啥?@AliasFor
@werty “ Java 注解必须要有 value ” ,没有这个说法吧,没有 value 也是可以正常运行的
刚好要转租,温馨人家,江陵路滨和路地铁附近,1750,有意联系~
2017-11-10 11:26:33 +08:00
回复了 sun1992 创建的主题 程序员 jvm eden space 为什么会为 0K
这个是 jdk7u40 版本左右开始的 bug,jdk8 中已经修复

http://www.oracle.com/technetwork/java/javase/7u40-relnotes-2004172.html
jdk7u40 的 Update Release Notes 中有这个问题说明

````
Area: hotspot/gc
Synopsis: New minimum young generation size is not properly checked by the JVM.

In JDK 7u40, the minimum size of the young generation for the parallel garbage collector was increased from 192 KB to 768 KB in a 32-bit JVM, and to 1536 KB in a 64-bit JVM. This new minimum size is not properly checked by the JVM. If a young generation size that is smaller than the new minimum is specified on the command line, it can result in either a crash or degraded performance.

The young generation size is set by the options -XX:NewSize= and -XX:MaxNewSize=, or by the option -Xmn (the latter option is equivalent to setting both NewSize and MaxNewSize to ). If the above options are not used, then the young generation size is computed as a fraction of the maximum heap size.

Workaround: Use a young generation size that is at least 768 KB (for 32-bit JVM) or 1536 KB (for 64-bit JVM).
````
2017-11-09 09:58:04 +08:00
回复了 sun1992 创建的主题 程序员 jvm eden space 为什么会为 0K
详细参数
-XX:InitialHeapSize=20971520 -XX:MaxHeapSize=20971520 -XX:MaxNewSize=1048576 -XX:NewSize=1048576 -XX:+PrintCommandLineFlags -XX:+PrintGCDetails -XX:SurvivorRatio=2 -XX:+UseCompressedOops -XX:+UseParallelGC
2017-05-25 23:04:30 +08:00
回复了 Andor_Chen 创建的主题 Python 送几本《流畅的 Python 》
万一中了呢
2015-10-26 08:47:11 +08:00
回复了 sun1992 创建的主题 问与答 多线程或者分布在多台物理机上的程序一般如何调试?
嗯,除了日志还有其他的方法吗?另外,自己做一个基于日志的分布式调试工具难度有多大?
1  2  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5719 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 27ms · UTC 08:59 · PVG 16:59 · LAX 01:59 · JFK 04:59
Developed with CodeLauncher
♥ Do have faith in what you're doing.