Skip to content
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

Closed
wants to merge 7 commits into from

Conversation

tiny-dancer
Copy link
Contributor

Quickly put this together - wasn't able to render a local "preview". Feel free to criticize verbiage or syntax accordingly.

#947 (comment)

@pivotal-issuemaster
Copy link

@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.

@pivotal-issuemaster
Copy link

@tiny-dancer Thank you for signing the Contributor License Agreement!

@tiny-dancer tiny-dancer changed the title #947 Added documentation/heads up accordingly #947 ServoMonitorCache and GC Overhead Limit Reached: Added documentation/heads up accordingly Oct 2, 2016
@codecov-io
Copy link

codecov-io commented Oct 2, 2016

Current coverage is 73.78% (diff: 100%)

Merging #1370 into master will increase coverage by 0.03%

@@             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          

Powered by Codecov. Last update be6f263...a7a93e5

@@ -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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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.
`
Copy link
Member

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)
`
Copy link
Member

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)
`
`
Copy link
Member

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)
`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

----

@tiny-dancer
Copy link
Contributor Author

@spencergibb believe updates are in place accordingly

spencergibb added a commit that referenced this pull request Oct 11, 2016
* pull1370:
  Warning for GC Overhead Limit Reached with servo.
@spencergibb
Copy link
Member

Squashed and merged with some polish via d23aa67

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants