Ok I am dragging this into the users list
You mix things up here, Flex is a pure client side technology which runs
in a plugin while JSF is server side which renders html into your
presentation layer.
So if you need memory profiling you have to be clear that following happens
a) Flex everything is loaded into a plugin and runs there, the server
provides services
b) JSF: You have a server wich renders the html
c) JSF: The browser itself not a runtime renders the page
So in JSFs case usually you have way less happening on the client and an
occasional page refresh cleans up the memory (of course if you want to
go entirely refresh less then you have more chances of running into mem
issues). So most people are not really concerned about the client side
memory consumption of a web page like most people are not concerned
about it generally in web applications, if you just follow some golden
rules regarding the media displayed like image sizes etc...
So for profiling:
a) Server side profiling is easy grab any good old java profiler there
is and you can do memory and performance profiling on what happens on
the server side. Netbeans has an excellent integrated profiler for
instance which comes with the IDE for free.
b) Pure browser profiling, for rendering the pages etc... how many
objects there are, yslow is ok it gives you not a memory indication (the
memory display of your os does) but it gives you indication on where a
page still can be optimized for your loading times.
For javascript performance profiling Firebug does an excellent job if
your page has lots of javascript and you run into issues.
Javascript memory profiling, i am not aware of any tool by now which is
free there are some commercial offerings, if someone knows any I would
be happy to know it myself. For IE6 there is sieve which detects mem
leaks, but outside of that I am not to aware of anything in this area.
General performance profiling of the webpage/aka load tests JMeter as
others have pointed out is a great tool.
Sorry for not being able to point towards a all in one solution but you
comparing JSF with Flex is like comparing apples with oranges.
Werner
Am 12.03.12 18:41, schrieb ayouB __:
Hi,
I want know if can i measure the memory size of my presentation layer (i
give an example with Adobe Flex cause ActionScript Language is an
Oriented Object Language so the presentation layer can be measured by
measuring its patterns which are the ActionScript Objects), can we do
this with JSF and if so what's the most popular plug-in charged to
execute that task ?
PS : I'm a new developper on JSF technology :)
Thanks.
------------------------------------------------------------------------
Date: Mon, 12 Mar 2012 13:31:15 -0400
Subject: Re: Profiling tool for JSF
From: [email protected]
To: [email protected]
Hello,
What are you trying to measure that you can't get from a standard Java
profiler? Or are you just trying to time parts of the life cycle?
On Monday, March 12, 2012, ayouB __ <[email protected]
<mailto:[email protected]>> wrote:
> Hi every one,
>
> I'm asking if there is a possibility to do a profiling test for a jsf
application (like what flash builder does for Adobe Flex), my question
is about profiling only the prensentation layer build with MyFaces 2.1.6
+ Richfaces 4 not the whole application (as it's known Adobe Flex is
Rich Client which it's not the case for JSF). If so, is there a tool or
a plug-in which does this ?
>
> Thanks.
>
--
___
Kito D. Mann | twitter: kito99 | Author, JSF in Action
Virtua, Inc. | http://www.virtua.com <http://www.virtua.com/> | JSF/Java
EE training and consulting
http://www.JSFCentral.com <http://www.jsfcentral.com/> - JavaServer
Faces FAQ, news, and info | twitter: jsfcentral
+1 203-404-4848 x3
* Listen to the latest headlines in the JSF and Java EE newscast:
http://blogs.jsfcentral.com/roller/editorsdesk/category/JSF+and+Java+EE+Newscast
* Sign up for the JSFCentral newsletter: http://oi.vresp.com/?fid=ac048d0e17