-
Notifications
You must be signed in to change notification settings - Fork 113
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
[BUG] java.lang.OutOfMemoryError: unable to create new native thread #389
Labels
type/bug
Something isn't working
Comments
zz-jason
added a commit
to zz-jason/client-java
that referenced
this issue
Dec 11, 2021
Signed-off-by: Jian Zhang <[email protected]>
zz-jason
added a commit
to zz-jason/client-java
that referenced
this issue
Dec 11, 2021
Signed-off-by: Jian Zhang <[email protected]>
RCA: When creating a SmartRawKVClient, a CircuitBreaker is created, and a background thread to record the traffic statistics is created as well. So creating 10241 SmartRawKVClients, there will be 10241 background thread being created as well. It reaches the upper limit that the OS allows JVM to create, so the error appears. References: |
zz-jason
added a commit
that referenced
this issue
Dec 11, 2021
marsishandsome
pushed a commit
that referenced
this issue
Dec 11, 2021
* cherry pick #390 to release-3.1 Co-authored-by: Jian Zhang <[email protected]> Co-authored-by: Liangliang Gu <[email protected]>
ankita25
pushed a commit
to ankita25/client-java
that referenced
this issue
Dec 14, 2021
Signed-off-by: Ankita Wagh <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Got
java.lang.OutOfMemoryError: unable to create new native thread
when creating numerous SmartRawKVClientWhat did you do
Create numous SmartRawKVClient like the following:
What do you expect
no errors
What happens instead
Java Client and TiDB/TiKV version info
The text was updated successfully, but these errors were encountered: