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.