- This topic has 6 replies, 2 voices, and was last updated 19 years ago by
Brad.
-
AuthorPosts
-
BradMemberI’ve been running into Out Of Memory errors lately and I checked this forum and someone said to add ‘-Xms128m -Xmx512m -XX:PermSize=64M -XX:MaxPermSize=128M’ to the ‘Optional Java JVM Arguments’ section of the JBoss JDK section.
I did this and restarted and checked the logs and nowhere did it show any increase in memory. If I add similar to the run.bat in JBoss/bin and start it from the command I do see this increase in memory.
Am I adding it to the correct location? Where else could I check to make sure that there indeed is an increase in memory allocated to JBoss (jboss-4.0.1).
I’m using Build Id: 20060122-4.1-GA
Java 1.4.2_10Thanks for any help
Riyad KallaMemberJust to clarify, is JBoss running out of memory, or is Eclipse running out of memory?
BradMemberJBoss is running out of memory. I’m trying to figure out how, through the MyEclipse JBoss setup, I can increase the amount of memory allocated to JBoss when I start the instance of JBoss through MyEclipse.
Riyad KallaMemberJust to clarify, when you do use the string above (without quotes) in your first post in the Optional VM Arguments and run JBoss, it still runs out of memory, or you just don’t see a change in task manager so you assumed it wasn’t working?
BradMemberI don’t see the change in task manager. If I increase the memory in the JBoss’ bin/run.bat it shows the increase when I start the server.
I was just looking for something to show me. I have still run out of memory after adding the arguments.
Riyad KallaMemberWhen you specify the arguments, are you making sure to do it 1 per line?
-Xms128m
-Xmx512m
-XX:PermSize=64M
-XX:MaxPermSize=128M
BradMemberI had it all on one line. I don’t know if switching it to multiple lines was the solution or not but I am now able to run my application without running out of memory for JBoss.
Thanks.
-
AuthorPosts