您的位置:首页 > 编程语言 > Java开发

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space

2009-12-03 22:14 1121 查看
This can have two reasons:
Your Java application has a memory leak. There are tools like YourKit Java Profiler that help you to identify such leaks.
Your Java application really needs a lot of memory (more than 128 MB by default!). In this case the Java heap size can be increased using the following runtime parameters:
java -Xms -Xmx


Defaults are:

java -Xms32m -Xmx128m


You can set this either in the Java Control Panel or on the command line, depending on the environment you run your application.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐