Re: Performance issue

2009-01-06 Thread Pierre Thibaudeau
>From the comparison I made on my own system, S2 is overall about 30 to 60 times slower than S1. This is based on comparing a number of pages (repeatedly, testing with JMeter, etc.); the pages being compared are, admittedly not 100% identical, but abstracting from the specific differences, the pe

Re: Performance issue

2009-01-06 Thread Musachy Barroso
60 times slower? I am expecting S2 to be slower that S1 but 60 times sounds weird to me. The other thing that sounds weird is the huge difference between 30 and 60 times. musachy On Tue, Jan 6, 2009 at 1:09 PM, Pierre Thibaudeau wrote: > From the comparison I made on my own system, S2 is overall

Re : Performance issue

2009-01-06 Thread François Rouxel
Is is the same model behind the MVC? fr/ - Message d'origine De : Pierre Thibaudeau À : Struts Users Mailing List Envoyé le : Mardi, 6 Janvier 2009, 13h09mn 39s Objet : Re: Performance

Re: Performance issue

2009-01-06 Thread Pierre Thibaudeau
Yes the model is *exactly* the same in the two cases. In fact, both S1 and S2 exist concurrently in the same Tomcat application. Each test is run using JMeter, with 10 users who randomly try to access one of 42 different pages involving 10 different types of results (that is, roughly speaking, 10

RE: Performance issue

2009-01-06 Thread Andy
I would be interested in seeing new benchmark results if anyone happens to generate some. Might want to avoid database-based tests due to caching. > Date: Tue, 6 Jan 2009 16:19:36 -0500> From: pierre.thibaud...@gmail.com> To: > user@struts.apache.org> Subject: Re: Performan

Re: Performance issue

2009-01-06 Thread stanlick
This test sounds about as straightforward as parallel parking a freight train on a one lane road.

Re : Performance issue

2009-01-07 Thread François Rouxel
Are you using many interceptors? - Message d'origine De : Pierre Thibaudeau À : Struts Users Mailing List Envoyé le : Mardi, 6 Janvier 2009, 16h19mn 36s Objet : Re: Performance issue Ye

Re: Performance issue

2008-12-10 Thread Paweł Wielgus
Hi Hardik, what takes this time, page rendering in browser or result processing or maybe You are talking about action processing time? Also You can turn on profiling in struts2 to see how much time is spent where. Best greetings, Paweł Wielgus. 2008/12/11 Hardik Shah <[EMAIL PROTECTED]>: > > hi >

Re: Performance issue

2008-12-13 Thread Hardik Shah
Thanks For Showing interest ,but i dont know how to turn on profiliing ,please help me i think its takes data from database in real speed but when trying to display in new browser window takes time,i dont think time spent in action processing Thnaks Hardik Hi Hardik, what takes this time,

Re: Performance issue

2008-12-13 Thread Dave Newton
--- On Sat, 12/13/08, Hardik Shah wrote: > [...] i dont know how to turn on profiliing [...] http://struts.apache.org/2.0.14/docs/profiling.html Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional c

Re: Performance issue

2008-12-13 Thread yorlick kilroy
Hi Hardik, I had exactly the same problem with struts2. I wrote a struts2 webapp that produces a huge amount of output in JSPs. My JSPs took about 10 seconds to produce the content. The bottleneck is OGNL. OGNL has an extremely poor performance. Struts2 is an excellent framework but the struts2 te

Re: Performance issue

2008-12-13 Thread Dave Newton
--- On Sat, 12/13/08, yorlick kilroy wrote: > Any way heres what I did. I replaced the struts2 tags > with JSTL Core tags: [...] Are you accessing value stack objects via JSP 2.0 EL's ${...} notation, or have you put values into a JEE scope? Dave --

Re: Performance issue

2008-12-13 Thread yorlick kilroy
since I'm replacing all struts2 accessor tags and expressions in my jsps I use the '$' instead of the '%' and '#'. Obviously there are convenience drawbacks such as the tags that let you push a value onto the ognl stack but the performance advantages overweigh the conveniences that struts2 tags of

Re: Performance issue

2008-12-13 Thread Dave Newton
--- On Sat, 12/13/08, yorlick kilroy wrote: > since I'm replacing all struts2 accessor tags and expressions > in my jsps I use the '$' instead of the '%' and '#'. If you're accessing value stack objects via ${...} it's still OGNL under the hood--the S2 request wrapper will look for objects on th

Re: Performance issue

2008-12-13 Thread yorlick kilroy
but then howcome I'm getting such immense perfomace increases. I did a bit of profiling in eclpise IDE and it turned out that OGNL is the main performance killer ? On Sat, Dec 13, 2008 at 11:53 PM, Dave Newton wrote: > --- On Sat, 12/13/08, yorlick kilroy wrote: >> since I'm replacing all struts2

Re: Performance issue

2008-12-15 Thread Steven Yang
I had encountered similar problem a while back in Webwork.I believe its OGNL's problem as well. However, in most of my other projects using WebWork, I had no performance problem. I believe it has something to do with some jar files included in the project. I have not got a chance to find out which

Re: Performance issue

2007-01-02 Thread Mike Baroukh
If those lists are not user-dependant, you can put them in application context. This way, they will be shared by all your users. If they are user-dependant, I think I would have done a bean that provides properties that get data from db on the fly. Of course, if an error occur, it will be in

Re: Performance issue

2007-01-02 Thread Daniel Chacón Sánchez
Hi Mike, the list are not user-dependant, I load those list from the database, and are the same for all users, but how can I put then on the application context?? 2007/1/2, Mike Baroukh <[EMAIL PROTECTED]>: If those lists are not user-dependant, you can put them in application context. This wa

RE: Performance issue

2007-01-02 Thread Asthana, Rahul
;,Toronto"}; keep an int array in session{1,2,3}and use the request interceptor or Tiles Controller to fetch the actual content. HTH -Original Message- From: Mike Baroukh [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 02, 2007 12:47 PM To: Struts Users Mailing List Subject: Re

Re: Performance issue

2007-01-02 Thread Leon Rosenberg
The easiest way is to initialize the data once in the init(ServletConfig) method of the servlet and put them into the application scope (servletcontext). The struts tags will be able to access the data directly, so you don't need to change a bit. Of course the data structures theirself must be thr

Re: Performance issue

2007-01-02 Thread Daniel Chacón Sánchez
Thanks Leon, about using the servlet context, I read that on a distributed application the share information of the servlet context is not entererly global right?: *"...In the case of a web application marked "distributed" in its deployment descriptor, there will be one context instance for each

Re: Performance issue

2007-01-02 Thread Leon Rosenberg
On 1/2/07, Daniel Chacón Sánchez <[EMAIL PROTECTED]> wrote: Thanks Leon, about using the servlet context, I read that on a distributed application the share information of the servlet context is not entererly global right?: Right, but since the data is readonly its ok to have a copy per webser

Re: Performance issue

2007-01-02 Thread Daniel Chacón Sánchez
Thanks Leon!!!, I got it!!! 2007/1/2, Leon Rosenberg <[EMAIL PROTECTED]>: On 1/2/07, Daniel Chacón Sánchez <[EMAIL PROTECTED]> wrote: > Thanks > > Leon, about using the servlet context, I read that on a distributed > application the share information of the servlet context is not entererly > gl

Re: Performance issue

2007-01-02 Thread Leon Rosenberg
u welcome :-) L On 1/2/07, Daniel Chacón Sánchez <[EMAIL PROTECTED]> wrote: Thanks Leon!!!, I got it!!! 2007/1/2, Leon Rosenberg <[EMAIL PROTECTED]>: > > On 1/2/07, Daniel Chacón Sánchez <[EMAIL PROTECTED]> wrote: > > Thanks > > > > Leon, about using the servlet context, I read that on a distri

RE: Performance issue

2007-01-02 Thread Raghu
osenberg [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 03, 2007 12:28 AM To: Struts Users Mailing List Subject: Re: Performance issue The easiest way is to initialize the data once in the init(ServletConfig) method of the servlet and put them into the application scope (servletcontext). The s

Re: Performance issue

2007-01-04 Thread Daniel Chacón Sánchez
Leon!!! something happen... I applied your solution putting the objects in the request in the preExecute method of the base action, and all works fine, but... when the user made a mistake, for example leave a required field in blank, and the ActionErrors validate method of the ActionForm return

Re: Performance issue

2007-01-04 Thread Leon Rosenberg
Hmm, can you send some code? What kind of validation do you use? Serverside or js? I suppose it happens because the validation-whatsoever send the user directly to use jsp bypassing the action. If you need a quick and dirty solution, alter you preExecute method to put the objects into the sessio

Re: Performance issue

2007-01-04 Thread Daniel Chacón Sánchez
Thanks Leon!!! Ok I made it using the servletcontext like you have said :-), with this servlet.getServletContext().setAttribute("objHospital", objHospital); All works fine, even if the user made a mistake :) One question: 1- I dont understand something about the servletContext, which is the p

Re: Performance issue

2007-01-04 Thread Leon Rosenberg
there are 4 scopes or visibilities/lifecycles of attributes in the servlet/jsp world. page : the jsp page, same as local variable in a class. request: the duration of the request over multiple pages session: the duration of the user session, over multiple requests application scope: the whole web

Re: Performance issue

2007-01-05 Thread Daniel Chacón Sánchez
Thanks again Leon :) 2007/1/4, Leon Rosenberg <[EMAIL PROTECTED]>: there are 4 scopes or visibilities/lifecycles of attributes in the servlet/jsp world. page : the jsp page, same as local variable in a class. request: the duration of the request over multiple pages session: the duration of the

Re: Performance issue using tag

2009-11-02 Thread Musachy Barroso
It is the same struts code running all the time, so it should as fast(or slow) every time. The only thing that changes is the call to the EJB, so I would bet that the problem is there. musachy On Mon, Nov 2, 2009 at 9:57 AM, CS Wong wrote: > Hi, > > I seem to be having a performance issue in som

Re: Performance issue using tag

2009-11-02 Thread CS Wong
Hi, thanks for answering, I noticed that the quoted text in your reply seemed to be garbled so I guess something screwed up when I sent in my question. I've pasted my original question in a pastebin here ( http://paste2.org/p/495951) so that you can read it better. Sorry for any inconvenience cause

Re: Performance issue using tag

2009-11-02 Thread Musachy Barroso
I would suggest you to use a profiler to find out for sure what is taking the time. You can use VisualVM which comes with java 6 or the excellent jrockit mission control(free as well). musachy On Mon, Nov 2, 2009 at 2:50 PM, CS Wong wrote: > Hi, thanks for answering, I noticed that the quoted t

Re: Performance issue using tag

2009-11-03 Thread musomesa
- From: Musachy Barroso To: Struts Users Mailing List Sent: Tue, Nov 3, 2009 8:04 am Subject: Re: Performance issue using tag I would suggest you to use a profiler to find out for sure what is aking the time. You can use VisualVM which comes with java 6 or the xcellent jrockit mission control

Re: Performance issue with nested iterator

2012-07-04 Thread Lukasz Lenart
Could you post somewhere (GitHub) the whole code base ? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts

Re: Performance issue with nested iterator

2012-07-05 Thread Miguel Almeida
Sure, Lukas: https://github.com/mmalmeida/struts-performance On Thu, 2012-07-05 at 06:48 +0200, Lukasz Lenart wrote: > Could you post somewhere (GitHub) the whole code base ? > > > Regards

Re: Performance issue with nested iterator

2012-07-05 Thread Miguel Almeida
Sorry, I sent the email before explaining. The repo has a maven project that I stripped down to the most basic to show the issue. Notice the iterator in index.jsp. I tried to remove every unused configuration, file and dependency to make the project as simple as possible. The original project is

Re: Performance issue with nested iterator

2012-07-05 Thread Miguel Almeida
I believe I've found the culprit. While the problem is present in commit https://github.com/mmalmeida/struts-performance/commit/aba93098174c8c8c1684ffdd9bf332b212a893a , it's not present in the latest commit if you turn devMode to false. The issue was the freemarker version 2.3.9 in that commit.

Re: Performance issue with nested iterator

2012-07-05 Thread Łukasz Lenart
Thanks! The latest version of S2 is already using 2.3.19 Kind regards -- Łukasz mobile +48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/ 2012/7/5 Miguel Almeida : > I believe I've found the culprit. > While the problem is present in commit > htt

Re: Performance issue with large data(such as images)

2009-06-09 Thread Richard Sayre
You should persist the images as bytes, in a binary field or something similar. > 1. Because the image is large, it's not efficient to store it in > objects(beans). Well this depends on the Bean. Is the bean stored in session? If yes then it will take up some memory. If you dont have alot of m

Re: Performance issue with large data(such as images)

2009-06-09 Thread fireapple
Richard Sayre wrote: > > You should persist the images as bytes, in a binary field or something > similar. > >> 1. Because the image is large, it's not efficient to store it in >> objects(beans). > > Well this depends on the Bean. Is the bean stored in session? If yes > then it will take up

Re: Performance issue with large data(such as images)

2009-06-09 Thread Dave Newton
fireapple wrote: If I want to persist images to the hard drive of server. Shall I persist the data inside WAR or outside? Because user can change their portrait, does it mean it must be persisted outside WAR? You can't write stuff into your WAR. Dave --

Re: Performance issue with large data(such as images)

2009-06-09 Thread Jim Collings
Can't put em in your database as BLOB's with all the other user info? On Tue, Jun 9, 2009 at 4:26 PM, Dave Newton wrote: > fireapple wrote: >> >> If I want to persist images to the hard drive of server. Shall I persist >> the >> data inside WAR or outside? Because user can change their portrait, d

Re: Performance issue with large data(such as images)

2009-06-09 Thread Paweł Wielgus
Hi All, just as a side note, 300 users is a very small quantity of users. So i would recomend to check if there is a performance problem at all. Best greetings, Paweł Wielgus. 2009/6/9 Jim Collings : > Can't put em in your database as BLOB's with all the other user info? > > On Tue, Jun 9, 2009

Re: Performance issue with large data(such as images)

2009-06-10 Thread Richard Sayre
>Thanks, Rich, I''m happy to help. > If I use BLOB, I have to make a lot of change to my code. Therefore, I have > to persist it as String. I used base64 to encode and decode the byte[] into > String. Because I resize the images to small ones. I use a VARCHAR length > about 10k~20k to persist the

Re: Performance issue with large data(such as images)

2009-06-10 Thread Richard Sayre
I should have also mentioned that there are security issues with persisting to the hard drive. I would recommend saving to the database and loading the images as needed. Do not save them to session. I do not think you will have a performance problem. Rich --

RE: Performance issue with large data(such as images)

2009-06-10 Thread Mitchell, Steven
Sayre [mailto:richardsa...@gmail.com] Sent: Wednesday, June 10, 2009 12:41 PM To: Struts Users Mailing List Subject: Re: Performance issue with large data(such as images) >Thanks, Rich, I''m happy to help. > If I use BLOB, I have to make a lot of change to my code. Therefore, I have > to pers

RE: Performance issue with large data(such as images)

2009-06-10 Thread Security Management
I should have also mentioned that there are security issues with persisting to the hard drive. I would recommend saving to the database and loading the images as needed. Do not save them to session. I do not think you will have a performance problem. Rich I have had problems when trying to sho

Re: Performance issue with large data(such as images)

2009-06-10 Thread fireapple
Richard Sayre wrote: > > I should have also mentioned that there are security issues with > persisting to the hard drive. > > I would recommend saving to the database and loading the images as > needed. Do not save them to session. I do not think you will have a > performance problem. > > R

RE: Performance issue with large data(such as images)

2009-06-10 Thread fireapple
Security Management wrote: > > I have had problems when trying to show a bunch of thumbnails, because you > have a URL that points to an action in your jsp that causes a database hit > to pull the image. If I'm trying to show 150 thumbnails, the page takes > forever to load due to the db conne

Re: Performance issue with large data(such as images)

2009-06-10 Thread Dave Newton
fireapple wrote: Any way to resolve the security issue? If the user save the portrait in the hard drive(outside of app), I couldn't find a way to display it using URL. "" doesn't work at all. Stream it from an action/servlet/etc? Dave ---

Re: Performance issue with large data(such as images)

2009-06-11 Thread fireapple
newton.dave wrote: > > >> "" doesn't work at >> all. > > Stream it from an action/servlet/etc? > > Dave > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.