You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Peter Guyatt <pg...@telesoft-technologies.com> on 2003/12/17 12:06:33 UTC

Maximum page size before JasperException

Hi There,

	Can anyone possibly tell me what the maximum page size allowed when
compiling/presenting JSP page.

The question arises when I try and display a 4meg file.

If there is a limit is there any way to increase the maximum allowed size?

Thanks

Pete


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Maximum page size before JasperException

Posted by Rodrigo Ruiz <rr...@gridsystems.com>.
Hi Peter, I am not sure of which are the current limitations of the JVM 
in method code and constants pool sizes, but with such a huge JSP you 
could be reaching them. Remember that your JSP will be converted into a 
servlet, and that most of the JSP code will be generated inside a single 
method (called somewhat similar to _jspService, so the larger your JSP 
is, the larger the generated servlet will be. You can probably find the 
exact numbers in the Java Virtual Machine Specification.

A way of  alleviating this is through configuration of the Jasper 
servlet, that is, the servlet that compiles JSPs. You will find its 
configuration in the tomcat/conf/web.xml file. One of the attributes you 
can configure there will tell the compiler to put all the static content 
of your JSP in a static plain text file, so it will not be part of the 
servlet class, reducing its size.

Hope it helps you,
Rodrigo Ruiz

Peter Guyatt wrote:

>Hi There,
>
>The JSP page had it as a JavaScript variable (long story!!).
>
>I am more curious to find out what the maximum size is due to an academic
>curiosity
>
>Thanks
>
>Pete
>
>
>-----Original Message-----
>From: Kwok Peng Tuck [mailto:pengtuck@makmal.net]
>Sent: 17 December 2003 11:21
>To: Tomcat Users List
>Subject: Re: Maximum page size before JasperException
>
>
>Hmm maybe you can just write out the file to the response body in a
>servlet ?  Or do you need to do something in the jsp ?
>
>
>Peter Guyatt wrote:
>
>  
>
>>Hi there,
>>
>>	Its an XML file
>>
>>Pete
>>
>>-----Original Message-----
>>From: Kwok Peng Tuck [mailto:pengtuck@makmal.net]
>>Sent: 17 December 2003 11:12
>>To: Tomcat Users List
>>Subject: Re: Maximum page size before JasperException
>>
>>
>>What are you displaying in a JSP page that takes up 4 megs ?
>>
>>
>>Peter Guyatt wrote:
>>
>>
>>
>>    
>>
>>>Hi There,
>>>
>>>	Can anyone possibly tell me what the maximum page size allowed when
>>>compiling/presenting JSP page.
>>>
>>>The question arises when I try and display a 4meg file.
>>>
>>>If there is a limit is there any way to increase the maximum allowed size?
>>>
>>>Thanks
>>>
>>>Pete
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>      
>>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>>
>>
>>
>>
>>    
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>  
>



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


RE: Maximum page size before JasperException

Posted by Peter Guyatt <pg...@telesoft-technologies.com>.
Hi There,

The JSP page had it as a JavaScript variable (long story!!).

I am more curious to find out what the maximum size is due to an academic
curiosity

Thanks

Pete


-----Original Message-----
From: Kwok Peng Tuck [mailto:pengtuck@makmal.net]
Sent: 17 December 2003 11:21
To: Tomcat Users List
Subject: Re: Maximum page size before JasperException


Hmm maybe you can just write out the file to the response body in a
servlet ?  Or do you need to do something in the jsp ?


Peter Guyatt wrote:

>Hi there,
>
>	Its an XML file
>
>Pete
>
>-----Original Message-----
>From: Kwok Peng Tuck [mailto:pengtuck@makmal.net]
>Sent: 17 December 2003 11:12
>To: Tomcat Users List
>Subject: Re: Maximum page size before JasperException
>
>
>What are you displaying in a JSP page that takes up 4 megs ?
>
>
>Peter Guyatt wrote:
>
>
>
>>Hi There,
>>
>>	Can anyone possibly tell me what the maximum page size allowed when
>>compiling/presenting JSP page.
>>
>>The question arises when I try and display a 4meg file.
>>
>>If there is a limit is there any way to increase the maximum allowed size?
>>
>>Thanks
>>
>>Pete
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>>
>>
>>
>>
>>
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Maximum page size before JasperException

Posted by Kwok Peng Tuck <pe...@makmal.net>.
Hmm maybe you can just write out the file to the response body in a 
servlet ?  Or do you need to do something in the jsp ?


Peter Guyatt wrote:

>Hi there,
>
>	Its an XML file
>
>Pete
>
>-----Original Message-----
>From: Kwok Peng Tuck [mailto:pengtuck@makmal.net]
>Sent: 17 December 2003 11:12
>To: Tomcat Users List
>Subject: Re: Maximum page size before JasperException
>
>
>What are you displaying in a JSP page that takes up 4 megs ?
>
>
>Peter Guyatt wrote:
>
>  
>
>>Hi There,
>>
>>	Can anyone possibly tell me what the maximum page size allowed when
>>compiling/presenting JSP page.
>>
>>The question arises when I try and display a 4meg file.
>>
>>If there is a limit is there any way to increase the maximum allowed size?
>>
>>Thanks
>>
>>Pete
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>>
>>
>> 
>>
>>    
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
>  
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


RE: Maximum page size before JasperException

Posted by Peter Guyatt <pg...@telesoft-technologies.com>.
Hi there,

	Its an XML file

Pete

-----Original Message-----
From: Kwok Peng Tuck [mailto:pengtuck@makmal.net]
Sent: 17 December 2003 11:12
To: Tomcat Users List
Subject: Re: Maximum page size before JasperException


What are you displaying in a JSP page that takes up 4 megs ?


Peter Guyatt wrote:

>Hi There,
>
>	Can anyone possibly tell me what the maximum page size allowed when
>compiling/presenting JSP page.
>
>The question arises when I try and display a 4meg file.
>
>If there is a limit is there any way to increase the maximum allowed size?
>
>Thanks
>
>Pete
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
>  
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Maximum page size before JasperException

Posted by Kwok Peng Tuck <pe...@makmal.net>.
What are you displaying in a JSP page that takes up 4 megs ?


Peter Guyatt wrote:

>Hi There,
>
>	Can anyone possibly tell me what the maximum page size allowed when
>compiling/presenting JSP page.
>
>The question arises when I try and display a 4meg file.
>
>If there is a limit is there any way to increase the maximum allowed size?
>
>Thanks
>
>Pete
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
>  
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org