RE: Possible optimization?

2007-06-19 Thread Gaston Dombiak
I'm in the middle of some optimizations so I'm still collecting that data. However, I can say that ~50% of the consumed memory (250MB total used) was coming from ConcurrentHashMaps and the maps were practically "empty". There are/were 2 places using those maps 1) MINA and 2) Openfire internal th

Re: Possible optimization?

2007-06-19 Thread James Im
I think it might be a good change BUT you didn't say how big was the benefit of this change on memory consumption. Could you tell us how much memory the JVM was using before and after the change under the same load? Gaston Dombiak wrote: Hey, We are opening 60K concurrent connections to Openf

Re: Possible optimization?

2007-06-19 Thread peter royal
On Jun 19, 2007, at 7:07 PM, Trustin Lee wrote: WDYT? Shall we revert back to HashMap? Collections.synchronizedMap( new HashMap() ) sounds good :) -pete -- (peter.royal|osi)@pobox.com - http://fotap.org/~osi smime.p7s Description: S/MIME cryptographic signature

Re: Possible optimization?

2007-06-19 Thread Trustin Lee
On 6/20/07, Mark Webb <[EMAIL PROTECTED]> wrote: I think this is great information. I would like to see some test cases that support your information. In addition to the test cases, what environment/IDE are you performing this research on? Thanks and great work! I think Gaston's comment is c

Re: How to use IoHandler in ClientSide

2007-06-19 Thread Mark Webb
Although you are not using UDP, you can check out my UDP tutorial to get insight as to how this would be done. Here is the link: http://mina.apache.org/udp-tutorial.html On 6/19/07, 李健 <[EMAIL PROTECTED]> wrote: Hi, I'm developing my application with MINA1.1.0, It's working fine in Server

Re: Possible optimization?

2007-06-19 Thread Mark Webb
I think this is great information. I would like to see some test cases that support your information. In addition to the test cases, what environment/IDE are you performing this research on? Thanks and great work! On 6/19/07, Gaston Dombiak <[EMAIL PROTECTED]> wrote: Hey, We are opening 6

Re: MessageDecoder, decodable and the ByteBuffer

2007-06-19 Thread Trustin Lee
On 6/20/07, James Apfel <[EMAIL PROTECTED]> wrote: Hi Trustin, the bug was on my side. I was accidently reading too many bytes from the ByteBuffer (the message and parts of the next message). Remember: always slice and set the limit! Good to hear that you fixed a bug. Please come again to us

Re: DNS Protocol (Was: DHCP Protocol Home)

2007-06-19 Thread Trustin Lee
Hi Brian, On 6/20/07, Brian Wellington <[EMAIL PROTECTED]> wrote: On Tue, 19 Jun 2007, Trustin Lee wrote: > On 6/19/07, Stefano Bagnara <[EMAIL PROTECTED]> wrote: >> >> What if there were a "frequently updated" dnsjava, containing all of the >> >> useful community-contributed patches (including

Re: MessageDecoder, decodable and the ByteBuffer

2007-06-19 Thread James Apfel
Hi Trustin, the bug was on my side. I was accidently reading too many bytes from the ByteBuffer (the message and parts of the next message). Remember: always slice and set the limit! James On 6/19/07, Trustin Lee <[EMAIL PROTECTED]> wrote: Hi James, On 6/18/07, James Apfel <[EMAIL PROTECTED]>

How to use IoHandler in ClientSide

2007-06-19 Thread 李健
Hi, I'm developing my application with MINA1.1.0, It's working fine in ServerSide, But I'm confused by using IoHandler in ClientSide. I'll send R1 to the server and its response data is P1 and there will be R2-P2, R3-P3 etc. In the past time, I wrote code like this: byte[] re

Possible optimization?

2007-06-19 Thread Gaston Dombiak
Hey, We are opening 60K concurrent connections to Openfire and generating some heap dumps to analyze memory consumption. And we found something that really surprised us since we never heard about it. A very big part of the total memory is being consumed by ConcurrentHashMaps. The ConcurrentHash

[jira] Commented: (DIRMINA-385) SSLFilter starts writing to session before filter chain is complete

2007-06-19 Thread Trustin Lee (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12506340 ] Trustin Lee commented on DIRMINA-385: - I started to think it's not really an issue but a question about a certai

[jira] Commented: (DIRMINA-385) SSLFilter starts writing to session before filter chain is complete

2007-06-19 Thread Trustin Lee (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12506337 ] Trustin Lee commented on DIRMINA-385: - I suggested a work around. I would have marked this issue as 'won't fix'

[jira] Commented: (DIRMINA-385) SSLFilter starts writing to session before filter chain is complete

2007-06-19 Thread Chris Audley (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12506311 ] Chris Audley commented on DIRMINA-385: -- Only using addLast() to add filters to a Mina session will not prevent

Re: [jira] Commented: (DIRMINA-364) Include Runtime.getRuntime().availableProcessors() into the constructors of SocketAcceptor

2007-06-19 Thread Mark Webb
Thanks for pointing this out. The change has been made. On 6/19/07, Kenji Hollis (JIRA) <[EMAIL PROTECTED]> wrote: [ https://issues.apache.org/jira/browse/DIRMINA-364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12506225] Kenji Hollis commented on DIRMINA-

[jira] Commented: (DIRMINA-341) Allow binding multiple SocketAddresses per IoAcceptor.

2007-06-19 Thread Kenji Hollis (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12506226 ] Kenji Hollis commented on DIRMINA-341: -- When a message comes in in the message handler portion of the IO code,

[jira] Commented: (DIRMINA-364) Include Runtime.getRuntime().availableProcessors() into the constructors of SocketAcceptor

2007-06-19 Thread Kenji Hollis (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12506225 ] Kenji Hollis commented on DIRMINA-364: -- I propose: (Runtime.getRuntime().availableProcessors() + 1) As this i

[jira] Commented: (DIRMINA-374) ArrayIndexOutOfBoundException in SocketAcceptor and SocketConnector

2007-06-19 Thread Srikanth Veeramachaneni (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-374?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12506188 ] Srikanth Veeramachaneni commented on DIRMINA-374: - This might be very trivial, but I don't believe t

Re: DNS Protocol (Was: DHCP Protocol Home)

2007-06-19 Thread Rob Butler
Hello all, I've been out of town, so I am just catching up on my e-mail now. I humbly pose myself as the "DNS Expert" you've been looking for. Here's one of my public projects you can take a look at: http://bind-dlz.sf.net . I have already started work on a new Java DNS library. I expect I wi

Re: DNS Protocol (Was: DHCP Protocol Home)

2007-06-19 Thread Trustin Lee
On 6/19/07, Stefano Bagnara <[EMAIL PROTECTED]> wrote: >> What if there were a "frequently updated" dnsjava, containing all of the >> useful community-contributed patches (including dnsjnio), released >> under a >> BSD license - would that be a good solution? > > Absolutely. That is the best of

Re: DNS Protocol (Was: DHCP Protocol Home)

2007-06-19 Thread Julien Vermillard
On Tue, 19 Jun 2007 09:27:56 +0200 Stefano Bagnara <[EMAIL PROTECTED]> wrote: > Trustin Lee ha scritto: > > On 6/18/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >> Hi - > >> > >> I'm sorry for the delay in replying - I've just returned from > >> holiday. > >> > >> "Trustin Lee" <[EMAIL PROTE

[jira] Commented: (DIRMINA-353) Import AsyncWeb from Safehaus

2007-06-19 Thread dave irving (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12506087 ] dave irving commented on DIRMINA-353: - Hey everyone! Finally my link to the outside world has been restored, an

Re: DNS Protocol (Was: DHCP Protocol Home)

2007-06-19 Thread Stefano Bagnara
Trustin Lee ha scritto: > On 6/18/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> Hi - >> >> I'm sorry for the delay in replying - I've just returned from holiday. >> >> "Trustin Lee" <[EMAIL PROTECTED]> wrote on 12/06/2007 16:02:06: >> >> > > As we currently depend on a "not-so-frequently-upda