Redian新闻
>
请教一个annuity 问题
avatar
请教一个annuity 问题# Actuary - 精算
q*i
1
【 以下文字转载自 Java 讨论区 】
发信人: qqwuweiyi (娓娓), 信区: Java
标 题: java heap space out 问题
发信站: BBS 未名空间站 (Fri May 14 23:50:54 2010, 美东)
每次运行都提示Java:out of memory : heap space
这个问题怎么解决?谢谢
avatar
l*b
2
题目如下:
Your firm decides to begin to fund a retirement pension for a new employee.
The details of the pension plan are as follows:
1. The employee is 30 years old; the pension fund will begin to make annual
payments to the employee 20 years from the date when funding for the pension
begins.
2. When payments begin, the employee will receive quarterly payment for 15
years.
The first quarterly payment will be $ 20,000, and each succeeding payment
will grow by 2.5% (annual rate 10%).
3. Money paid in
avatar
d*d
3
using -Xmx
for example: -Xmx10g

【在 q*******i 的大作中提到】
: 【 以下文字转载自 Java 讨论区 】
: 发信人: qqwuweiyi (娓娓), 信区: Java
: 标 题: java heap space out 问题
: 发信站: BBS 未名空间站 (Fri May 14 23:50:54 2010, 美东)
: 每次运行都提示Java:out of memory : heap space
: 这个问题怎么解决?谢谢

avatar
q*i
4
我的内存就2G,也可以这样设置吗?会开辟硬盘做虚拟内存?

【在 d**********d 的大作中提到】
: using -Xmx
: for example: -Xmx10g

avatar
q*i
5
我内存2G,-Xmx只能设置1.5G(对程序来说还是不够),之后eclips就要报错,想问下
有没有办法能开辟更多的空间能使得Java能利用硬盘虚拟内存。谢谢

【在 d**********d 的大作中提到】
: using -Xmx
: for example: -Xmx10g

avatar
d*d
6
基本不能了。设计了一个外存算法把

【在 q*******i 的大作中提到】
: 我内存2G,-Xmx只能设置1.5G(对程序来说还是不够),之后eclips就要报错,想问下
: 有没有办法能开辟更多的空间能使得Java能利用硬盘虚拟内存。谢谢

avatar
N*D
7
换机子

【在 q*******i 的大作中提到】
: 我内存2G,-Xmx只能设置1.5G(对程序来说还是不够),之后eclips就要报错,想问下
: 有没有办法能开辟更多的空间能使得Java能利用硬盘虚拟内存。谢谢

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。