Exceeding 2,147,483,639 limit

Questions about YourKit Java Profiler
Locked
afedorov
Posts: 3
Joined: Thu Jun 06, 2024 3:53 am

Exceeding 2,147,483,639 limit

Post by afedorov »

I am trying to load very big heap dump ~ 200g. My machine has 600g. But I am getting error that I am breaching a limit of 2,147,483,639 objects.

Is there a way to bypass this issue. For example MAT allows discard of some objects?
Vladimir Kondratyev
Posts: 1659
Joined: Tue Aug 10, 2004 7:52 pm

Re: Exceeding 2,147,483,639 limit

Post by Vladimir Kondratyev »

1) Which exact version of YourKit Profiler are you using?

2) You can limit the number of objects by setting the "yk.object.count.limit" property, which can be specified in the ~/.yjp/ui.ini file.

Best regards,
Vladimir Kondratyev
YourKit GmbH
http://www.yourkit.com
"Don't get lost in data, get information!"
afedorov
Posts: 3
Joined: Thu Jun 06, 2024 3:53 am

Re: Exceeding 2,147,483,639 limit

Post by afedorov »

I use 2024.3-b152.

How big yk.object.count.limit can be? If I set it to 100, will it just randomly sample 100 objects?
Could you share documentation link for yk.object.count.limit?
Vladimir Kondratyev
Posts: 1659
Joined: Tue Aug 10, 2004 7:52 pm

Re: Exceeding 2,147,483,639 limit

Post by Vladimir Kondratyev »

How big yk.object.count.limit can be? If I set it to 100, will it just randomly sample 100 objects?
The max number of objects that profiler reads from a snapshot. Keep it less than Java max integer.
Could you share documentation link for yk.object.count.limit?
This is undocumented option (only for troubleshooting).

Best regards,
Vladimir Kondratyev
YourKit GmbH
http://www.yourkit.com
"Don't get lost in data, get information!"
afedorov
Posts: 3
Joined: Thu Jun 06, 2024 3:53 am

Re: Exceeding 2,147,483,639 limit

Post by afedorov »

So what happens if dump has more objects then specified in yk.object.count.limit? Will objects be sampled or simply trimmed?
Vladimir Kondratyev
Posts: 1659
Joined: Tue Aug 10, 2004 7:52 pm

Re: Exceeding 2,147,483,639 limit

Post by Vladimir Kondratyev »

The term 'limit' refers to a threshold. When this threshold is reached, the profiler stops reading the heap dump.

Best regards,
Vladimir Kondratyev
YourKit GmbH
http://www.yourkit.com
"Don't get lost in data, get information!"
Locked