Java Memory settings

Source: Internet
Author: User

Resolving stack and heap memory overflow methods to set the environment memory variables:

1, in the running interface (CMD enter) to run the command: java-xms256m-xmx1024m, maintain the upper and lower memory parameters, maximum memory can not miss the system memory 1/4, minimum memory can not be less than the maximum memory of 1/4

2, in the Tommcat/bin path, if the installation version of the need for Service.bat files, this file in the decompression version.

3, in the operating interface (CMD entry)
Run command: CD Tommcat/bin into the appropriate directory,
Run command: Service.bat install TOMCAT5
Run the command again: Tomcat5.exe//us//tomcat5--jvmms=256--jvmmx=1024


Stackoverflowerror is a stack memory overflow hint.
Java Heap space is a heap memory overflow hint.

Heap: Used to store variable values.
Stacks: Used to store variable names.
For example: String str= "Shenyang";
Heap Stores Str. Stack storage Shenyang.

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.