-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Prevent OOM on array size over VM limit #414
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
base: trunk
Are you sure you want to change the base?
Conversation
When we try to read text file line over the VM limit (current Hotspot VM limit is 2^31-5), the VM throws java.lang.OutOfMemoryError: Requested array size exceeds VM limit. This commit is to avoid this error by throwing IOException instead so that the caller can handle.
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
Author: Prateek Maheshwari <[email protected]> Reviewers: Jagadish<[email protected]> Closes apache#414 from prateekm/print-container-info
|
We're closing this stale PR because it has been open for 100 days with no activity. This isn't a judgement on the merit of the PR in any way. It's just a way of keeping the PR queue manageable. |
When we try to read text file line over the VM limit (current Hotspot
VM limit is 2^31-m where m is a small number ), the VM throws
java.lang.OutOfMemoryError: Requested array size exceeds VM limit.
This commit is to avoid this error by throwing IOException instead so
that the caller can handle.
Reference: https://plumbr.io/outofmemoryerror/requested-array-size-exceeds-vm-limit