How does AAS disable automatic application restart?

Source: Internet
Author: User

Previously, some customers put the file upload directory under the application directory, while AAS automatically deploys the changed application by default, resulting in session loss when users upload files. At the same time, after several uploads, the memory will overflow: Java. Lang. outofmemoryerror: Java perm Space

In the end, the client application removes the File Upload directory from the application directory, and the system no longer encounters exceptions.

If directory removal is not allowed, you can adjust the AAS parameter to disable automatic deployment to Prevent Automatic application deployment after file changes.

Adjustment Method:

In % domain_home %/CONF/apusic. conf, there are the following fragments:

<Service class = "com. apusic. deploy. runtime. j2eedeployer "> <attribute name =" enableautodeployment "value =" true "/> <attribute name =" watcheddirectories "value =" Applications "/> <attribute name =" uploaddirectory "value = "Upload"/> </service>

This service is a J2EE deployment service used to monitor changes in applications and automatically deploy applications. Adjust the value of "enableautodeployment" to "false" to disable the automatic deployment function to prevent problems described.

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.