performance « Development « JSP-Servlet Q&A





1. Java Servlets: Performance    stackoverflow.com

I am working on a web application in Java which gets data from servlets via AJAX calls. This application features several page elements which get new data from the server at fairly ...

2. What is the best way to display multiple PDF files via browser?    stackoverflow.com

I'm developing an web application using Flex and JSP. I am having some performance issues with displaying multiple PDF files. I am trying to display about 50-100 PDF files. I know that is ...

3. java servlet : how to speed this up?    stackoverflow.com

I have the following function which is called for every line item produced. Does anyone have any ideas how to speed this up?

private String getDetails(String doc){
   ...

4. Websphere 6.1 - Precompile jsp files    stackoverflow.com

What is the best way to precompile JSP files in Websphere (6.1)? I have looked at other questions related to JSP precompilations, but as each AppServer has specific settings, I would like ...

5. Displaying huge arraylist in jsp    stackoverflow.com

I have 15000 records in an arraylist each record size is around 2MB. I have display this list on a jsp page in the most efficient manner. Please suggest the best ...

6. JSP Performance using jsp:include    stackoverflow.com

I am beginning to break apart a large JSP file into a some smaller JSP pages so I can reuse this across other areas of the site. I ...

7. Does scriptlet hit the performance in JSP?    stackoverflow.com

Hi I like to know I read all the all the time use JSTL or EL in JSP.. Just curious to know does scriptlet in JSP hit the performance?

8. I want to improve performance of xslt    stackoverflow.com

I have a framework that generates the XML, based on the HTTP request and the current session state. I may test in HTML, but production output will be VXML - ...

9. Writing image to servlet response with best performance    stackoverflow.com

Any advices, practices, experience? Thanks.





10. Does a servlet-based stack have significant overheads?    stackoverflow.com

I don't know if it's simply because page-loads take a little time, or the way servlets have an abstraction framework above the 'bare metal' of HTTP, or just because of the ...

11. Java NIO Servlet to File    stackoverflow.com

Is there a way (without buffering the whole Inputstream) to take the HttpServletRequest from a Java Servlet and write it out to a file using all NIO? Is it even ...

12. Concurrency in Java EE application    stackoverflow.com

Previously I asked this question: http://stackoverflow.com/questions/2941657/read-quicktime-movie-from-servlet-in-a-webpage Basically I used a servlet to stream a movie file to a quicktime plugin on browser (In order to play file outside the root). At ...

13. jsp:include , performance, modularization, alternatives and best practices, Part 96    stackoverflow.com

This is a follow-up to the 'overhead of jsp include' question below: http://stackoverflow.com/questions/1479218/jsp-performance-using-jspinclude In our application, developers have 'modularized' jsp fragments by heavy use of "jsp:includes" for "common" jsp code repeated throughout ...

14. How to tune up the performance of JSP through configuration?    stackoverflow.com

How to tune up the performance of JSP through configuration?

15. In what situation can CGI be faster than Servlet?    stackoverflow.com

I had an argument today with one of my teacher where he was saying CGI was always slower than Servlet. I told him that performance was subjective and in some situation ...

16. Do you take a big performance hit mixing JSP and Servlets?    stackoverflow.com

From my understanding, JSPs are compiled anyway, so I would anticipate you'd get similar performance from both. I want to display a lot of data, and I'm thinking of using ...





17. Comparison of JSP Scriptlet versus MVC with regards to performance    stackoverflow.com

I came from an interview and the CTO (Chief Technology Officer) told me that there have a system (which has been running for over 5 years) and they still prefer not ...

18. Eclipse indexing takes forever    stackoverflow.com

I have Eclipse Helios SR1 installed on my Ubuntu 10.04 desktop and I'm having to work with a huge set of web projects in it. When I import the projects eclipse builds ...

19. Most effective way to write File to ServletOutputStream    stackoverflow.com

ServletOutputStream output = response.getOutputStream();
output.write(byte[]);
What is the most effective way to write File to javax.servlet.ServletOutputStream? EDIT: won't this be more effective if the NIO was used?

20. Is there a performance difference between writing java inside jsp?    stackoverflow.com

Is there a performance difference between writing java inside jsp pages by embedding them in html (like php, and asp.net) -and- using controller classes and using the JSP page to render ...

21. JSP: Function call inside loop becomes very slow. Help me optimize    stackoverflow.com

In my JSP, I loop through an object containing a list of employees and display it. For each employee row, I also provide a link so that the user can view the ...

22. Are there any benchmarks that compare the performance of JSP vs grails GSP page?    stackoverflow.com

Assume that a fairly complex and dynamic page is developed as part of a web application: one built purely with Java/JSP ( no dynamic language or groovy) and another built with ...

23. Eclipse webtools project (WTP) and its performance / quality    stackoverflow.com

Our company is using eclipse since several years now (we are using WTP since release 0.7) I am currently evaluating eclipse 3.6.2 with WTP 3.2.3 which should replace eclipse 3.4.2 with WTP ...

24. Delay in loading jsp page?    stackoverflow.com

I am having a login jsp page, after entering all the credentials and while clicking on the login button, I am redirecting it to a servlet which does all the login ...

25. Java Servlet container performance?    stackoverflow.com

I'd like to ask the Java pros here a question about my current study that I am about to do - what are the key contributors to the differences in efficiency ...

26. performance implications of comments in JSP files ???    coderanch.com

will, in theory if probably not in practice (unless you go overboard on the things). <%-- comments --%> will only affect the initial compilation. If concerned about network bandwidth, use a filter to compress the server response. Most browsers support zip type compression. But if I were you I would require testing to show that it is a ...

27. Performance and JSP include...    coderanch.com

Hi Madhav , i will try playing around with your logic . Besides,it's nice knowing that including an html page does not work with Tomcat 4.0 . I am interested in this since it worked im Tomcat 3.2.1 which i'm using locally,but the application will be deployed on Tomcat 4.0. Sandy, U are very right. I tried organising my JSPs by ...

29. jsp:include and performance    coderanch.com

Hi Kartik, The basic difference between jsp:include and <% @ include is that, <%@ include is a include directive and is processed at compile time, whereas jsp:include is processed everytime whenever there is a request at runtime. It is always better to use <%@ include when u have predefined/static files to be included. Hope this answers yr query, Atanu

30. JSP Performance Improvement Tips    coderanch.com

Off the top of my head: 1. Premature optimization is the enemy of working code. - (translation - get it working first, then optimize) 2. Avoid excessive object creation (the usual argument for using StringBuffer when assembling strings.) 3. Cache chunks of output that are hard to create in the first place but don't change very often. (For example, a list ...

31. Taglibs Performance    coderanch.com

The simple answer is yes, using taglibs will result in a slight performance decrease over building the same functionality into the JSP source. However, the actual additional overhead is probably neglible compared to the processing that the functionality requires. Another aspect that is worth considering is that the JSP specification provides room for container vendors to provide optimisations in the way ...

33. performance test    coderanch.com

Do you mean how the performance would be when you got many people access the page at the same time? If that is the case, in my previous company, we use Microsoft web applicatin stress tool for testing the speed performance. I think it can be downloaded freely, and then you can test it by setting the number of threads of ...

34. About JSP performance    coderanch.com

35. performance effect of jsp:include    coderanch.com

36. JSP Performance    coderanch.com

37. Reg: Performance Issues of taglib    coderanch.com

38. Performance Tuning    coderanch.com

Hello, In Fact i build a web application developped under Oracle Jdeveloper 9i. This web application contains a jsp files and java classes. The web application communicates with oracle database 8i through JDBC Driver. The Web server is hosting in Lebanon - Beirut. The database is located in France - Paris . These two servers are connected through a secure VPN. ...

39. Does JSP precompilation increase performance?    coderanch.com

JSPs are compiled the first time they are accessed after a web app restart. This happens just once, and then never again (until they're changed). Precompiling will compile JSPs right after the web app is restarted (or possibly even before that), so you don't have to wait the first time a page accessed. So the performance benefit is really a one-time ...

43. JSP performance    coderanch.com

44. performance while loading JSP    coderanch.com

45. Performance issue(Loading the page)    coderanch.com

46. Performance Issue: JSP responses rendering on IE    coderanch.com

Our application has a dynamic left navigation tree where entities of the tree a fetched from database, appropriate HTML structure is formed for each node and is the string is then rendered on the JSP as JSP response. To elaborate, I am providing the following code snippet In my leftnav.jsp <% LeftNavTree leftNavTree = new LeftNavTree(); %> <%= leftNavTree.outputTree()%> I have ...

48. c:forEach performance hit    coderanch.com

Out of curiosity, why are you mixing JSTL with Struts? Why not use the Struts iterate tags? Are you actually seeing performance problems? Have you narrowed it down to JSP processing (as opposed to DAO or network lag)? 25 x 45 while not small isn't exactly huge either. [ January 22, 2008: Message edited by: Ben Souther ]

49. "jsp:include" performance implications    coderanch.com

Hi, I have a JSP file that has a couple of include directives in a forEach loop. For some reasons outside of this discussion, I need to change the include directives to include actions. The code is sort of like the following: [Before] c:forEach ... @ page include="childA.jsp" @ page include="childB.jsp" /c:forEach [After] c:forEach ... jsp:include page="childA.jsp" jsp:include page="childB.jsp" /c:forEach There ...

51. Servlet Performance ....    coderanch.com

I need to validate the user input and depending on that I need to call different JSP. I need to do this 3 times. ie if the first time the data is not valid, I have to call the 2nd jsp and if the 2nd time also the data is not valid, I nedd to call the 3th JSP. (1)If it ...

52. Servlet or Jsp Performance    coderanch.com

Hi... Basically what u r asking is a classic trade off and is solely dependant on how u design ur page. If there are lots of HTML markup code it is advisable for using JSPs while having the fact that there are not much of complicated JAVA code in the same. But in case if ur program has more of complicated ...

53. Performance of JSP    coderanch.com

Probably the first pointer that most people would give you is to be careful not to combine Business and Presentation logic. Bacically this means that you don't do everything in the same JSP since if the front end needs changing you have to re-write the Business logic as well and vice versa. As to how you efficiently separate these layers... Thats ...

54. Jsp response performance    coderanch.com

55. ServletExec performance issues    coderanch.com

58. Performance: MVC versus Single JSP    coderanch.com

59. How to improve JSP performance    coderanch.com

60. Does Number of Servlets affetcs Performance....    coderanch.com

Hi, I'm developing a application which has 7 screens.We are coding in the following manner. Control will come to Servlet and this servlet will decide from which screen control came from and we will send the request to Business Object(BO) class where database connections will be done and datas will be retreived and stored in a bean.Now control will return to ...

62. File Upload / Download Performance in Servlets    coderanch.com

Hi. I've got an application that does both a file upload and file download using a Servlet. Currently this functionality handles 10s of thousands of records for both upload and download. Here's my problem. I need to be able to download a REALLY large file. For example, a possible upload file would be 100,000 records. The download file would be in ...

63. Time Measurment for a servlet's performance    coderanch.com

JAMon and System.currentTimeMillis() are similar, but JAMon offers many advantages over the latter. First of all the timings using currentTimeMillis() are stuck in your application. Of course you can write them to a log or display them, but what about average, min and max times. Also, what if you want to measure many things such as every one of your pages, ...

64. Servlet Performance Analysis/Tuning    coderanch.com

65. servlet performance optimization    coderanch.com

Check out JAMon (Java Application Monitor). It can measure performance AND scalability (you can tell how much performance degrades as the number of simultaneous requests increases). It is very easy to use and when used in conjunction with a load test tool can provide much useful info. One nice thing about JAMon is that it's performance impacts are small enough that ...

66. Threads access to object and performance/object in ServletContext: value or reference    coderanch.com

Hi Brahin, I think the Hashtable itself would have to be declared static ( which you have not, may be its just a typing mistake). I would consider this not a performance issue because the hashtable is functioning like a repository. If you are not using it to put some new Objects into it then I think it would be a ...

67. ServletOutputStream performance.    coderanch.com

68. How to test JSP performance    coderanch.com

69. Either SessionBean or WebService(Performance)    coderanch.com

Hi, Does anyone performancewise which one is better either a StatelessSessionBean or a webservice? My Client and the service which I am going to expose will be implemented only on java. So which one would be faster? One thing about webservice is that it has to convert the xml object to java and vice versa which I think is unnesscary if ...

70. Optimistic Locking Performance Advice Needed    coderanch.com

Hi there, We have an EJB method that roughly does the following; we have a number of buckets that may or may not be full. If one or more are not full we want it to find the one with the most space available and add the item there. Our main problem here is that this method can be called upwards ...

71. Performance issues with Servlets / JSP    coderanch.com

72. Servlet inheritance and performance    coderanch.com

74. JTS warnings in Jboss5.1 causing poor performance    coderanch.com

CartHandlerg.jboss.proxy.ejb.handle.EntityHandleImpl@14dee5(INFO) 07/19 23:03:48 rid: 16126 opname: shouldMerge cannot process request, because object doesn't exist(WARN) 07/19 23:03:48 rid: 16126 opname: shouldMerge request rejected with exception: (WARN) 07/19 23:03:48 rid: 16128 opname: shouldReplace cannot process request, because object doesn't exist(WARN) 07/19 23:03:48 rid: 16128 opname: shouldReplace request rejected with exception: (WARN) 07/19 23:03:48 rid: 16130 opname: shouldAdd cannot process request, because object doesn't ...

75. Performance issue while loading JSP    coderanch.com

76. Servlet container performance    coderanch.com

77. jsp page performance (redundant taglib)    coderanch.com

79. Servlet performance    java.net

80. RE: Servlet performance    java.net

81. JSP Glassfish poor performance under 64 bits    java.net

When my application runs under JVM 32 bits, it performs correctly (in term of response time), but under 64 bits, I have strange behavior in term of response time when accessing some jsp pages (sometimes good response time sometimes poor response time). I've included a JVM option -d64 in my sup-tpa-config to run under 64 bits. Someone have an idea why ...

82. Performance problem using ZK in JSP    zkoss.org

So I'm using ZK in JSP pages. The page I'm working on is made with both HTML and ZK tag (provided by Taglib). The page was created, and worked well, without ZK, and what I'm trying is just to use ZK's component, but keeping the structure of the page, made by HTML tag (based on tables).

83. Discussion on JSP Performance in ssi includes    forums.oracle.com

84. Performance testing of servlet.    forums.oracle.com