开发者

BlackBerry OutOfMemoryError

开发者 https://www.devze.com 2023-04-10 17:04 出处:网络
I am getting an OutOfMemoryError.How do I solve this? Error: java.la开发者_StackOverflow中文版ng.OutOfMemoryError: Java heap space

I am getting an OutOfMemoryError. How do I solve this?

Error: java.la开发者_StackOverflow中文版ng.OutOfMemoryError: Java heap space


You need to either increase the available heap space (with the Java -Xmx flag) or use less memory in your application.

I'd recommend that you try to use less memory. There are plenty of good profiling tools out there that you can use to discover where your code uses a lot of memory. It's also worth checking that you are not misusing any HashMaps or ObjectOutputStreams. Those two classes are notorious for soaking up memory if not used properly.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号