Java help!

Discussion in 'Mac Basics and Help' started by ipodwarrior, Dec 8, 2007.

  1. ipodwarrior macrumors newbie

    Joined:
    Nov 14, 2007
    #1
    Is there a way to speed up java applications when there running slow? Without completely reinstalling java?

    I have a imac g5, 512 mb with 1.9 Ghz.
     
  2. pilotError macrumors 68020

    pilotError

    Joined:
    Apr 12, 2006
    Location:
    Long Island
    #2
    I guess you need to figure out why its running slow...

    You could play with some of the java command line options (memory and such), but with that configuration, I'm not sure how much you'll benefit from it.

    ie java -Xms256M -Xmx256M

    The first is for Minimum Heap size (256MB) the second is for Maximum Heap size (256MB). These are typically the same size. Since Max is allocated at startup.

    Another is -Xss (virtual memory allocated for the stack size of each java thread).

    I would only play with the Xms and Xmx parameters initially.

    There's a bunch of others, but you need to figure where your problem lies. Is it disk i/o or memory or...

    You can always google "java tuning" and get more tips.
     
  3. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #3
    I've found -XX:+UseConcMarkSweepGC to make server apps much faster...
     

Share This Page