Refine ES-Server-FAQ.md (#6486)
This commit is contained in:
parent
871fdf2fa2
commit
9f00af6c50
|
|
@ -1,6 +1,6 @@
|
|||
# ElasticSearch
|
||||
Some new users may face
|
||||
* ElasticSearch performance is not as good as expected. Such as, can't have latest data after a while.
|
||||
Some new users may encounter the following issues:
|
||||
* The performance of ElasticSearch is not as good as expected. For instance, the latest data cannot be accessed after some time.
|
||||
|
||||
Or
|
||||
* ERROR CODE 429.
|
||||
|
|
@ -13,9 +13,9 @@ Or
|
|||
at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:522) ~[elasticsearch
|
||||
```
|
||||
|
||||
You could add following config to `elasticsearch.yml`, set the value based on your env.
|
||||
You could add the following config to `elasticsearch.yml`, and set the value based on your environment variable.
|
||||
```yml
|
||||
# In tracing scenario, consider to set more than this at least.
|
||||
# In the case of tracing, consider setting a value higher than this.
|
||||
thread_pool.index.queue_size: 1000
|
||||
thread_pool.write.queue_size: 1000
|
||||
|
||||
|
|
@ -23,4 +23,4 @@ thread_pool.write.queue_size: 1000
|
|||
index.max_result_window: 1000000
|
||||
```
|
||||
|
||||
Read ElasticSearch official documents to get more information.
|
||||
For more information, see ElasticSearch's official documentation.
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
### Problem
|
||||
when you start your application with `skywalking` agent,if you find this exception in your agent log which mean `EnhanceRequireObjectCache` can not be casted to `EnhanceRequireObjectCache`.eg:
|
||||
When you start your application with the `skywalking` agent, you may find this exception in your agent log which means that `EnhanceRequireObjectCache` cannot be casted to `EnhanceRequireObjectCache`. For example:
|
||||
```java
|
||||
ERROR 2018-05-07 21:31:24 InstMethodsInter : class[class org.springframework.web.method.HandlerMethod] after method[getBean] intercept failure
|
||||
java.lang.ClassCastException: org.apache.skywalking.apm.plugin.spring.mvc.commons.EnhanceRequireObjectCache cannot be cast to org.apache.skywalking.apm.plugin.spring.mvc.commons.EnhanceRequireObjectCache
|
||||
|
|
@ -13,7 +13,8 @@ java.lang.ClassCastException: org.apache.skywalking.apm.plugin.spring.mvc.common
|
|||
```
|
||||
|
||||
### Reason
|
||||
this exception may caused by some `hot deployment` tools(`spring-boot-devtool`) or some else which may change the `classloader` in runtime.
|
||||
### Resolve
|
||||
1. Production environment does not appear this error because developer tools are automatically disabled,look [spring-boot-devtools](https://docs.spring.io/spring-boot/docs/current/reference/html/using-boot-devtools.html)
|
||||
2. If you want to debug in your development environment normally,you should remove such `hot deployment` package in your lib path temporarily.
|
||||
This exception may be caused by `hot deployment` tools (`spring-boot-devtool`) or otherwise, which changes the `classloader` in runtime.
|
||||
|
||||
### Resolution
|
||||
1. This error does not occur under the production environment, since developer tools are automatically disabled: See [spring-boot-devtools](https://docs.spring.io/spring-boot/docs/current/reference/html/using-boot-devtools.html).
|
||||
2. If you would like to debug in your development environment as usual, you should temporarily remove such `hot deployment` package in your lib path.
|
||||
|
|
|
|||
Loading…
Reference in New Issue