You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by wolverine my <wo...@gmail.com> on 2006/07/26 12:20:52 UTC

How to stop IoAcceptor?

Hi!

How can I shutdown the server (or the IoAcceptor)?

Re: http server - why can't work on other PC?

Posted by Emmanuel Lecharny <el...@gmail.com>.
There must be something wrong in the HTTP layer, probably a synchronization
issue.

If you provide us more information about what exactly you are doing, then we
may have a chance to find out what is happening.

If you have a stack trace, a jstack, a kill -3, the sources, the logs,
whatever usefull info , then we will be able to help. Here, we are like
blinds in a forest...

Emmanuel

On 8/2/06, Eugene Labunsky <el...@trendmedium.com> wrote:
>
> Is it based on MINA http? Socket part is working fine ... Also I like
> notice - problems with long http data. Short (from 3-4 lines of data)
> server
> sends without error. But when I try send 100 lines of data in one http
> reply
> it hold. 1 cpu server working fine this time.
>
> >Just for your information, Apache DirectoryServer is buil above MINA and
> it
> >has been tested on a 4 CPU server, without any problem.
>
> >There must be something wrong elsewhere :)
>
> >
> > >> I have add to my socket server http part (based on http server
> sample).
> > >> I have strange problem. For the same settigns it on my PC it's
> working
> > >> fine,
> > >> but on other servers it have not reply (only part which need send
> > around
> > >> 100-200 long lines).
> > >> I tried LINUX & WIN 2003 server - the same... Long reply do not work.
> > >> Logs show that reply made by server and need to be sent, but client
> > http
> > >> have not it from that PCs (sure finally part with out.flush(); kept).
> >
> > > Could you provide us with some more information please? What version
> of
> > > MINA, JRE, etc are you using? A bug has recently been fixed in
> > > c(used by StreamIoHandler). Without this bug fix I
> > > saw strange behaviour with a modified version of the http server
> > > example. I got partial response just like you're experiencing. I'm
> using
> > > Linux here so I have no idea if it's any different on Windows but I
> > > doubt that it is.
> >
> > I'm using last build of MINA (0.9.4 build) and last JRE also.
> > Looks like it can't work on 2 CPU servers (4 CPU in task manager). I
> have
> > tested it with SERVER 2003 on one CPU and it's working fine. Also on XP
> > with
> > one CPU it's working fine too.
> >
> > Could you send me MINA jar with StreamIoHandler?
> >
> > Regards,
> > Eugene Labunsky.
> > http://www.TrendMedium.com - MetaStock Add-on
> >
> >
>
>
> --
> Cordialement,
> Emmanuel L?charny
>
>


-- 
Cordialement,
Emmanuel Lécharny

Re: http server - why can't work on other PC?

Posted by Eugene Labunsky <el...@trendmedium.com>.
Is it based on MINA http? Socket part is working fine ... Also I like 
notice - problems with long http data. Short (from 3-4 lines of data) server 
sends without error. But when I try send 100 lines of data in one http reply 
it hold. 1 cpu server working fine this time.

>Just for your information, Apache DirectoryServer is buil above MINA and it
>has been tested on a 4 CPU server, without any problem.

>There must be something wrong elsewhere :)

>
> >> I have add to my socket server http part (based on http server sample).
> >> I have strange problem. For the same settigns it on my PC it's working
> >> fine,
> >> but on other servers it have not reply (only part which need send
> around
> >> 100-200 long lines).
> >> I tried LINUX & WIN 2003 server - the same... Long reply do not work.
> >> Logs show that reply made by server and need to be sent, but client
> http
> >> have not it from that PCs (sure finally part with out.flush(); kept).
>
> > Could you provide us with some more information please? What version of
> > MINA, JRE, etc are you using? A bug has recently been fixed in
> > c(used by StreamIoHandler). Without this bug fix I
> > saw strange behaviour with a modified version of the http server
> > example. I got partial response just like you're experiencing. I'm using
> > Linux here so I have no idea if it's any different on Windows but I
> > doubt that it is.
>
> I'm using last build of MINA (0.9.4 build) and last JRE also.
> Looks like it can't work on 2 CPU servers (4 CPU in task manager). I have
> tested it with SERVER 2003 on one CPU and it's working fine. Also on XP
> with
> one CPU it's working fine too.
>
> Could you send me MINA jar with StreamIoHandler?
>
> Regards,
> Eugene Labunsky.
> http://www.TrendMedium.com - MetaStock Add-on
>
>


-- 
Cordialement,
Emmanuel L?charny


Re: http server - why can't work on other PC?

Posted by Emmanuel Lecharny <el...@gmail.com>.
Just for your information, Apache DirectoryServer is buil above MINA and it
has been tested on a 4 CPU server, without any problem.

There must be something wrong elsewhere :)

Emmanuel

On 8/2/06, Eugene Labunsky <el...@trendmedium.com> wrote:
>
> Dear Niklas,
>
> >> I have add to my socket server http part (based on http server sample).
> >> I have strange problem. For the same settigns it on my PC it's working
> >> fine,
> >> but on other servers it have not reply (only part which need send
> around
> >> 100-200 long lines).
> >> I tried LINUX & WIN 2003 server - the same... Long reply do not work.
> >> Logs show that reply made by server and need to be sent, but client
> http
> >> have not it from that PCs (sure finally part with out.flush(); kept).
>
> > Could you provide us with some more information please? What version of
> > MINA, JRE, etc are you using? A bug has recently been fixed in
> > c(used by StreamIoHandler). Without this bug fix I
> > saw strange behaviour with a modified version of the http server
> > example. I got partial response just like you're experiencing. I'm using
> > Linux here so I have no idea if it's any different on Windows but I
> > doubt that it is.
>
> I'm using last build of MINA (0.9.4 build) and last JRE also.
> Looks like it can't work on 2 CPU servers (4 CPU in task manager). I have
> tested it with SERVER 2003 on one CPU and it's working fine. Also on XP
> with
> one CPU it's working fine too.
>
> Could you send me MINA jar with StreamIoHandler?
>
> Regards,
> Eugene Labunsky.
> http://www.TrendMedium.com - MetaStock Add-on
>
>


-- 
Cordialement,
Emmanuel Lécharny

Re: http server - why can't work on other PC?

Posted by Eugene Labunsky <el...@trendmedium.com>.
Dear Niklas,

>> I have add to my socket server http part (based on http server sample).
>> I have strange problem. For the same settigns it on my PC it's working
>> fine,
>> but on other servers it have not reply (only part which need send around
>> 100-200 long lines).
>> I tried LINUX & WIN 2003 server - the same... Long reply do not work.
>> Logs show that reply made by server and need to be sent, but client http
>> have not it from that PCs (sure finally part with out.flush(); kept).

> Could you provide us with some more information please? What version of
> MINA, JRE, etc are you using? A bug has recently been fixed in
> c(used by StreamIoHandler). Without this bug fix I
> saw strange behaviour with a modified version of the http server
> example. I got partial response just like you're experiencing. I'm using
> Linux here so I have no idea if it's any different on Windows but I
> doubt that it is.

I'm using last build of MINA (0.9.4 build) and last JRE also.
Looks like it can't work on 2 CPU servers (4 CPU in task manager). I have 
tested it with SERVER 2003 on one CPU and it's working fine. Also on XP with 
one CPU it's working fine too.

Could you send me MINA jar with StreamIoHandler?

Regards,
Eugene Labunsky.
http://www.TrendMedium.com - MetaStock Add-on 


Re: http server - why can't work on other PC?

Posted by Emmanuel Lecharny <el...@gmail.com>.
Great !!!

On 8/2/06, Eugene Labunsky <el...@trendmedium.com> wrote:
>
> Niklas, send me last release of MINA - mina-core-0.9.5-SNAPSHOT.jar and it
> fixed my problems! Thanks a lot!
>
> >> I have add to my socket server http part (based on http server sample).
> >> I have strange problem. For the same settigns it on my PC it's working
> >> fine,
> >> but on other servers it have not reply (only part which need send
> around
> >> 100-200 long lines).
> >> I tried LINUX & WIN 2003 server - the same... Long reply do not work.
> >> Logs show that reply made by server and need to be sent, but client
> http
> >> have not it from that PCs (sure finally part with out.flush(); kept).
> >>
> >> Regards,
> >> Eugene Labunsky.
> >> http://www.TrendMedium.com - MetaStock Add-on
> >>
> >>
> > Could you provide us with some more information please? What version of
> > MINA, JRE, etc are you using? A bug has recently been fixed in
> > IoSessionOutputStream (used by StreamIoHandler). Without this bug fix I
> > saw strange behaviour with a modified version of the http server
> > example. I got partial response just like you're experiencing. I'm using
> > Linux here so I have no idea if it's any different on Windows but I
> > doubt that it is.
> >
> >
> > HTH
> >
>
>


-- 
Cordialement,
Emmanuel Lécharny

Re: http server - why can't work on other PC?

Posted by Eugene Labunsky <el...@trendmedium.com>.
Niklas, send me last release of MINA - mina-core-0.9.5-SNAPSHOT.jar and it 
fixed my problems! Thanks a lot!

>> I have add to my socket server http part (based on http server sample).
>> I have strange problem. For the same settigns it on my PC it's working
>> fine,
>> but on other servers it have not reply (only part which need send around
>> 100-200 long lines).
>> I tried LINUX & WIN 2003 server - the same... Long reply do not work.
>> Logs show that reply made by server and need to be sent, but client http
>> have not it from that PCs (sure finally part with out.flush(); kept).
>>
>> Regards,
>> Eugene Labunsky.
>> http://www.TrendMedium.com - MetaStock Add-on
>>
>>
> Could you provide us with some more information please? What version of
> MINA, JRE, etc are you using? A bug has recently been fixed in
> IoSessionOutputStream (used by StreamIoHandler). Without this bug fix I
> saw strange behaviour with a modified version of the http server
> example. I got partial response just like you're experiencing. I'm using
> Linux here so I have no idea if it's any different on Windows but I
> doubt that it is.
>
>
> HTH
>


Re: http server - why can't work on other PC?

Posted by Niklas Therning <ni...@trillian.se>.
Eugene Labunsky wrote:
> Hello,
>
> I have add to my socket server http part (based on http server sample).
> I have strange problem. For the same settigns it on my PC it's working
> fine,
> but on other servers it have not reply (only part which need send around
> 100-200 long lines).
> I tried LINUX & WIN 2003 server - the same... Long reply do not work.
> Logs show that reply made by server and need to be sent, but client http
> have not it from that PCs (sure finally part with out.flush(); kept).
>
> Regards,
> Eugene Labunsky.
> http://www.TrendMedium.com - MetaStock Add-on
>
>
Could you provide us with some more information please? What version of
MINA, JRE, etc are you using? A bug has recently been fixed in
IoSessionOutputStream (used by StreamIoHandler). Without this bug fix I
saw strange behaviour with a modified version of the http server
example. I got partial response just like you're experiencing. I'm using
Linux here so I have no idea if it's any different on Windows but I
doubt that it is.


HTH

-- 
Niklas Therning
Software Architect
www.spamdrain.net


http server - why can't work on other PC?

Posted by Eugene Labunsky <el...@trendmedium.com>.
Hello,

I have add to my socket server http part (based on http server sample).
I have strange problem. For the same settigns it on my PC it's working fine,
but on other servers it have not reply (only part which need send around
100-200 long lines).
I tried LINUX & WIN 2003 server - the same... Long reply do not work.
Logs show that reply made by server and need to be sent, but client http
have not it from that PCs (sure finally part with out.flush(); kept).

Regards,
Eugene Labunsky.
http://www.TrendMedium.com - MetaStock Add-on


Re: How to stop IoAcceptor?

Posted by hpq852 <hp...@gmail.com>.
Just use the method "unbindAll()"  of ServiceRegistry, then the ServerSocketChannel will be closed.

Regards




hpq852
2006-07-26



发件人: wolverine my
发送时间: 2006-07-26 18:21:17
收件人: mina-dev@directory.apache.org
抄送: 
主题: How to stop IoAcceptor?

Hi!

How  can  I  shutdown  the  server  (or  the  IoAcceptor)?