Question about how to clean up JBoss Server JSP File Cache

Source: Internet
Author: User
Tags jboss server
After the JBoss site is deploy, the server will dynamically compile these JSP files. Therefore, these caches may always exist unless the server is restarted (note that it is a machine rather than a sevice, the reason is that the server is cleaned occasionally, but the time may be several hours or several days. therefore, if you update files when the machine is not started and the server is not cleaned up. what you may get is always the previous version of the file. I 've gotten too big in the past few days because of this problem. later, I found a method, that is, there is a work folder under your site directory. /JBoss. the Web/localhost/directory is where the cached files are stored. Generally, you do not need to delete the files because JBoss will generate a directory based on the namespace to which your files belong, just delete this one. for example:
*/Server/mywebapp/JBoss. Web/localhost/CN/vsidc/www1 /*.*
*/Server/mywebapp/JBoss. Web/localhost/CN/vsidc/www2 /*.*
If you only change the JSP file in the www1 directory, you only need to delete the above www1 directory.
Of course, if you use Ajax on the front-end, you should also note that each request must change the URL. Generally, you can add a random number (random.
Hope to help people who encounter the same problem.
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.