home.social

#outofmemoryerror — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #outofmemoryerror, aggregated by home.social.

fetched live
  1. История одного // todo, который ждал своего часа пол года

    // todo: тут N+1 на invoice — надо переделать через entity graph. Этот комментарий висел в коде полтора года. Все, кто заходил в файл, его видели. Никто не завёл тикет. В пятницу вечером он сработал — и забрал с собой три пода, 30% запросов на критичной ручке и моё спокойствие на выходные.

    habr.com/ru/articles/1037972/

    #java #spring_boot #hibernate #n+1 #outofmemoryerror #постмортем #heap_dump #технический_долг #jpa

  2. 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 fixes

    Stop tuning blindly.
    Start diagnosing correctly.

    Visit: blog.heaphero.io/types-of-outo

    #Java #JVM #Programming #DeveloperLife #BackendDeveloper #OutOfMemoryError #TechEducation

  3. 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 fixes

    Stop tuning blindly.
    Start diagnosing correctly.

    Visit: blog.heaphero.io/types-of-outo

    #Java #JVM #Programming #DeveloperLife #BackendDeveloper #OutOfMemoryError #TechEducation

  4. 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: blog.heaphero.io/java-outofmem

    Fix references → Fix memory.
    #Java #JVM #MemoryManagement #OutOfMemoryError

  5. Spring JPA и OOM: 5 способов спастись от кэш-ловушки Hibernate

    Spring JPA + большие данные = OOM? Hibernate скрывает коварную ловушку, которая может перегрузить память и обрушить приложение. Разбираем причины, а главное – 5 эффективных способов избежать OOM , чтобы работать с миллионами записей без проблем! 🚀

    habr.com/ru/articles/882132/

    #jpa #spring #hibernate #cache #oom #outofmemory #outofmemoryerror #оптимизация #orm #springdata

  6. 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.

    #java #dos #security #outofmemoryerror

  7. 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.

    #java #dos #security #outofmemoryerror