In general, jsp files are placed in various sub directories in the war module. But if "Use full package names" is enabled (default),
all jsp files are compiled at once which could require larger heap. By disabling it, jsp files in each sub directories will be complies in phases and the required heap usage can be divided and reduced. The deployment time will be also reduced.
If you don't have any specific requirement with "Use full package names", this can be a possible workaround.
Note: "Use full package names" is disabled for JspBatchCompiler command by default.
------------------------------
Yoshiki Yamada
IBM Japan
------------------------------
Original Message:
Sent: Mon December 11, 2023 06:56 PM
From: Yoshiki Yamada
Subject: How to reduce Java heap usage for jsp precompile.
During the deployment on tWAS, we can select "Precompile JavaServer Pages files" as an installation option.
If the application contains a lot of jsp files, I observe a spike of java heap usage which could result in OutOfMemoryError.
Is there any way to reduce the heap usage.
------------------------------
Yoshiki Yamada
IBM Japan
------------------------------