[英]How to enhance the performance of Java application with JSF front-end & SOAP webservice as a backend
We have a JAVA application which uses JSF framework in the front-end(xhtml pages) and SOAP web services in the backend.我们有一个 JAVA 应用程序,它在前端(xhtml 页面)中使用JSF 框架,在后端使用 SOAP Web 服务。 To consume the SOAP webservice I am using wsimport tool*(JAX-WS portable artifacts)*.为了使用SOAP 网络服务,我使用了wsimport工具*(JAX-WS 便携式工件)*。
Now the application is hosted in a clustered environment .现在该应用程序托管在集群环境中。 Request is sent to the Apache load balancing server which in turn call the two app servers (Where the application is deployed) each having five instances .请求被发送到Apache 负载平衡服务器,后者又调用两个应用程序服务器(部署应用程序的位置),每个服务器有五个实例。
The performance is good when up to 10-15 users access the application simultaneously.当多达 10-15 个用户同时访问应用程序时,性能良好。 But, when the number of users increases for example 20-25 users , The response time of the application is very slow .但是,当用户数量增加(例如20-25 个用户)时,应用程序的响应时间很慢。 The SOAP response is very quick but the application could not handle the huge data load . SOAP 响应非常快,但应用程序无法处理巨大的数据负载。
Can anyone advice how to handle this and improve the application's performance.任何人都可以建议如何处理这个问题并提高应用程序的性能。
I have asked a question in a bit different way.我以稍微不同的方式问了一个问题。 Finally figured the answer.终于想出了答案。
1) Removed the unwanted maven plugins and upgraded the maven version. 1) 移除了不需要的 maven 插件并升级了 maven 版本。
2) Used XML paresrs for webservice calls, instead of custom webservice libraries. 2) 使用 XML 解析器进行 webservice 调用,而不是自定义 webservice 库。
3) Removed unused JAR files. 3) 删除了未使用的 JAR 文件。
4) increased the Java Heap Space to handle huge Data. 4) 增加了 Java Heap Space 来处理海量数据。
5) Upgraded the version of JBOSS server. 5) JBOSS 服务器版本升级。
After this, I could see a considerable increase in the performance of the application.在此之后,我可以看到应用程序的性能显着提高。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.