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.