facebook

[Closed] Increase JBoss memory

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #246360 Reply

    Brad
    Member

    I’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_10

    Thanks for any help

    #246371 Reply

    Riyad Kalla
    Member

    Just to clarify, is JBoss running out of memory, or is Eclipse running out of memory?

    #246381 Reply

    Brad
    Member

    JBoss 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.

    #246388 Reply

    Riyad Kalla
    Member

    Just 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?

    #246395 Reply

    Brad
    Member

    I 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.

    #246456 Reply

    Riyad Kalla
    Member

    When you specify the arguments, are you making sure to do it 1 per line?
    -Xms128m
    -Xmx512m
    -XX:PermSize=64M
    -XX:MaxPermSize=128M

    #246457 Reply

    Brad
    Member

    I 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.

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: [Closed] Increase JBoss memory

You must be logged in to post in the forum log in