Slow Deploy with many "not Java class" files

30 views
Skip to first unread message

Edilmar Alves

unread,
Aug 12, 2020, 10:19:46 AM8/12/20
to Payara Forum
Hi,

My system is CentOS8 + Payara4.1.2.174.
The web app is not deployed in a war package, but opened in xhtmls/images/documents (normal web files) and WEB-INF (class files).

The directory structure is:
/system/ (root web app dir)
/system/images/
/system/docs/ (have many PDF, DOC, XLS, etc files) more than 50 Gb of files, each one +/- 5 Mb size
/system/WEB-INF/...
/system/otherdirs...

When I deploy the app moving /system/doc/ for other place and creating a new empty doc subdir, it deploys faster than when I deploy with normal doc subdir.

Is there some way to configure Payara doesn't analyze some subdirs from the app when deploying?

Rudy De Busscher

unread,
Aug 19, 2020, 3:52:18 AM8/19/20
to Payara Forum
Hi,

Payara supports an expanded format (which is not standardized) but expects the same structure as within a WAR file. So there is no option to exclude some directories.

Regards
Rudy

Edilmar Alves

unread,
Aug 19, 2020, 9:16:05 AM8/19/20
to Payara Forum
Deploy works, but I would like to know if Payara makes some checks of these big directories that are not from Java web app, like docs and photos.
I have the same webapp also in Windows Servers and it is worst yet the deployment when these dirs are big.

Rudy De Busscher

unread,
Aug 20, 2020, 2:15:13 AM8/20/20
to Payara Forum
Hi,

Payara scans indeed all files and directories in the expended folder to find the required classes (and the type of the deployment like WAR,  EAR, EJB JAR, etc ...). There is no exclusion possible of some directories.

Rudy

Rudy De Busscher

unread,
Aug 20, 2020, 2:25:55 AM8/20/20
to Payara Forum
When hitting Post, I was thinking about the --type parameter. Do you already use it?

    ./asadmin deploy --type war /system

Edilmar Alves

unread,
Aug 24, 2020, 3:02:23 PM8/24/20
to Payara Forum
Same behaviour.
I think there is some specific OS config for a better deploy.
Reply all
Reply to author
Forward
0 new messages