OutOfMemoryError: Java heap space with @ManyToOne(fetch = FetchType.EAGER) after Migrating to spring boot 3.2;Hibernate 6.3

76 views Asked by At

if I set @ManyToOne(fetch = FetchType.LAZY) it is working. In my case I need EAGER loading. But this leads to the OutOfMemoryError. Even if they increase the in maven memory, it does not work:

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-surefire-plugin</artifactId>
  <configuration>
    <argLine>-Xmx4096m -Xms4096m</argLine>
  </configuration>
</plugin>
0

There are 0 answers