[Design of JBoss Profiler] - 3 questions (mbean pause, timestamp and memory allocation pe
by mmrack
Hi All,
I'm trying profiling with JBoss Profiler 2.0.Beta1 on JBoss 4.2.2.GA and Sun JDK 1.5.02 over Windows XP sp2.
All working fine, but I have three big questions:
1. Where are the pause operation in Profiler MBean? The only similar button is "enable/disable profiler", but after called, the profiler cannot be resumed. What's wrong?
2. Does some option to mark timestamps in method calling tree, like this example:
| Frame: 1
| SysTime Count Ms (T) Ms (N) % (T) % (N) Method
| 1213488137703 1 5029,14 0,11 100,00 0,00 br.com.treelayer.sandbox.ejb.profiled.ProfiledEjb#metodo1(String)
|
3. How to show allocation memory per method, like, "in method M, X Objects are allocated, where x1 are Strings, x2 are Lists, x3 are ClassX, and so". In this case, are possible show the memory allocation (bytes) too ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4158173#4158173
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4158173
16 years, 3 months
[Design of EJB 3.0] - Unit Tests for Unbinding References from JNDI in EJB3 Proxy
by ALRubinger
Jaikiran:
Got another one I might be able to goad off to you. ;)
Today I committed enhancements to /projects/ejb3/trunk/proxy/src/main/java/org/jboss/ejb3/proxy/jndiregistrar/JndiSessionRegistrarBase.java, specifically the addition of an "unbindEjb" method. The responsibility of this function is to remove all JNDI bindings for the specified EJB, and is likely called upon undeployment.
Left the unit tests for you, figured it'd be a good entry into getting deeper into the EJB3 Proxy component codebase to see how things work. What we'll need is a test to:
* Deploy an EJB (there are already a couple sample ones available in src/test/java)
* Test that all expected bindings are there (very similar to what is done "proxy session" tests)
* Undeploy the EJB
* Test that all the previous bindings are no longer available (ie. NameNotFoundException on lookup)
The tests themselves won't be tricky, but the setup, deployment, and creating of the test environment should prove educational. Questions either to here or IRC @ Freenode, #jboss-ejb3.
http://jira.jboss.com/jira/browse/EJBTHREE-1420
I'll see if I can't cook up another project after this that'll get you writing code in src/main/java, and off these tests. :)
S,
ALR
PS - I still can't assign you tasks in JIRA; will see what I can do about this.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4158172#4158172
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4158172
16 years, 3 months