Resolution of the Windows Maven package times wrong problem

Source: Internet
Author: User

Google took a look at others saying that the stack size is not big enough.

Stack space is used to make recursive calls to methods when pressed into the stack Frame. So when the recursive call is too deep, it is possible to run out of stack Space and burst the StackOverflow error. The size of the Stack space varies with the size of the OS,JVM and environment variables. The default size is generally 512K.

My guess is that one of my project call stacks is too large, and there are some very resource-intensive recursive calls that plug the stack size directly into the storm. So adjust the stack size to 10m.

Export maven_opts= "-xms256m-xmx512m-xss10m"

Re-execute the MVN package

SUCCESS, I hope you meet this problem less detour.

The above is the Linux solution, under Windows The processing method is

Set maven_opts= "-xms256m-xmx512m-xss10m"

Then MVN package

Resolution of the Windows Maven package times wrong problem

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.