question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MemoryLeak caused by UriTemplate cache

See original GitHub issue

I noticed that UriTemplate.CACHE is never evicted. With recent changes it seems that any Link instance holds a template whether the href is templated or not. So, if an API exposes a lot of links with concrete URLs that will create a lot of cache entries when parsed into Links and underlying UriTemplates .

This led to OutOfMemoryErrors eventually in our application.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
gregturncommented, Nov 18, 2019

@odrotbohm That commit is on master, which is 1.1. Still needs to be backported to 1.0.x.

0reactions
odrotbohmcommented, Nov 18, 2019

Should be available in 1.0.2.BUILD-SNAPSHOT in a few minutes. Feel free to give them a try!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Will Spring Cache cause memory leak issue? - Stack Overflow
It means when no caching library, like Redis (using Spring Data Redis, for instance), is detected on your Spring Boot application classpath. In ......
Read more >
ChangeLog - Spring
#1118 - MemoryLeak caused by UriTemplate cache. - #1116 - Refine factory methods and nullability checks for RepresentationModel types.
Read more >
PM84305: OUTOFMEMORYERROR CAUSED BY MEMORY ...
When an application is designed such that every request for the same static content is unique, it consumes more memory to cache the...
Read more >
Avoiding memory leaks with Spring Boot WebClient | bol.com
What caused this memory leak? ... “[w]ith this solution the WebClient doesn't know the URI template origin, as it gets passed the final...
Read more >
Fedoraproject Fedora : List of security vulnerabilities - CVE Details
An attacker could potentially exploit the vulnerability to cause a denial of service, ... after allocating memory, which may cause a memory leak....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found