Compile: java. lang. StackOverflowError

Source: Internet
Author: User

Today, I am running the normal Play framwork 2.0 project on the server, the following error occurs [plain] [info] Compiling 25 Scala sources and 1 Java source to/home/admin/git/project/target/scala-2.9.1/classes... [error] {file:/home/admin/git/project/} project/compile: java. lang. stackOverflowError [error] Total time: 19 s, completed 15:35:14 google, mostly because the conf/routes file is too large (about 200 rows, run the [plain] export _ JAVA_OPTIONS = "-Xms64m-Xmx1 M-Xss2m "can be solved, but my routes is only a few dozen lines, only 1 K is big, apparently not the cause of the above bug. Later we found that-Xss 512 K in the/usr/local/bin/sbt file was changed to-Xss 2 M, and the operation was normal, the complete code is [plain] java-Xms512M-Xmx1536M-Xss512K-XX: + CMSClassUnloadingEnabled-XX: MaxPermSize = 384 M-jar 'dirname $ 0'/sbt-launch.jar "$ @"

Related Article

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.