Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
年轻代的初始大小应该是多少?-XX:+NewRatio 应该是多少?-XX:+生存率?perm 和 old generation 的比例应该是多少?
每个应用程序都是不同的。最好的办法是自己测量!
创建一个贯穿应用程序典型用例的自动化测试用例。从创建生成大小的随机排列的 shell 脚本中调用它,确保跟踪它运行了多长时间time。保持最快的 10 个并在按下 ctrl+c 时输出它们。
time
让脚本在一夜之间运行。
你会在早上得到你的答案=)