Andrei Pangin Profile
Andrei Pangin

@AndreiPangin

Followers
5K
Following
1K
Statuses
572

JVM enthusiast. Java Champion. Author of async-profiler. Principal Engineer at AWS. Top #JVM answerer on Stack Overflow.

United Kingdom
Joined June 2015
Don't wanna be here? Send us removal request.
@AndreiPangin
Andrei Pangin
5 months
@jeffrey_analyst Profiling cpu+wall has been possible for quite some time:
0
2
3
@AndreiPangin
Andrei Pangin
7 months
RT @shipilev: Woot: now ships multi-JVM builds. You can pull a single JDK bundle, and then ask for a release/fastde…
0
4
0
@AndreiPangin
Andrei Pangin
7 months
0
0
2
@AndreiPangin
Andrei Pangin
7 months
@spyced @forked_franz Could you please submit an issue at with environment details? You may also try the same without --cstack option. Thanks.
0
0
1
@AndreiPangin
Andrei Pangin
8 months
@dbg_nsk Да, конечно
1
0
1
@AndreiPangin
Andrei Pangin
8 months
@dbg_nsk Hooray! We have a winner! It's indeed "kill -11" with some extra tricks:
2
6
23
@AndreiPangin
Andrei Pangin
8 months
@kvadratyev Let's say the process is already started with "java -XX:-EnableDynamicAgentLoading You need to make a running Java app throw NullPointerException
0
0
1
@AndreiPangin
Andrei Pangin
8 months
@mbezoyan You may change JVM arguments or run shell commands, but debuggers/agents are not allowed. Changing the value of T to null in a debugger would be too trivial.
0
0
0
@AndreiPangin
Andrei Pangin
8 months
@barbartosh Any OpenJDK release from JDK 11 to JDK 22
1
0
0
@AndreiPangin
Andrei Pangin
8 months
@forked_franz @spyced 'asprof -e page-faults --cstack vm' will profile page faults and show complete stack traces with all Java, native, JVM and libc frames.
1
4
15
@AndreiPangin
Andrei Pangin
8 months
@nevgeniev @AndreyPechkurov @lemire @johnbind2 It's out of my hands: everything that links with JVMCI needs to be GPL
0
0
2
@AndreiPangin
Andrei Pangin
8 months
@ldubox Yes. Although launch4j is only for Windows, the same trick works on Linux and macOS.
0
0
0
@AndreiPangin
Andrei Pangin
9 months
@lemire In this statement, you are stepping on your own rake by blaming sampling profilers basing on a few random observations, while the actual problem is not in the tools at all.
0
2
19
@AndreiPangin
Andrei Pangin
9 months
@tagir_valeev @shipilev @intellijidea My eyes are bleeding every time I see Objects.hash in a code review. For me, it's literally *harder* to read :) In general, hashCode() should not have side effects and therefore should not allocate. It's not even an optimization but a code hygiene.
2
2
6
@AndreiPangin
Andrei Pangin
1 year
@tagir_valeev @romtsn String(byte[], int, int, int) constructor also does the trick. It's compatible with any Java version, despite having been deprecated for ages.
1
0
3
@AndreiPangin
Andrei Pangin
1 year
RT @rkennke: I‘m working on a whole new full-GC for Serial GC, because why not? 🤷‍♂️
0
11
0
@AndreiPangin
Andrei Pangin
1 year
Yeah, the biggest async-profiler release so far. Tons of new features and improvements!
Tweet media one
@parttimen3rd
Johannes Bechberger
1 year
@AndreiPangin just released version 3.0 of async-profiler after a year of adding features and fixing many bugs. You can find it at Expect ap-loader to have a new release next week :)
4
65
186