java - Profiling/debug JBoss AS/Seam application -
recently started developing jboss seam web application (auction site). far i've come along great, ran long loading times ( on resources javascripts/css files, pages slow ).
is there profiler jboss seam/as can see classes in memory , etc?
what reason loading times high on css/js/images files? due developing reasons haven't enabled web-cache filters offered seam yet. vm arguments
-drebel.log=true -noverify -javaagent:"c:\program files\zeroturnaround\jrebel\jrebel.jar" -drebel.hibernate_plugin=true -drebel.seam_plugin=true -drebel.jboss_plugin=true -drebel.allow_bytecode_proxy=true -dprogram.name="jboss 5.1 runtime" -djava.endorsed.dirs="c:\java\jboss\as5.0\lib\endorsed" -dproject.home="c:\java\jboss\as5.0\server\default\deploy\botenveiling.war" -xms1024m -xmx1024m -dsun.rmi.dgc.client.gcinterval=3600000 -dsun.rmi.dgc.server.gcinterval=3600000 -xx:+useconcmarksweepgc -xx:+cmspermgensweepingenabled -xx:+cmsclassunloadingenabled -xx:maxpermsize=512m -xverify:none
i did tweaks (removed of default applications): http://www.jaysonjc.com/programming/how-to-configure-jboss-as-production-settings-and-tuning-tips.html
i using war-explode deploy files server.
setup:
- jboss application server 5.1
- jboss seam 2.2.2cr1
- jrebel
- primefaces 1.1
system
- intel core 2 duo e6550
- 4 gb of memory
i wrote blog post showed interceptor can measure each method call components using.
this way can see methods use long time, , can find bugs in code. take here , scroll down second example.
you output this:
284.94 ms 1 foobean.getrandomdroplets() 284.56 ms 1 gahbean.getrandomdroplets() 201.60 ms 2 sohbean.searchrateddoodleswithinhead() 185.94 ms 1 frobean.dosearchpopular() 157.63 ms 1 frobean.dosearchrecent() 42.34 ms 1 foobean.fetchmostrecentyodel() 41.94 ms 1 gahbean.getmostrecentyodel() 15.89 ms 1 foobean.getnoofyodels() 15.00 ms 1 gahbean.getnoofyodels() 9.14 ms 1 sohbean.mainyodels() 1.11 ms 2 sohbean.trackhoorayevent() 0.32 ms 1 frobean.reset() 0.22 ms 43 nohbean.thumbpicture() 0.03 ms 18 foobean.getmostrecentyodels() 0.01 ms 1 nohbean.profilepicture() 0.01 ms 1 frobean.settodefault() 0.01 ms 1 frobean.getrecentmarker()
second, there profiling page on seam knowledge-base, it's not really.
dan allen wrote nice 2 part post speeding jsf application worth read.
a firebug tool must javascript/ajax performance tooling
Comments
Post a Comment