Ubuntu auto binding of tasks

Discussion in 'General Help' started by miraclecow, Nov 29, 2014.

Thread Status:
Not open for further replies.
  1. Offline


    Just curious if anyone knows a way to automatically bind my cauldron server.jar to cores "7,6,5,4" by editing my start-up script (or possibly another way?)

    My current start-up script:

    1. java -Xms2048m -Xmx3072m -XX:PermSize=512m -XX:NewRatio=3 -XX:SurvivorRatio=3 -XX:TargetSurvivorRatio=80 -XX:MaxTenuringThreshold=8 -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:MaxGCPauseMillis=10 -XX:GCPauseIntervalMillis=50 -XX:MaxGCMinorPauseMillis=7 -XX:+ExplicitGCInvokesConcurrent -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=60 -XX:+BindGCTaskThreadsToCPUs -Xnoclassgc -jar cauldron-1.6.4-1.965.21.204-server.jar nogui
    2. #1024
    3. #2048
    4. #3072
    5. #4096
    6. #5120

    i can manually do this with:

    taskset -p "PID" "cpu cores"
    and i'd find the PID with "top"

    if anyone knows how, would be awesome :)
  2. Offline


    This is a third-party application..
  3. Offline


    doesn't matter, it's the same principle just a different jar file, everything else will be done the same.

    edit:The jar file could even be excluded entirely out of question I'm looking for help with the start-up script, if this is even possible.
Thread Status:
Not open for further replies.

Share This Page