开发者

deploying java web application having huge class file

开发者 https://www.devze.com 2023-02-03 00:49 出处:网络
I have a JSP/Servlet web application deployed in Glassfish which is having a number of Servlets and huge class files. When I make even minor changes in the Servlet or class file, then the whole web ap

I have a JSP/Servlet web application deployed in Glassfish which is having a number of Servlets and huge class files. When I make even minor changes in the Servlet or class file, then the whole web application gets re-deployed which takes 开发者_JS百科considerable amount of time. Not only that, all the JSPs and Servlets are unloaded from memory and upon being called it takes around 1 second for getting initialized.

This problem does not occur when I change code of JSP, JS or CSS files as only that particular file is re-deployed.

Can I do anything so that the Servlets or those huge class files deployed separately and thus not the whole web application?


When you say "huge", do you mean "I have a small number of .class files, but their sizes are very large" or "I have a large number of small to modest-sized .class files"?

If it's the former, you should be worried about the size of the .class files.

Perhaps there's a hot deploy feature that you can take advantage of if you deploy an exploded view of the WAR file.

"...upon being called it takes around 1 second for getting initialized...." - are you really complaining about a 1 second redeploy time?

0

精彩评论

暂无评论...
验证码 换一张
取 消