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

2008-01-08 Thread Vinu Varghese

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 [EMAIL PROTECTED] /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



Tomcat consumes much memory when web.xml size grows

2008-01-07 Thread unnikrishnans

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.