Flame graph üretir, grafiği nasıl yorumlayacağımızı anlatan bir yazı burada. Kullanım şöyle
asprof -d 30 -f flamegraph.html <PID>
Orçun Çolak'ın her şeyden bir parça notları
asprof -d 30 -f flamegraph.html <PID>
Improve the scalability of Java code that uses synchronized methods and statements by arranging for virtual threads that block in such constructs to release their underlying platform threads for use by other virtual threads. This will eliminate nearly all cases of virtual threads being pinned to platform threads, which severely restricts the number of virtual threads available to handle an application's workload.
javadoc --enable-preview --source 22 -d docs Calculator.java
JMeter has two modes: CLI and Non-CLI. .... CLI mode doesn't have any user interface. But Non-CLI mode has a user interface where you can point-and-click and interact with the JMeter.Non-CLI mode should be used for recording, scripting, and smoke testing. This mode utilizes more resources (CPU and memory). CLI mode must be used for load testing, stress testing, and other forms of performance testing as well as for CI/CD pipelines. This mode doesn't eat up more resources as there is no user interface to load and render.
jmeter -n -t test_plan.jmx -l test_results.jtl
public class PremiumRecord extends InsuranceRecord {…}
public record InsuranceRecord(String type, float premium) {
private String policyNumber; // This won't compile
}public record InsuranceRecord(String type, float premium) {
private InsuranceRecord(String type, float premium) {
this.type = type;
this.premium = premium;
}
public static InsuranceRecord newInstance(String type, float premium) {
return new InsuranceRecord(type, premium);
}
}
public record InsuranceRecord(String type, float premium) {
public void setType(String type) {
this.type = type; // Won't compile
}
}