This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
1
Facing Out-of-Memory Issue with Model Mapper – Now Resorting to Manual Mappings
Post Body
We were using Model Mapper to map domains to DTOs and vice versa, but our application started experiencing server crashes due to out-of-memory exceptions.
Details:
- Our application has thousands of modules, and the crashes made ModelMapper unusable.
- We tried using a singleton instance of ModelMapper, but the issue persisted.
- We’ve now resorted to manual mappings, but this is incredibly time-consuming and error-prone given the scale of our application.
- Has anyone successfully optimized Model Mapper to handle such use cases?
Any guidance or suggestions would be greatly appreciated!
Comments
You should be able to adjust your allocated max heap space.
Author
Account Strength
40%
Account Age
1 year
Verified Email
Yes
Verified Flair
No
Total Karma
18
Link Karma
18
Comment Karma
n/a
Profile updated: 5 days ago
Subreddit
Post Details
We try to extract some basic information from the post title. This is not
always successful or accurate, please use your best judgement and compare
these values to the post title and body for confirmation.
- Posted
- 2 months ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/javahelp/co...