I have two questions regarding Java web application deployment and its impact on performance.
We have an application deployed on serverA, with JSPs exploded in to one content directory (that means JSPs are not part of the WAR)
question 1: What I knew was this was an approach for development rather than any other environments. Does this exploded deployment slow down performance?
now, the content directory is cross mounted(NFS share) to another hardware, and there we run serverB, which also use the JSPs for its content.
When both serverA and serverB are running and utilizing the same content, can it slow down the performance?
Deploying JSPs in exploded form (rather than in a WAR file) won’t make any difference from a performance perspective. When a WAR file is deployed, it is unpacked anyway.
Putting content (including JSPs) in an NFS mounted file system will make access to the files, and can lead to operational issues if your NFS mounts go stale at the wrong time. This will happen the first time a JSP is used, and can also happen at other times if your JSP engine is configured to periodically check for changed JSPs.