Topic: 总不能让用户去设置运行参数“-mxx250m”吧,是不?

  Print this page

1.总不能让用户去设置运行参数“-mxx250m”吧,是不? Copy to clipboard
Posted by: 肩膀上的阳光
Posted on: 2006-08-10 11:56

我的Applet有时什么出现
java.lang.OutOfMemoryError: Java heap space
这样的异常,特别在做打印的时候
加大JRE的内存就没事了
但总不能让用户去设置这个参数呀,是不,那怎么办呢?我以把程序优化了尽量少占资源。

怎么办呢?

2.Re:总不能让用户去设置运行参数“-mxx250m”吧,是不? [Re: 肩膀上的阳光] Copy to clipboard
Posted by: ranchgirl
Posted on: 2006-08-13 06:23

Are you really using Applet to develop software for your client???

You need to talk with your boss, almost nobody does that any more.

The only meaningful and useful Applets are mostly teaching/demo software used by teachers and trainers.

Applets are not dead for this very reason...

3.Re:总不能让用户去设置运行参数“-mxx250m”吧,是不? [Re: 肩膀上的阳光] Copy to clipboard
Posted by: JiafanZhou
Posted on: 2006-09-06 22:18

There is no way to set up the -mxx250m in the browser in my opinion....try to profile your applet so as not to use too much memory space, would be the best choice..

Regards,
Jiafan

4.Re:总不能让用户去设置运行参数“-mxx250m”吧,是不? [Re: 肩膀上的阳光] Copy to clipboard
Posted by: 肩膀上的阳光
Posted on: 2006-09-07 10:43

Thanks!

Ihave reduced the memory usage and it runs well. But I come into another problem.
please have a look this link below:
http://www.cjsdn.net/post/view?bid=6&id=181327&sty=1&tpg=1&age=0


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923