New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#947 ServoMonitorCache and GC Overhead Limit Reached: Added documentation/heads up accordingly #1370
Conversation
@tiny-dancer Please sign the Contributor License Agreement! Click here to manually synchronize the status of this Pull Request. See the FAQ for frequently asked questions. |
@tiny-dancer Thank you for signing the Contributor License Agreement! |
Current coverage is 73.78% (diff: 100%)@@ master #1370 diff @@
==========================================
Files 184 184
Lines 5649 5649
Methods 0 0
Messages 0 0
Branches 858 858
==========================================
+ Hits 4166 4168 +2
+ Misses 1182 1180 -2
Partials 301 301
|
@@ -1728,6 +1728,20 @@ If Spring AOP is enabled and `org.aspectj:aspectjweaver` is present on your runt | |||
3. URI, sanitized for Atlas | |||
4. Client name | |||
|
|||
[TIP] | |||
==== | |||
Don't use hardcoded url parameters within `RestTemplate'. When targeting dynamic endpoints use templated urls. This will avoid potential "GC Overhead Limit Reached" issues where `ServoMonitorCache` treats each url as a unique key. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- s/Don't use/Avoid using
- s/use templated urls/use URL variables
[TIP] | ||
==== | ||
Don't use hardcoded url parameters within `RestTemplate'. When targeting dynamic endpoints use templated urls. This will avoid potential "GC Overhead Limit Reached" issues where `ServoMonitorCache` treats each url as a unique key. | ||
` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[source,java,indent=0]
----
// recommended | ||
String orderid = "1"; | ||
restTemplate.getForObject("http://testeurekabrixtonclient/orders/{orderid}", String.class, orderid) | ||
` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
String orderid = "1"; | ||
restTemplate.getForObject("http://testeurekabrixtonclient/orders/{orderid}", String.class, orderid) | ||
` | ||
` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
` | ||
// avoid | ||
restTemplate.getForObject("http://testeurekabrixtonclient/orders/1", String.class) | ||
` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
----
@spencergibb believe updates are in place accordingly |
* pull1370: Warning for GC Overhead Limit Reached with servo.
Squashed and merged with some polish via d23aa67 |
Quickly put this together - wasn't able to render a local "preview". Feel free to criticize verbiage or syntax accordingly.
#947 (comment)