Outofmemoryerror and stackoverflowerror

Source: Internet
Author: User

Kettle has been used for data statistics recently. The solution to the problem mentioned in the title is also simple, but it should be explained.

Although both of them are memory overflow, they are differentiated. outofmemoryerror indicates heap overflow, and stackoverflowerror indicates stack overflow. Generally, there are many cases of the former and fewer cases of the latter, unless you use a deep loop. Generally, the default value of stack is kb to kb ~ 256 K, which is enough. You don't need to modify it, but you need to modify it in the deep loop of big data.

Stackoverflowerror modification method

-Xss1024m

Outofmemoryerror modification method

-Xmx3072m

Add the two to the JVM environment variable settings.

This article from "Qiao Lei's blog learning progress" blog, please be sure to keep this source http://sucre.blog.51cto.com/1084905/1433100

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.