#outofmemoryerror — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #outofmemoryerror, aggregated by home.social.
-
История одного // todo, который ждал своего часа пол года
// todo: тут N+1 на invoice — надо переделать через entity graph. Этот комментарий висел в коде полтора года. Все, кто заходил в файл, его видели. Никто не завёл тикет. В пятницу вечером он сработал — и забрал с собой три пода, 30% запросов на критичной ручке и моё спокойствие на выходные.
https://habr.com/ru/articles/1037972/
#java #spring_boot #hibernate #n+1 #outofmemoryerror #постмортем #heap_dump #технический_долг #jpa
-
Java crash?
App restart loop?
Memory spike?It’s not “just heap”.
There are 9 JVM memory failure zones
9 types of OutOfMemoryError
9 different root causes
9 different fixesStop tuning blindly.
Start diagnosing correctly.Visit: https://blog.heaphero.io/types-of-outofmemoryerror/
#Java #JVM #Programming #DeveloperLife #BackendDeveloper #OutOfMemoryError #TechEducation
-
Java crash?
App restart loop?
Memory spike?It’s not “just heap”.
There are 9 JVM memory failure zones
9 types of OutOfMemoryError
9 different root causes
9 different fixesStop tuning blindly.
Start diagnosing correctly.Visit: https://blog.heaphero.io/types-of-outofmemoryerror/
#Java #JVM #Programming #DeveloperLife #BackendDeveloper #OutOfMemoryError #TechEducation
-
OutOfMemoryError isn’t a memory problem.
It’s a reference problem.
Objects stay alive because references stay alive.
GC can’t free what’s still reachable.Visit: https://blog.heaphero.io/java-outofmemoryerror-heap-space/
Fix references → Fix memory.
#Java #JVM #MemoryManagement #OutOfMemoryError -
Spring JPA и OOM: 5 способов спастись от кэш-ловушки Hibernate
Spring JPA + большие данные = OOM? Hibernate скрывает коварную ловушку, которая может перегрузить память и обрушить приложение. Разбираем причины, а главное – 5 эффективных способов избежать OOM , чтобы работать с миллионами записей без проблем! 🚀
https://habr.com/ru/articles/882132/
#jpa #spring #hibernate #cache #oom #outofmemory #outofmemoryerror #оптимизация #orm #springdata
-
I always wondered, if BigDecimal.toPlainString() is a DoS attack surface.
Try Fail.java:
import java.math.BigDecimal;
public class Fail {
public static void main(String[] argv) throws Exception {
new BigDecimal("1e" + (Integer.MAX_VALUE-100)).toPlainString();
}
}and run it with
java -Xmx4g Fail.java
Fails with
java.lang.OutOfMemoryError: Java heap space
meaning any server using BigDecimal.toPlainString() on user input may just crash. -
I always wondered, if BigDecimal.toPlainString() is a DoS attack surface.
Try Fail.java:
import java.math.BigDecimal;
public class Fail {
public static void main(String[] argv) throws Exception {
new BigDecimal("1e" + (Integer.MAX_VALUE-100)).toPlainString();
}
}and run it with
java -Xmx4g Fail.java
Fails with
java.lang.OutOfMemoryError: Java heap space
meaning any server using BigDecimal.toPlainString() on user input may just crash.