Discussion:
How to precompile jsp after web application is deployed
(too old to reply)
c***@yoeric.com
2007-05-16 16:11:11 UTC
Permalink
I need to know how to get the websphere web server to precompile my jsps after I have updated my web app. If I do it at the same time as update then I get a timeout error. So I want to be able to tell websphere to compile my jsp. Also what is the link to the offical websphere forum? There are some many different flavors. What other forum should I use to ask about WebSphere configuration and deployment questions?

Thanks,
Susan
Rob White
2007-06-01 19:45:59 UTC
Permalink
Post by c***@yoeric.com
I need to know how to get the websphere web server to precompile my jsps after I have updated my web app. If I do it at the same time as update then I get a timeout error. So I want to be able to tell websphere to compile my jsp. Also what is the link to the offical websphere forum? There are some many different flavors. What other forum should I use to ask about WebSphere configuration and deployment questions?
Thanks,
Susan
Susan,

If your WebSphere Application Server is on the iSeries, you can try the following program (written for WAS 6.0):

PGM
DCL VAR(&CMD) TYPE(*CHAR) +
VALUE('/QIBM/ProdData/WebSphere/Appserver/v+
6/base/bin/JspBatchCompiler -server.name +
SSSSSSSS -enterpriseapp.name AAAAAAAA +
-profileName SSSSSSSS -compileToWebInf false')
QSH CMD(&CMD)
ENDPGM

Replace SSSSSSSS with the server name and AAAAAAAA with the application name (case sensitive). The parameter '-compileToWebInf false' will cause the compiled JSP's to be placed in the temp directory (where they would normally go). Test it by running it interactively on a small application. For the larger application, submit it as a batch. It checks every JSP. If the JSP is up to date, the program does nothing. If the JSP has changed, it is recompiled.

If you have any questions, please let me know.

Rob
c***@yoeric.com
2007-06-06 10:07:36 UTC
Permalink
Thanks Rob. I am going to give that a try. Right now I am working on fine tuning a WebSphere Express application. We are having problems with loads of page faults so I want to make sure that the jsps have been precompile.

I am also trying to figure out the best memory settings for the jvm and websphere. If anyone has any experience here I would love to here it. I believe the jvm initial heap value should be either 512 or 256 and its max value should be 1.5gig. I am hoping this will speed up the application.

thanks,
Susan
l***@gmail.com
2007-06-11 15:55:44 UTC
Permalink
In WAS 6.1 admin console, when you install new application, you could check the option: Precompile JavaServer Pages files to precompile jsps.
You probably want to post your questions on WebSphere Application Server forums.
l***@gmail.com
2007-06-11 16:08:10 UTC
Permalink
Hope this link is helpful.
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/topic/com.ibm.websphere.base.doc/info/aes/ae/rweb_jspreloading.html
Rob White
2007-06-12 20:35:47 UTC
Permalink
Post by l***@gmail.com
In WAS 6.1 admin console, when you install new application, you could
check the option: Precompile JavaServer Pages files to precompile jsps.
You probably want to post your questions on WebSphere Application Server forums.
If you have a small application, I'm sure it works well. Unfortunately for
me, our WebFaced application can have up to 1400 display files and well over
10,000 JSPs. Precompiling the JSPs during the install would lengthen the
install time considerably. At the moment, we add lines to the file
ibm-web-ext.xmi as outlined in one of the RedBooks. When we start the
application, it checks the JSPs and pre-compiles if necessary. This takes
at least 24 hours (if nothing has been precompiled) given the large number
of display files. I tried the JspBatchCompiler program and it took about 6
hours when I ran it as a batch job, so we are looking into this to replace
our current procedure.

I think that size and time will determine which method you use.

Rob

Loading...