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 2 of 2

Thread: Java 8 Heap is LOWER with instrumentation?

  1. #1
    Junior Member
    Join Date
    Sep 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Java 8 Heap is LOWER with instrumentation?

    Hi,

    I have the following problem. I run Tomcat 8 with Oracle Java 8 and put it under some HTTP load (JMeter). Then I run the same configuration, same load and everything, but start Tomcat with -javaagent: and my instrumentation agent. In both cases I gather java stats with jstat in 1 second intervals. I calculate Java Heap as S0U+S1U+EU+OU. The first run (42 minutes load) shows me an average 780.84 MB (min 96.11 MB, max 1516.21 MB), the second run 600.60 MB (min 93.48 MB, max 1301.75 MB).

    Is it possible that an instrumented code needs less memory, or am I reading the metrics wrong / am I missing something?

    If I run the same scenario on Weblogic + Java 6, everything works as expected (instrumented code uses more memory).

    Thank you for your help.


  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: Java 8 Heap is LOWER with instrumentation?

    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.

    I don't see what anyone can do to help you. You are seeing the results of a test in a unique environment that no one else here can see, verify, prove or disprove. Make your observations, draw your conclusions, and move on.

Similar Threads

  1. How to Use Instrumentation API
    By arvindbis in forum What's Wrong With My Code?
    Replies: 5
    Last Post: September 26th, 2014, 08:40 AM
  2. jdbc instrumentation using 'asm' byte code manipulation framework
    By Rashmi123456 in forum What's Wrong With My Code?
    Replies: 0
    Last Post: September 25th, 2013, 09:58 AM
  3. how to search for upper/lower case using string using JAVA!!!?
    By eortiz10 in forum What's Wrong With My Code?
    Replies: 3
    Last Post: September 25th, 2013, 06:56 AM
  4. Bytecode Instrumentation
    By rohitdhall07 in forum Java Theory & Questions
    Replies: 2
    Last Post: July 28th, 2011, 10:22 AM
  5. AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
    By nasi in forum What's Wrong With My Code?
    Replies: 6
    Last Post: March 25th, 2010, 10:37 PM