You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by unnikrishnans <un...@gmail.com> on 2008/01/08 08:24:30 UTC

Tomcat consumes much memory when web.xml size grows

I have one war file having size 140MB and has been deployed in tomcat 5 and
runs smothly. This war contains files from 20 different modules. So i
planned to split war in to multiple jar file in the following manner. 

one main.war file contains common classes,images,stylesheets,common jsp
files and web.xml . 

seperate module jar files with following . 

  


                        
 java classes of the particular module 

                        
 pre-compiled Jsp files of the module jsp.( Since jsp's are pre compiled
these entries will go to web.xml)  

                       

            


 main.war will be having servlets entries of all the pre-compiled jsp's. 
The count comes around 6000. All these module jar files are put in to
shared/lib. while starting tomcat , it is found that it is taking 200MB more
memory than the previous one.It seems that when the number of servlet
entries in web.xml is more, it consumes much memory. Is there any way to
invoke the pre-compiled Jsp files with out having entry in web.xml file. 

Any help is appreciated.

 thanks & regards 

unni
-- 
View this message in context: http://www.nabble.com/Tomcat-consumes-much-memory-when-web.xml-size-grows-tp14683988p14683988.html
Sent from the Tomcat - User mailing list archive at Nabble.com.

Re: Tomcat consumes much memory when web.xml size grows

Posted by Vinu Varghese <vi...@x-minds.org>.
Try putting those jars in the lib folder of the WAR

unnikrishnans wrote:
> I have one war file having size 140MB and has been deployed in tomcat 5 and
> runs smothly. This war contains files from 20 different modules. So i
> planned to split war in to multiple jar file in the following manner. 
>
> one main.war file contains common classes,images,stylesheets,common jsp
> files and web.xml . 
>
> seperate module jar files with following . 
>
>   
>
>
>                         
>  java classes of the particular module 
>
>                         
>  pre-compiled Jsp files of the module jsp.( Since jsp's are pre compiled
> these entries will go to web.xml)  
>
>                        
>
>             
>
>
>  main.war will be having servlets entries of all the pre-compiled jsp's. 
> The count comes around 6000. All these module jar files are put in to
> shared/lib. while starting tomcat , it is found that it is taking 200MB more
> memory than the previous one.It seems that when the number of servlet
> entries in web.xml is more, it consumes much memory. Is there any way to
> invoke the pre-compiled Jsp files with out having entry in web.xml file. 
>
> Any help is appreciated.
>
>  thanks & regards 
>
> unni
>   

-- 
........................................
<signature>
   <full-name> Vinu Varghese </full-name>
   <company-email> vinu@x-minds.org </company-email>
   <company-website> www.x-minds.org </company-website>
   <big-words>
    Success always occurs in private, and failure in full view.
    </big-words>
   <company-name-big>
\/      ._ _   o  ._    _|   _
/\  ~~  | | |  |  | |  (_|  _\                                                         
    </company-name-big>
</signature>