Linux system causes and solutions for Tomcat exception handling

Source: Internet
Author: User

The Tomcat server is a free open source Web application server and is the first choice for developing and debugging JSP programs. For a beginner, it can be argued that when you configure the Apache server on a single machine, you can use it to respond to requests for access to HTML (one application under the standard Universal Markup Language) page. The tomcat part is actually an extension of the Apache server, but it is run independently, so when you run Tomcat, it actually runs as a standalone process with Apache. Because Tomcat technology advanced, stable performance, and free, so deeply loved by the Java enthusiasts and has been recognized by some software developers, as the current more popular Web application server. But it also has an abnormal appearance, today's small series will tell you how to deal with the Tomcat exception Linux method.

First, the full name of the PermGen space is permanent Generation spaces, refers to the memory of the permanent storage area Outofmemoryerror:permgen from the surface is the memory of the benefits, the solution must also be increased memory.

Why memory Benefits out

This section is used to store class and meta information, class is placed in the PermGen space area when it is load, and is different from the heap area where instance is stored, GC (garbage Collection) PermGen space will not be cleaned up during the main program run, so if your app will load a lot of classes, PermGen space error is likely to occur. This error is common when the Web server is pre compile the JSP.

Correction Method:-xms256m-xmx256m-xx:maxnewsize=256m-xx:maxpermsize=256m

Second, the OutOfMemory error occurs when redeploy in Tomcat.

Cause of the error

1, the use of Proxool, because the Proxool contains an old version of the Cglib.

2, log4j, best not, only use common-logging

3, the old version of the Cglib, quickly updated to the latest version.

4, update to the latest hibernate3.2

When we find out why Tomcat is abnormal in Linux, the method is not hard to come by, and if you encounter a Tomcat exception when using Linux, this method will definitely help.

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.