This topic has been archived. It cannot be replied.
工作学习 / IT杂谈 / help! could anybody know how to increase heap size when you start Java applicaton? (like java -Xmx<size>)
-guest:madaha;
2001-8-10{124}(#162228@0)
the default initial and maximum heap sizes are 1048576 and 67108864 bytes.
I don't know how to increase that.
help!!!
Java stand application or web application run on some application server?why you do that?
-macsym(日进斗斤);
2001-8-10(#162245@0)
I need a program to keep updating data into DB. but when it's over 2000 cycles. it throws a exception below:
-guest:madaha;
2001-8-10{197}(#162320@0)
java.lang.OutOfMemoryError [JMX RMI Adaptor] <<no stack trace available>>
i was told to increase the Mem size when you run the application. but i don't know how.
thanks for your reply.
you can read this article. url is below. explain how to manage memory.
But In my opinion. this is a design problem, not a memory problem.
-macsym(日进斗斤);
2001-8-10(#162327@0)
thank you
-guest:madaha;
2001-8-10(#162337@0)
Does your program work well?
-macsym(日进斗斤);
2001-8-10(#162350@0)
your information is very helpful. thanks. but I did not get chance to test it. will let's you know when i finish testing.
-guest:madaha;
2001-8-10(#162364@0)
To all DX. my program is working now. sometimes i think java garbage collection does not work effectively.
-guest:madaha;
2001-8-14(#166604@0)
Java gc has minor problem if you are not careful while using 'collection'. You have to make sure no references are being held when you expect java gc to work.
-flyer99(flyer99);
2001-8-19(#172706@0)
classic memory leak problem
-bigdesk(NightLight);
2001-8-10(#162372@0)
any tips to avoid that error.
-guest:madaha;
2001-8-10(#162758@0)
need more infomation and thinking. im new at java
-bigdesk(NightLight);
2001-8-11(#163185@0)
try this way: java -Xms128m -Xmx128m .......
-youngmind(jordan);
2001-8-18(#172016@0)