You are here : Home / Core Java Tutorials / Core Java tutorial in detail / Exceptions Tutorial in java / OutOfMemoryError
Contents of page >
Read : OutOfMemoryError in java
1) What happens in OutOfMemoryError: reason stack_trace_with_native_method
Whenever this OutOfMemoryError is thrown >
- a stack trace is printed
- In this stack top frame is a native method
Then this OutOfMemoryError indicates that a native method has encountered an allocation failure.
2) When this OutOfMemoryError: reason stack_trace_with_native_method is detected?
In this OutOfMemoryError: “reason stack_trace_with_native_method” the allocation failure is detected in >
- native method
rather than in the JVM code.
3) Action you should take in case of OutOfMemoryError: reason stack_trace_with_native_method?
Use native utilities of the OperatingSystem to diagnose the issue.
4) For solving this OutOfMemoryError: reason stack_trace_with_native_method is detected?
For solving use tools like >
- pmap and
- pstack
5) Summary -
So in this tutorial we learned that OutOfMemoryError: reason stack_trace_with_native_method indicates that a native method has encountered an allocation failure.
OutOfMemoryError: reason stack_trace_with_native_method is detected in > Java Native Interface (JNI) or native method.
Use native utilities of the OperatingSystem to diagnose the issue. And
for solving this error use tools like pmap and pstack.
Having any doubt? or you liked the tutorial! Please comment in below section.
Please express your love by liking JavaMadeSoEasy.com (JMSE) on facebook, following on google+ or Twitter.
RELATED LINKS>