Search code examples
javaweblogicprofileryourkit

Difficulty locating the objects in application mentioned in Java Profiler


I am using YourKit Java profiler for my web application which is hosted on Weblogic. I am investigating a memory leak currently. The profiler shows some quarter million char[] objects that are occupying 25% memory.

I tried looking into my application as to where these char[] objects are created. Surprisingly, I didn't find any. Am I doing something wrong here? Is Weblogic internally creating these Array objects?

How do I locate in my application the exact piece of code that is creating these objects? Thanks.

Regards, Siddharth


Solution

  • Most probably these character arrays form the internal part of a java.lang.String. You should ask your profiler to give you an overview of the strings that are currently in memory and whether there are many duplicates.