ByteCode.News
Submit RSS Atom Sign in

Back to the channels

#java

  1. deebo for some reason assumed yourkit snapshots would include jmx data, but no
  2. deebo any good options for recording and graphing micrometer data locally?, hopefully without running an open/elasticsearch cluster + grafana etc
  3. Para I run Jaeger tracing through container :D
  4. Para I'd wager depends on what you want out from the system.
  5. Para I also always print trace/span id:s to each log row, general ideology being that as I have these systems, I've made them always available and linked across everything to let myself be lazy.
  6. Para Even the REST API endpoints return those id:s so I can use browser dev tools to spy on what's going on.
  7. Para What else...IDEA has actuator based live stats for service, that works as well.
  8. Para https://www.jetbrains.com/help/idea/spring-support-tutorial.html#actuator
  9. javabot Para's title: "Tutorial: Explore Spring support features | IntelliJ IDEA Documentation"
  10. Para What I'm trying to say - it depends :)
  11. deebo i'm starting yourkit agent on startup in a docker swarm environment, doing a rolling upgrade to simulate a deployment and then after a few minutes i bring the system down and the agent writes snapshots to disk
  12. deebo but yourkit snapshots can't be filtered by time, and i can't correlate e.g. jdbc onnection acquisition times
  13. deebo at this point i'd need more of an apm than cpu profiling
  14. deebo maybe i'll jhust have to deploy to our real env to get a real apm agents stats, just slows the roundtrips for testing by 10x, really annoying
  15. deebo or i have to programmatically start the yourkit profiling so i get exactly what i want in the snapshot
  16. deebo didn't notice until now but yourkit agent has a periodic snapshot feature, so could capture 1 minute slices to find a good set of data, but i added a hook on startup (when ready for traffic) to profile for 90 seconds, save snapshot and stop profiling
  17. deebo hope this gives me something useful
  18. dmlloyd maybe you want JFR, or maybe look into async profiler
  19. dreamreal SDL has decided to disallow AI use in the project, which I find interesting
  20. dreamreal I understand it, but I think that's a bad response to a real problem
  21. deebo yeah have to check jfr at some point
  22. deebo but i think i finally found the issue, hikaricp creates new connections sequentally blocking, so if you have a buttload of traffic suddenly coming in, everything takes ages, but there's a switch to have it block init until minimum-idle connections are created
  23. dreamreal How long is it taking to open a new connection?
  24. deebo have to measure at some point, but on a 1cpu 2gb node that does 99.95% io bound work, all that traffic and initializations seem to be slowing it down, and is the onyl consistent blip in profiling
  25. deebo 99% response times go from 20ms to 1000ms for ~15sec
  26. deebo during a rolling node-by-node deploy
  27. dreamreal to *connect to a database*? Yikes.
  28. deebo yourkits tracing has way too much overhead, and in sampling mode it gets really confused by virtual threads
  29. dreamreal https://bytecode.news/posts/2026/04/performance-whack-a-mole
  30. javabot dreamreal's title: "Performance Whack-a-Mole | bytecode.news"
  31. dreamreal The guy that's about used JFR and JMC for virtual threads
  32. deebo yeah have to test jfr, and complain to yourkit
  33. deebo jfr is hella confusing compared to yourkit, but have to look deeper into the method timing/profiling stuff, but execution sampling is useless in an io bound app, most cpu used was a ConcurrentHashMap at 0.8% that something uses for caching
  34. dreamreal https://bytecode.news/posts/2026/04/pilot-0-1-0-maven-gets-an-interactive-console
  35. javabot dreamreal's title: "Pilot 0.1.0: Maven Gets an Interactive Console | bytecode.news"
  36. Para The link's broken, missing .com and scheme
  37. Para to github
  38. dreamreal dadgummit
  39. dreamreal obsidian's drafting process mangles urls and I copied them poorly
  40. dreamreal fixed, thank you
  41. dreamreal Para: ++
  42. nevet Para now has karma of 2.