Home Forums OS X Server and Client Discussion Questions and Answers Set memory for Tomcat/JBOSS

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #361730
    wallyg
    Participant

    I’m running DSpace on Mac OS X Server (10.4) and wonder where I might be able to adjust the amount of memory java uses. I know about JAVA_OPTS= but can’t find the place to make that modification in Tiger (or Panther for that matter). I have no idea what the default is but want to bump it up to something like 512MB. If I were running java from the command line, I’d enter:
    java -Xmx512m -Xms64M
    but where can I put values like that for JBOSS/Tomcat? Or is it necessary? Any advice would be appreciated.

    #361786
    wallyg
    Participant

    found the answer…just coming back here to close the loop in case it comes up again for another user.

    To increase memory for JBOSS, modify run.conf
    (/Library/JBOSS/3.2/bin/run.conf) and change the Xmx100 to whatever (e.g., Xmx256M)

    #
    # The Java VM to use. 1.4.2 or higher
    #
    JAVA=/usr/bin/java

    #
    # Specify options to pass to the Java VM.
    #
    # Don’t change the JBoss temp.dir setting
    JAVA_OPTS="-server -Xmx100M $JAVA_OPTS -Djboss.server.temp.dir=$JBOSSTMPDIR"

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Comments are closed