Maybe this helps?

SER10-J

https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?pageId=88487787

On Sat, Nov 24, 2018, 04:41 Owen Thomas <owen.paul.tho...@gmail.com wrote:

> The profiler appears to work when I select the view display only objects
> of the single class I'm interested in.
>
> Summarily, my application is composed of about 600 source files. About 80%
> code for exceptions; ~130 files code for the application logic itself. It
> is written entirely in Java SE. The running instance being profiled
> communicates with another instance of the same application. The two
> instances exchange serialised objects called transmitters. Transmitters are
> swapped between instances about every 88 milliseconds; two transmitters
> (one created and the other de-serialised) come into existence at a rate of
> about 11 hertz. The transmitters, once created and exchanged, have no
> further use and should be destroyed. They are not, and the two running
> instances can consume all available physical memory if left running for
> long enough.
>
> If you can make a program do something like that, you might be able to
> replicate the problem I have been having with the profiler. I may even have
> pointed you to some problem with my use of the profiler in what I've
> disclosed above. Let me know you suspect that this may have happened.
>
> I know I could perhaps be more helpful, but I don't want to jump down a
> rabbit hole trying to debug a profiler when what I want to do is to find
> out why my application is leaking memory. Additionally, my code is
> proprietary, and I'm certainly not about to hand out working copies to play
> with. I'm sure you understand, and I'm sorry I can't offer anything better
> than this. NetBeans has been good to me, and so I hope this is of some help
> for the community in some way.
>
>
> On Sat, 24 Nov 2018 at 20:34, Geertjan Wielenga
> <geertjan.wiele...@googlemail.com.invalid> wrote:
>
>> No one is going to be able to help you unless you can provide the
>> application together with steps to reproduce your problems or if you can
>> show those problems occurring with a sample application that comes with
>> NetBeans, e.g., the Anagram Game.
>>
>> Gj
>>
>> On Sat, Nov 24, 2018 at 10:16 AM Owen Thomas <owen.paul.tho...@gmail.com>
>> wrote:
>>
>>> Looks like I'm getting confused and dismayed with my attempts to run the
>>> profiler. Any help from any NetBeans user would be appreciated.
>>>
>>> Thanks,
>>>
>>>   Owen.
>>>
>>> ---------- Forwarded message ---------
>>> From: Owen Thomas <owen.paul.tho...@gmail.com>
>>> Date: Sat, 24 Nov 2018 at 20:11
>>> Subject: Re: Novice Profiling Question.
>>> To: <v...@ricker.us>
>>>
>>>
>>> This is strange...
>>>
>>> When I start my application from the profiler with the profile view set
>>> to Objects, I see the objects that make up my application. I can switch the
>>> view to Telemetry, and the telemetry view appears. But when I switch the
>>> view back to Objects, nothing appears.
>>>
>>> Instead, I get the following in my application console output:
>>>
>>> Profiler Agent Error: Exception when handling command from client:
>>> java.io.IOException: JFluid wire protocol error: code does not
>>> correspond to command or response. Value -1
>>> Profiler Agent: Connection with agent closed
>>>
>>> I ensured the application was completely compiled by selecting Clean and
>>> Build from the projects menu before I ran it. I'm finding this perhaps a
>>> little confusing...
>>>
>>>
>>> On Sat, 24 Nov 2018 at 17:40, Vic Ricker <v...@ricker.us> wrote:
>>>
>>>> Did you check the objects being created?  Do they interact with
>>>> anything else? (passing references to themselves, or their methods, maybe
>>>> lambdas? to other things that can't be garbage collected?)  Doesn't the
>>>> profiler tell what's holding the references?
>>>> On 11/24/18 12:34 AM, Owen Thomas wrote:
>>>>
>>>> Thanks for the tip. I have just tried it. Unfortunately (a bit
>>>> surprisingly too) it hasn't worked. I call gc every 10 seconds. The number
>>>> of objects I see still seems to grow without limit.
>>>>
>>>> On Sat, 24 Nov 2018 at 15:47, Vic Ricker <v...@ricker.us> wrote:
>>>>
>>>>> Did you try forcing garbage collection with System.gc()?  Those
>>>>> allocations may not be leaked.  It may be that the GC hasn't got to
>>>>> them
>>>>> yet.
>>>>>
>>>>>
>>>>> On 11/23/18 11:19 PM, Owen Thomas wrote:
>>>>> > Hello NetBeans Users.
>>>>> >
>>>>> > An application that I am developing seems to be slowly leaking
>>>>> memory,
>>>>> > and I have been given some advice that makes me think that the best
>>>>> > way to get to the bottom of this problem is by running an instance
>>>>> of
>>>>> > my application in the profile.
>>>>> >
>>>>> > I can do that, and as just as I thought, I am seeing particular type
>>>>> > types of objects being created but not being destroyed by the
>>>>> garbage
>>>>> > collector. I've walked though my code many times, and as far as I
>>>>> can
>>>>> > see, never do I assign the object to a variable that has any scope
>>>>> > other than method scope. I can't see why they wouldn't be gc'd, but
>>>>> > indeed this is not happening, and I am wondering if this is because
>>>>> I
>>>>> > am setting these objects to a variable that persists beyond method
>>>>> scope.
>>>>> >
>>>>> > My question (I suppose it's very simple), is this: how do I get the
>>>>> > references to objects I see in my profiler?
>>>>>
>>>>

Reply via email to