简体   繁体   English

如何使用 JSF 前端和 SOAP webservice 作为后端来提升 Java 应用程序的性能

[英]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.

相关问题 Android应用程式如何搭配Java前端和Rails 4后端? - How Android app with Java front-end and Rails 4 backend? Java / Android前端客户端和节点js后端服务器? - Java/Android front-end client and node js backend server? 如何使前端 angularjs 代码与同一 EC2 上的后端 Java 代码通信 - How to make front-end angularjs code communicate to backend java code on same EC2 JSF中的局部(前端)变量 - Local (front-end) variables in JSF 如何将Java后端与JavaFX 2前端连接? - How to connect Java back-end with JavaFX 2 front-end? 如何将java后端与dreamweaver前端集成? - how to integrate java backend with dreamweaver front end? 如何计算Java项目中的KLOC(包括前端技术)? - How to count KLOC in a Java project (including front-end technologies)? 从Flex前端直接操纵基于Java的后端对象的最佳方法? - Best way to directly manipulate java-based backend objects from flex front-end? 如何增强对数据库进行多次调用的Java应用程序的性能? - How to enhance the performance of a Java application that makes many calls to the database? 如何为我的 REST Web 服务创建 SOAP 前端 - How do I create a SOAP front-end for my REST web services
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM