The Travel Assistance Committee is taking in applications for those wanting
to attend ApacheCon US 2008 between the 3rd and 7th November 2008 in New
Orleans.
The Travel Assistance Committee is looking for people who would like to be
able to attend ApacheCon US 2008 who need some financial
/
--
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org
org.apache.mina.proxy.NTLMTest.testType1Message on windows Vista
The Apache MINA PMC.
--
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org
--
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org
---BeginMessage---
Sign up for ApacheCon US by 14 August and save up to $500!
This year's ApacheCon US promises to deliver our most extensive program to
date, and largest anticipated gathering of the global
to be ready for write.
Now, that leads to something different to deal with : potential OOM
errors. You have to handle the idle event, and kill the long lasting
message by closing the malevolent sessions.
Life stinks ;)
--
Regards,
Cordialement,
Emmanuel Lécharny
www.nextury.com
Leandro Casadei a écrit :
On Fri, Jan 15, 2010 at 2:54 PM, Emmanuel Lécharny elecha...@apache.orgwrote:
Where in your code is the disconnect() method called ?
It's called somewhere else.
Not very helpful ;)
The same place where connect() is called.
The code i've posted is a piece
version you are
using, have you implemented a JMS protocol codec ?
--
Regards,
Cordialement,
Emmanuel Lécharny
www.nextury.com
!
--
Regards,
Cordialement,
Emmanuel Lécharny
www.nextury.com
) in the logs on
occasion concerns me because it's possible that those final messages
are not actually being sent to the client, which make my protocol
broken.
I understand. Not sure I can come with a solution though, at least not
immediately :/
--
Regards,
Cordialement,
Emmanuel Lécharny
, I agree that it's
difficult to tell exactly what's going wrong with this stack trace...
Is it possible to see the code of your encoder ?
--
Regards,
Cordialement,
Emmanuel Lécharny
www.nextury.com
--
Regards,
Cordialement,
Emmanuel Lécharny
www.nextury.com
)
In 2.0.0-RC1, when we met this kind of problem, we ditch the selector
and register all the keys on a new selector.
--
Regards,
Cordialement,
Emmanuel Lécharny
www.nextury.com
the time it takes to process a request ? 1 seconds is
like 1000 years for a computer ...
--
Regards,
Cordialement,
Emmanuel Lécharny
www.nextury.com
the response to the client. No more
problem with the number of clients you can handle in parallel...
--
Regards,
Cordialement,
Emmanuel Lécharny
www.nextury.com
Emmanuel, thanks for the reply
JAVA IS
java version 1.6.0_19
Java(TM) SE Runtime Environment (build 1.6.0_19-b04)
Java HotSpot(TM) Server VM (build 16.2-b04, mixed mode)
MINA 1.1.4
Woot !!! It's just 3 years old ! Have you tried 1.1.7 ?
--
Regards,
Cordialement,
Emmanuel Lécharny
passed to the acceptor based server; even the encoder's encode()
method is not getting called. What am I missing?
Maybe you are not writing anything onto the session (ie the buffer is
empty *or* you forgot to flip it before calling the session.write( buf ) ) ?
--
Regards,
Cordialement,
Emmanuel
it in
different places in the chain, so you'll be able to know which filters are
called.
-- Regards,
Cordialement,
Emmanuel Lécharny
www.nextury.com
--
Regards,
Cordialement,
Emmanuel Lécharny
www.nextury.com
either :)
--
Regards,
Cordialement,
Emmanuel Lécharny
www.nextury.com
Forwarded to the correct mailing list
Original Message
On Thu, 17 Jun 2010 12:13:07 +0200, Emmanuel Lecharny
elecha...@gmail.com
wrote:
On 6/17/10 11:42 AM, Jens Reimann wrote:
Maybe this is not a MINA issue but a Windows issue:
http://support.microsoft.com/kb/823764
Forwarded to the correct ML.
Please be careful when replying...
On Thu, 24 Jun 2010 13:55:57 +0200, Emmanuel Lecharny
elecha...@gmail.com
wrote:
I
set the buffer size to 1, so that the data transfer from client to
server
should be horrible slow. But it isn't. So the change I made on
() a message, it's not going to end up in the message handlers,
right?
Not sure that I understand what you mean by broadcast() ?
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
,
Emmanuel Lécharny
www.iktek.com
. But I also have to keep the
pending buffer in the session, so that I can continue decoding the data
as soon as I receive some more bytes.
That works pretty well.
At this point, I think you get it, everything else is just a matter of
taste :)
--
Regards,
Cordialement,
Emmanuel Lécharny
the message before send it to the server and I got the right
response.
Good !
Thanks a lot for your ideas.
You're welcome !
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
explains me why this causes an exception during the TCP/IP
exchanges.
No idea. I don't know what is the protocol you are trying to implement,
nor how you implemented it. Track down the exception origine, you'll get
a clue about what's going on.
--
Regards,
Cordialement,
Emmanuel Lécharny
with ? Its hard to know what your
codec is supposed to produce without this input
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
.
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
to
ignore such WriteRequest.
That's an option.
We are trying to figure out the best way to deal with such problem form 3.0.
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
On 9/14/10 1:07 PM, Guy Itzhaki wrote:
No.
This is the filter I'm using:
new ExecutorFilter(Executors.newFixedThreadPool(2))
Try to use the OrderedThreadPool then.
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
this (it was about
socket opened in a web browser when using MINA).
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
On 9/18/10 7:04 PM, Charles Hudak wrote:
The sessions are closed in the session handler when it receives the
terminate session ack from the server:
Ok, fine then.
Any idea about what are the opened sessions ?
nestat -a ?
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
if they are hitting the same problem).
Thanks !
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
,
Cordialement,
Emmanuel Lécharny
www.iktek.com
The ASF for that.
However, i'm not sure that the code itself using a LGPL jar should be
excluded. We will discuss this again on the dev ML.
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
with the contextual data : they are associated with the session,
not with the thread processing them.
All in all, you should not taking care of the threads your session is
running on with MINA. Attach you data to the user's session, this is the
way to go.
--
Regards,
Cordialement,
Emmanuel Lécharny
to profile your application
to see where exactly you have a bottleneck. If it's the DB, then using
some cache could help.--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
the throughput, then you have to think about
having more than one server...
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
(DIRMINA-678) works well.
Otherwise, once we decide to release, it's a matter of 72 hours to get
something out.
2.0.3 is a bug fix release, so we don't have any roadmap, we can more or
less release whenever we like (ie, even twice a week if needed).
--
Regards,
Cordialement,
Emmanuel
The Apache MINA PMC.
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
.
I'm going to investigate the problem. Can you fill a JIRA for your problem ?
Thanks !
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
won't have a baby in one months.
Also you never mentioned what were your constraints nor the kind of data
you are transmitting. For instance, we have no idea if they can be
compressed, or not.
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
On 4/26/11 11:17 AM, Francesco Vivoli wrote:
I'm stepping in here, as I also have noticed the same issue. I think I
posted about this on the ml.
It seems that this pattern doesn't show up under *nix (Linux/BSD) though...
Are you on windows ?
--
Regards,
Cordialement,
Emmanuel Lécharny
On 4/26/11 2:18 PM, Francesco Vivoli wrote:
We have seen this on windows yes (albeit I don't have a windows machine
myself, our pre-production and production environments run on windows)
How many CPU/Core do you have on this machine ?
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
if (isSignInReply(message))
nextFilter.sessionOpened(session);
}
Thanks
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
On 9/1/11 8:38 AM, Sam Mizanin wrote:
Why is the asyncweb stalled?
Good question... Not enough volunteers, I guess.
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
project in the ASF
incubator : http://incubator.apache.org/deft/
-- Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
On 9/1/11 9:13 AM, Sam Mizanin wrote:
There are no files in the trunk to checkout.
Oops, sorry, it's on http://svn.apache.org/viewvc/incubator/deft/sandbox/
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
to work on it.
You can be one of them, contributing is easy :
http://directory.apache.org/community%26resources/contribute.html (it's
not the MINA page, but somehow, it's the same process)
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
more than one thread executing some
costly action, like decoding an expensive message, or accessing a
database. This allows other users who are less demanding to be served
whatever happens.
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
), as soon as one of them is busy processing one
long request, all other sessions associated with this thread will also
be enqueued, waiting for the thread to be done. Using an executor can
allow those pending requests to be processed.
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
Forwarded this message to mina's ML.
1) the socket configuration is really important, more specifically the in and out
buffers.In your case, you should configure large buffers (I think the default is
4 kb, from the topof my head).
Does the buffer size makes Mina to adjust the TCP packet
for event
for other sessions (returned to thread pool used by Exec Filter or
smth like this)?
Of course.
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
into the socket).
(see http://www.ibm.com/developerworks/library/j-zerocopy/)
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
of incoming requests, so you
won't usually lose any requests. The only problem is that one costly
request will slow down all the others.
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
which DB
you will talk to, and it's your application business, not MINA's.
Keep in mind that MINA is *just* a NIO framework, it won't brew your
coffee...
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
in your chain. If so, then add it at the end of the chain,
not at the beginning. Unless the decoding is an expensive operation, then you
should use an OrderedThreadPoolExecutor, which will push any messages arriving
on a session to the same thread.
--
Regards,
Cordialement,
Emmanuel Lécharny
client
connection remains in TIME-WAIT state, how can I set SO_REUSEADDR option in
MINA so that kernel allows to start even if there are connections in WAIT state.
acceptor.getSessionConfig().setReuseAddress( true );
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
many little flaws we don't
like, and some that are not easy to fix, so we do think that a complete
rewrite is probably a better idea (thus this MINA 3 effort).
This include documentation...
Thanks a lot for your patience !
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
.
Otherwise, the answer is still 42...
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
certainly exhausting the files you can open with such a config.
See
http://gnufreakz.wordpress.com/2009/08/12/increase-ulimit-in-centos/,
for instance or
http://lists.centos.org/pipermail/centos/2005-February/002656.html (just
2 of the top google responses).
--
Regards,
Cordialement,
Emmanuel
On 12/5/11 6:33 PM, Antonio Rodriges wrote:
Thank you, Emmanuel,
we'll try this to do with our admin
Ok. Let me know if that solves your problem :)
Feel free to post if some more help is needed.
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
incoming connection) and the many sockets that manage the clients
communications (one per client).
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
, handling the sessionClose
event. If you never receive this even, that means the session is never
closed. You should also add some logs (or the log filter) to see if the
session.close() is really called.
It's likely to be a bug in your application...
--
Regards,
Cordialement,
Emmanuel Lécharny
On 12/12/11 12:13 AM, antares wrote:
Emmanuel do you think i can use another type of thread executor instead
OrderedThreadPoolExecutor ? or nothing ?
Do you really need an executor ?
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
will concume CU, and
dedicate a pool of thread for them, and let the other messages being
processed by some other threads (assuming there is a upper limit of
thread you can create).
Bottom line : there is no rule here, it's all about tuning and
experimenting :)
--
Regards,
Cordialement,
Emmanuel
Lécharny
www.iktek.com
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
it, and then what are your options.
-- Regards, Cordialement, Emmanuel Lécharny www.iktek.com
, Cordialement, Emmanuel Lécharny www.iktek.com
Ok so after removing executor it still doesnt work as should. Its basicly
the same. Messages are delivered randomly, sometimes they are, sometimes
after request for second time, sometimes they arent at all. And again, only
happens when im trying to send
the data structure you are expecting.
I hope I have explained clearly what MINA does and where to check for a
potential error. Tell me if you need more direction.
Thanks !
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
of a complete message
How to do this ? besides example which i put in first post.
see my answer to your previous question above.
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
else, depending on your local env). The best is to
decode using one specific encoding.
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
that it working 100%. Im running out of
ideas...
Sorry, your bug, your pain. I have already spent too much of my time to
try to explain you how MINA was working, I'm not going to code your
application.
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
Forwarded this message the the users ML...
On Thu, 26 Jan 2012 09:12:59 +0100, Emmanuel Lecharny wrote:
On 1/26/12 4:02 AM, Chad Beaulac wrote:
Punt on Java 6 and just goto Java 7 with Mina 3?
That could be an option, but I'm afraid that Java 6 will be around
for a few years before Java
,
Cordialement,
Emmanuel Lécharny
www.iktek.com
.
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
certainly... JIRA :)
Thanks !
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
,
Cordialement,
Emmanuel Lécharny
www.iktek.com
, please delete this email immediately.
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
radar.
/me waiting for your feedback with the suggested fix on Vysper (even if
I know nothing about Vysper code base).
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
... MINA is lacking a set of exceptions to properly
inform the user about what is going on.
Can you fill a JIRA requesting for at least an ErrorCode to be returned ?
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
this part in MINA 3.
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
Le 2/27/12 8:41 PM, Lohse Chris a écrit :
Emmanuel,
Thanks for the lesson. I'll find another way!
If you need to read a LDIF file, you can use the LdifReader class from
the Ldap API. It converts a LDIF formatted file to a java object.
--
Regards,
Cordialement,
Emmanuel Lécharny
/apache/mina/example/tapedeck/
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
me think that there may be some setting in the Apache Mina
for the TCP connection number.
What is the config you are using ?
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
should be changed to
Short.MAX_VALUE to save on heap space. Any thoughts? David
This is just a configuration parameter. It will be used only if the
ByteBuffer to dump is bigger than Integer.MAX_VALUE, something that is
*very* unlikely to happen...
--
Regards,
Cordialement,
Emmanuel Lécharny
Le 3/29/12 2:15 PM, Guy Itzhaki a écrit :
Dear forum,
I'm using mina 2.0.2 and once in a while I get this error in the
console:
Have you tried with the latest MINA version (ie 2.0.4) ?
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
:/
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
line number, and I can't debug
the code...
Can you connect on IRC, channel #mina so that we chekc a few other
things ? I'm a bit clueless here..
Appreciate your help on that.
Guy
-Original Message-
From: Emmanuel Lécharny [mailto:elecha...@gmail.com]
Sent: Thursday, March 29, 2012 5:11
, the
CumulativeProtocolDecoder will manage the buffer.
The next time my Decoder is called he decodes the message which is in Buffer from
previous double message and the current one is in the end of the buffer an
would´nt be decoded.
You most certainly flip the buffer. Don't.
--
Regards,
Cordialement,
Emmanuel Lécharny
a metaphore, MINA is just the injector in the engine of your car.
Design the car, the engine, then we will be able to give adives to tune
the injector assuming that everything else is already tuned...
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
you have found...
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
logging is important.
The mina jar is distributed with the slf4j-api-1.6.1.jar,
jcl-over-slf4j-1.6.1.jar and commons-logging-1.0.3.jar packages.
Check on
http://mina.apache.org/dyn/closer.cgi/mina/2.0.4/apache-mina-2.0.4-bin.tar.gz
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
,
Cordialement,
Emmanuel Lécharny
www.iktek.com
Le 5/4/12 11:00 PM, dipesh a écrit :
On May 3, 2012, at 2:49 PM, Emmanuel Lécharny wrote:
Le 5/3/12 9:37 PM, dipesh a écrit :
Hello everybody,
I have created a Mina proxy and added SSL support to it, following the two
examples given on the site. i am running into two issues now:
Which MINA
the way
we manage SSL in the examples :
http://mina.apache.org/report/trunk/xref-test/org/apache/mina/example/echoserver/ssl/package-summary.html
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
wireshark traces to it.
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
of the protocol itself
(how do we handle disconnection, fragmentation, retry, etc)
Hope it helps...
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
-core/src/main/java/org/apache/mina/core/service/
and the current implementations here :
http://svn.apache.org/viewvc/mina/tags/2.0.4/mina-core/src/main/java/org/apache/mina/transport/socket/
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
mean.
The getLastReadTime() method return the time (in ms) when the server has
received a message for the last time, or the last time some bytes have
been read.
Isn't it what you expect ?
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
this, so that we can discuss this
option, which seems reasonnable to me.
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
probably woraround your problem by checking that the counter is
0 when you first check the heartbeat, then wit for one more heartbeat.
Also note that I'm just checking the code, it would be easier to check
while debugging it to be sure I'm not missing something.
--
Regards,
Cordialement,
Emmanuel
1 - 100 of 540 matches
Mail list logo