>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
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
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
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
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
This test sounds about as straightforward as parallel parking a freight
train on a one lane road.
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
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
>
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,
--- 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
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
--- 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
--
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
--- 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
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
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
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
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
;,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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
-
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
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
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
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
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.
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
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
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
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
--
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
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
>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
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
--
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
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
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
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
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
---
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.
52 matches
Mail list logo