I'm building up a three tier application :
1 - Incoming requests are received withing the first tier
2 - Second tier is realising the business logic and parsing domain object to DTOs using model mapper.
3 - Third tier is realising all the CRUD operations
On the third tier, i'm using an entity manager to perform my CRUD Operations and creating one in each of my method without closing it.
Could the fact of not closing my entity manager after each request and creating one in each method be related to my out of memory error when performing a large amount of requests ?
Thanks in advance