Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
209 views
in Technique[技术] by (71.8m points)

deployment - How deploy WARs one after other by script after startup wildfly?

I have problem with starting Wildfly. I have more than 40 WARs on application server and XMX limitation. Sometimes server will start, sometimes not... There is any apportunity to deploy WARs one after other after startup Wildfly? Server has problem with start when is deploying all WARs during starting.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Yes, regardless how you deploy, you can deploy one-by-one.

If you deploy by copying your WARs to standalone/deployments, then yes, you can (1) start an empty server and then (2) copy the wars one-by-one manually or using a shell script. However, it is quite possible that your problem will re-appear when you shut down and start up the fully deployed server again. To solve that, maybe you could have a script to undeploy the WARs before shutting the server down.

You can reach a similar effect also using jboss-cli: (1) start an empty server (2) connect your cli client jboss-cli.sh --connect and (3) deploy the WARs one-by-one: deploy ~/Desktop/my-app1.war ... See https://docs.wildfly.org/16/Admin_Guide.html#standalone-server-3


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...