>From the java.nio.ByteBuffer javadoc (my emphasis added):
anonymous wrote :
| A direct byte buffer may be created by invoking the allocateDirect factory method of this class. The buffers returned by this method typically have somewhat higher allocation and deallocation costs than non-direct buffers. The contents of direct buffers may reside outside of the normal garbage-collected heap, and so their impact upon the memory footprint of an application might not be obvious. It is therefore recommended that direct buffers be allocated primarily for large, long-lived buffers that are subject to the underlying system's native I/O operations. In general it is best to allocate direct buffers only when they yield a measureable gain in program performance.
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4214446#4214446
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4214446
It's a well known factor that direct bytebuffer allocation is much slower than non direct byte buffers.
If you think about it when you allocate a non direct byte buffer then it basically just needs to dereference a pointer to some memory on the Java heap, which is very quick. But for a direct buffer, it has to malloc real memory from the OS, and do a bunch of other house keeping.
So yes, if you're using direct byte buffers it pays to re-use them.
You should speak to Trustin about this. I believe Netty uses non direct buffers for exactly this reason.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4214413#4214413
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4214413
Hi friends,
I have created 1 portlet class and 2 jsp file fil1 and fil2.
Fil1 has a submit button and some form fields which when clicked should transfer the data to class jsp file fil2 must be displayed.
But when i am submiting the page i found that processAction method in portlet class was not executing and due to this i was not getting desired o/p
Can anyone plz help me
Thanks in advance
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4214410#4214410
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4214410
Alejandro sais,
anonymous wrote :
| I created a 3.2.6.GA branch for the jsf-console, fixed a broken ejb-ref
| in jboss-web.xml and set the version numbers in the poms appropriately.
|
| I took the console for a test drive with the websale process and it
| works just fine. As soon as Hudson completes, it should be ready to fly.
|
| We did not agree on who would release it. If any of you does it, would
| you please document your steps so I can do it in the future?
|
I verified that this is ok and will recreate the tag from it.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4214401#4214401
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4214401