不是什么WEB服务器,就是自己写的一个爬虫程序,用Jprofiler检测貌似没有内存泄露,我设置的参数是-Xms256m -Xmx256m
WINDOWS VISTA操作系统,内存2G,用的MyEclipse6.0# An unexpected error has been detected by Java Runtime Environment:
#
# java.lang.OutOfMemoryError: requested 41943040 bytes for GrET in C:\BUILD_AREA\jdk6\hotspot\src\share\vm\utilities\growableArray.cpp. Out of swap space?
#
# Internal Error (414C4C4F434154494F4E0E494E4C494E450E4850500017), pid=4472, tid=4848
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0-rc-b66 mixed mode)
# An error report file with more information is saved as hs_err_pid4472.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
WINDOWS VISTA操作系统,内存2G,用的MyEclipse6.0# An unexpected error has been detected by Java Runtime Environment:
#
# java.lang.OutOfMemoryError: requested 41943040 bytes for GrET in C:\BUILD_AREA\jdk6\hotspot\src\share\vm\utilities\growableArray.cpp. Out of swap space?
#
# Internal Error (414C4C4F434154494F4E0E494E4C494E450E4850500017), pid=4472, tid=4848
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0-rc-b66 mixed mode)
# An error report file with more information is saved as hs_err_pid4472.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
不过同LS,问甘草哪来的pagefile.sys字段
在我的电脑,右键,属性,高级里面吧!看看你的虚拟内存是不是太少了!还有,你可以启动jconsole监控一下你的程序的内存使用情况,这个工具是JDK自带的。
重启Eclipse,此方法自感笨拙,但也没有找出更好的方法.