Page 3 of 3 FirstFirst 123
Results 21 to 29 of 29

Thread: ClassLoader leak when using jars

  1. #21
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    1. Of course. Try sending the initial report that focused on PLUCL.
    Note, the latest snapshot tries to remedy the CACHE_CLASSES issue - it is being cleared after the Tool is executed. The memory dump should show wether that is indeed the case or not. Note that there might be another leak that we have to patch.

    2. SHDP doesn't load the classes - it creates a custom classloader and gives control to the Tool instance. Hadoop however has to load them (when executing the Tool). If there would be no leaks, the classloader and its classes would go away - however Hadoop 'pins' the classloader internally. Thus it cannot be GC'ed.

    The test that you devised works - keep sending it back and we'll sort out any leaks that we can. Maybe we can't address them all but for sure it will improve performance and it will help identify the bugs in Hadoop which will get sorted out.
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

  2. #22

    Default

    Hi Costin,

    I have deployed the app in another environment and will run several tests against it, will post the results as soon as I am done.


    Sincerely,
    David

  3. #23
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    That's good to know - waiting for your feedback.
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

  4. #24

    Default

    Hi Costin,

    Please find reports from the most recent run.

    https://dl.dropbox.com/u/95015919/08...k_Suspects.zip
    https://dl.dropbox.com/u/95015919/08..._Consumers.zip

    After running several times with the new version I can clearly see that the Perm Gen memory size is still constantly increasing.

    Let me know what do you think.


    Sincerely,
    David

  5. #25
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    Thanks David - the report confirms that there is a leak but again the report doesn't show what pins the classloaders. The suspects report page 30 only indicates that the PUCL is loaded but that's about it - there's no indication of the GC path which is what I need.
    The initial report that you sent (http://forum.springsource.org/showth...446#post420446) had more information on the leak, showing an accumulation path - the following reports don't.

    I'm not familiar with MAT but is there a way to make it display more info about the leak?
    Additionally, could you send me the HPROF file itself? I could manually import into my tools and poke around for more info?

    Thanks!
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

  6. #26
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    One more thing - are you doing the heap dump while executing a custom jar, or right after? I ask since I see a thread still holding a reference to PUCL, which should not happen.
    I've pushed another minor update [1] that you could try - it contains additional logging (make sure "org.springframework.data.hadoop.mapreduce" is on trace level) and patches another JRE leak.

    [1] https://build.springsource.org/brows...OOPNIGHTLY-318
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

  7. #27

    Default

    Hi Costin,

    Tried to do more analysis with MAT, but it didn't show much of detail, however I got a trial license of YourKit analyzer and here are some reports: https://dl.dropbox.com/u/95015919/08...is_Reports.zip
    The heap dump was done after execution of custom jars.

    Please let me know what do you think.


    Sincerely,
    David

  8. #28

    Default

    Note that I have also included Possible_Leaks_Objects_Retained_By_Inner_Class_Bac k_References report in the same archive, which might be useful as well.

  9. #29
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    I know - thanks.
    Sorry for the late reply - see the email I sent you.
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

Posting Permissions

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