修改eclipse.ini文件
-vmargs
-Xms40m
-Xmx512m
====================================================================
Tomcat内存不足的情况,解决的方式是进入Tomcat文件夹bin中,
找到catalina.bat编辑,在:donesetargs后面增加set JAVA_OPTS = -Xms64 - Xms128
好象默认是32-64的吧,该为64-128应该够用了
====================================================================
Jboss内存不足的情况,
D:\xujin\jboss4.0.3\jboss-4.0.3SP1\bin\run.conf
JAVA_OPTS="-server -Xms256m -Xmx256m"
====================================================================
11:03:41,678 ERROR [[action]] Servlet.service() for servlet action threw exception
java.lang.OutOfMemoryError
====================================================================
After i changed these,It's still take a error like above.
It seems useless.
====================================================================
So, i changed run.bat, as follows:
D:\xujin\jboss4.0.3\jboss-4.0.3SP1\bin\run.bat
set JAVA_OPTS=%JAVA_OPTS% -Xms256m -Xmx512m
It's still useless.
====================================================================
最近在用eclipse的时候,过上一会老弹出一个对话框,提示内存不足(大意),找了好多资料都没有解决,最近在eclipse的官方网站上找到了其解决的办法,希望对像我一样的朋友有帮助,解决方法如下,
在桌面上建一个启动eclipse的快捷方式,在该快捷方式上单击右键,在常规标签的目标中加入下面的内容:
E:\eclipse\eclipse.exe -clean -vmargs -Xms128M -Xmx512M -XX:PermSize=64M -XX:MaxPermSize=128M,其中“E:\eclipse\eclipse.exe” 是我eclipse的路径。
====================================================================
Changed this,It's still useless
====================================================================
采用远程Jboss调试方式。
参考:http://java.chinaitlab.com/Eclipse/36364.html
[技术分享 配置Eclipse进行远程调试二]
文章写的不够清楚。中国人做事太主观,自以为是。
====================================================================
Failed to connect to remote VM. Connection refused
====================================================================
finally solution is
somebody has installed a jboss plugin for eclipse3.1 of my computer
as follows
http://olA.photo.qq.com/?file=F09E13402E4CDFAD994E7728E0C71A79BB114826B2FB908C8067EF2DED0EF0F3
next step is create a new jboss debug
as follows
[img]http://jiaoxujin.iteye.com/upload/picture/pic/11861/48f0635a-916d-3df4-b8b8-501c1c4f75b3.jpg[/img]
after configed these, you can click the [debug] button, then will start jboss server
in eclipse.
uses this solution for a test,I'm never faced the java.lang.outOfMemory error again.
====================================================================
[img]http://jiaoxujin.iteye.com/upload/picture/pic/11863/1cd65f19-58b9-3535-897c-687028e0ee44.jpg[/img]
The plug-in is named: [JBossIDE 1.5 Milestone 2]
download link: [url]http://sourceforge.net/project/showfiles.php?group_id=22866&package_id=72248[/url]
====================================================================
最后的正确解决方法在这里:
[img]http://jiaoxujin.iteye.com/upload/picture/pic/11865/9bff4b0f-7cc6-3e6b-b660-4ee01a876231.jpg[/img]
-Xms128m -Xmx512m -XX:PermSize=64M -XX:MaxPermSize=128M
应该在eclipse里设置 JBOSS的启动属性.
网上那帮废物,就知道设置环境变量,eclipse的启动快捷方式里加属性,还有改JBOSS的文件里的设置.
有个P用呀,还且千篇一律的抄来抄去.
求人不如靠自己.
-vmargs
-Xms40m
-Xmx512m
====================================================================
Tomcat内存不足的情况,解决的方式是进入Tomcat文件夹bin中,
找到catalina.bat编辑,在:donesetargs后面增加set JAVA_OPTS = -Xms64 - Xms128
好象默认是32-64的吧,该为64-128应该够用了
====================================================================
Jboss内存不足的情况,
D:\xujin\jboss4.0.3\jboss-4.0.3SP1\bin\run.conf
JAVA_OPTS="-server -Xms256m -Xmx256m"
====================================================================
11:03:41,678 ERROR [[action]] Servlet.service() for servlet action threw exception
java.lang.OutOfMemoryError
====================================================================
After i changed these,It's still take a error like above.
It seems useless.
====================================================================
So, i changed run.bat, as follows:
D:\xujin\jboss4.0.3\jboss-4.0.3SP1\bin\run.bat
set JAVA_OPTS=%JAVA_OPTS% -Xms256m -Xmx512m
It's still useless.
====================================================================
最近在用eclipse的时候,过上一会老弹出一个对话框,提示内存不足(大意),找了好多资料都没有解决,最近在eclipse的官方网站上找到了其解决的办法,希望对像我一样的朋友有帮助,解决方法如下,
在桌面上建一个启动eclipse的快捷方式,在该快捷方式上单击右键,在常规标签的目标中加入下面的内容:
E:\eclipse\eclipse.exe -clean -vmargs -Xms128M -Xmx512M -XX:PermSize=64M -XX:MaxPermSize=128M,其中“E:\eclipse\eclipse.exe” 是我eclipse的路径。
====================================================================
Changed this,It's still useless
====================================================================
采用远程Jboss调试方式。
参考:http://java.chinaitlab.com/Eclipse/36364.html
[技术分享 配置Eclipse进行远程调试二]
文章写的不够清楚。中国人做事太主观,自以为是。
====================================================================
Failed to connect to remote VM. Connection refused
====================================================================
finally solution is
somebody has installed a jboss plugin for eclipse3.1 of my computer
as follows
http://olA.photo.qq.com/?file=F09E13402E4CDFAD994E7728E0C71A79BB114826B2FB908C8067EF2DED0EF0F3
next step is create a new jboss debug
as follows
[img]http://jiaoxujin.iteye.com/upload/picture/pic/11861/48f0635a-916d-3df4-b8b8-501c1c4f75b3.jpg[/img]
after configed these, you can click the [debug] button, then will start jboss server
in eclipse.
uses this solution for a test,I'm never faced the java.lang.outOfMemory error again.
====================================================================
[img]http://jiaoxujin.iteye.com/upload/picture/pic/11863/1cd65f19-58b9-3535-897c-687028e0ee44.jpg[/img]
The plug-in is named: [JBossIDE 1.5 Milestone 2]
download link: [url]http://sourceforge.net/project/showfiles.php?group_id=22866&package_id=72248[/url]
====================================================================
最后的正确解决方法在这里:
[img]http://jiaoxujin.iteye.com/upload/picture/pic/11865/9bff4b0f-7cc6-3e6b-b660-4ee01a876231.jpg[/img]
-Xms128m -Xmx512m -XX:PermSize=64M -XX:MaxPermSize=128M
应该在eclipse里设置 JBOSS的启动属性.
网上那帮废物,就知道设置环境变量,eclipse的启动快捷方式里加属性,还有改JBOSS的文件里的设置.
有个P用呀,还且千篇一律的抄来抄去.
求人不如靠自己.