Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Get JVM Flags?

  1. #1
    Member
    Join Date
    Feb 2013
    Posts
    78
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Get JVM Flags?

    Is there any way to get all the command-line flags for the JVM in my code? I.e. the -XX: flags as well as -server/-client ?
    If so, how?


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: Get JVM Flags?

    Welcome to the forum! Please read this topic to learn how to post code in code or highlight tags and other useful info for new members.

    What did you find when you searched the 'net?

  3. #3
    Member
    Join Date
    Feb 2013
    Posts
    78
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Get JVM Flags?

    I did get this:
    ManagementFactory.getRuntimeMXBean()
    I got that after posting this however.

    You can consider my question answered.

Similar Threads

  1. Getting a 64 bit jvm to work
    By Midwinter in forum Java Theory & Questions
    Replies: 5
    Last Post: June 20th, 2014, 03:48 AM
  2. how to install the JVM?
    By warnexus in forum Java IDEs
    Replies: 3
    Last Post: September 1st, 2011, 10:33 AM
  3. does anyone know assembly code for JVM?
    By javapenguin in forum Other Programming Languages
    Replies: 2
    Last Post: April 6th, 2011, 02:16 AM
  4. JVM Generations
    By Hema26 in forum Java Theory & Questions
    Replies: 1
    Last Post: June 17th, 2010, 08:41 AM