Results 1 to 8 of 8

Thread: MaxPermSize

  1. #1
    Join Date
    Feb 2012
    Posts
    1,409

    MaxPermSize

    Hi,

    Does anyone know how I'd go about editing the MaxPermSize and PermGen memory in CentOS 5? I've been looking into this for weeks and can't seem to find a suitable solution

    Any help is appreciated

  2. #2
    Join Date
    Sep 2006
    Location
    Cardiff - United Kingdom
    Posts
    1,568
    As in, the JVM options? If so, are you running an app and calling "java ..." directly? Or is this through Tomcat?

  3. #3
    Join Date
    Feb 2012
    Posts
    1,409
    Quote Originally Posted by Tristan Perry View Post
    As in, the JVM options? If so, are you running an app and calling "java ..." directly? Or is this through Tomcat?
    Correct. We're running Java directly.

  4. #4
    Join Date
    Sep 2006
    Location
    Cardiff - United Kingdom
    Posts
    1,568
    I've always found that something like:

    Code:
    java [...] -XX:PermSize=256m -XX:MaxPermSize=1024m [...]
    works okay on any OS.

  5. #5
    Join Date
    Feb 2012
    Posts
    1,409
    Quote Originally Posted by Tristan Perry View Post
    I've always found that something like:

    Code:
    java [...] -XX:PermSize=256m -XX:MaxPermSize=1024m [...]
    works okay on any OS.
    Any idea what the [...] should be replaced with? This is what I've been struggling to find out

  6. #6
    Join Date
    Sep 2006
    Location
    Cardiff - United Kingdom
    Posts
    1,568
    Any other JVM arguments.

    So

    Code:
    -cp "Lib1.jar;folder/Lib2.jar"
    To specify the classpath.

    Code:
    -jar Main.jar
    To run a JAR file.

    What exactly are you trying to run? Is it a web application, a class file, a JAR file etc?

  7. #7
    Join Date
    Feb 2012
    Posts
    1,409
    Quote Originally Posted by Tristan Perry View Post
    Any other JVM arguments.

    So

    Code:
    -cp "Lib1.jar;folder/Lib2.jar"
    To specify the classpath.

    Code:
    -jar Main.jar
    To run a JAR file.

    What exactly are you trying to run? Is it a web application, a class file, a JAR file etc?
    This is for a Minecraft node, so multiple servers are running off of it through Multicraft. So we preferably need to increase this limit in the main Java files so that it's applied to all the servers.

  8. #8
    Join Date
    Nov 2000
    Location
    localhost
    Posts
    3,510
    Criot,

    You said you're running the command directly. So when you ask "Any idea what the [...] should be replaced with? This is what I've been struggling to find out" you should already have the classpath and other bits? If not, please explain how you launch minecraft and then we can assist. I seriously doubt you can set the jvm permgen settings at runtime.

    If you're using script to launch as is common (such via upstart) you'll often find a JAVA_OPTS enviornment variable that you can set.
    MattF - Since the start..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •