You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@mina.apache.org by "Jianbao (Jim) Tao" <ji...@gmail.com> on 2015/03/21 20:01:58 UTC

Mina server not responsive

Hi,

I am facing a issue as follows.

We have a proxy server developed with Mina. Recently after some changes in
the business logic that hardly seem relevant, the server starts to show a
random behavior frequently, in which it will simply not respond to any
request. I used curl to manually verify. It appears that the sever is able
to accept connection, but it doesn't seem to accept any data as I cannot
see any logs on the server side.

The version we are using is mina-core 2.0.0-M6.

Right now I am running out of ideas to debug this issue. So, can anyone
offer some advice about what I can try to investigate this issue? If you
need more details to understand the issue, please, please let me know. I
will do my best to provide them.

Many thanks.

Best regards,
Jim

Re: Mina server not responsive

Posted by "Jon V." <sy...@gmail.com>.
We are going to need a lot more.  I would first use visual VM and figure if
any threads are running 100% and grab stack traces.
On Mar 21, 2015 3:03 PM, "Jianbao (Jim) Tao" <ji...@gmail.com> wrote:

> Hi,
>
> I am facing a issue as follows.
>
> We have a proxy server developed with Mina. Recently after some changes in
> the business logic that hardly seem relevant, the server starts to show a
> random behavior frequently, in which it will simply not respond to any
> request. I used curl to manually verify. It appears that the sever is able
> to accept connection, but it doesn't seem to accept any data as I cannot
> see any logs on the server side.
>
> The version we are using is mina-core 2.0.0-M6.
>
> Right now I am running out of ideas to debug this issue. So, can anyone
> offer some advice about what I can try to investigate this issue? If you
> need more details to understand the issue, please, please let me know. I
> will do my best to provide them.
>
> Many thanks.
>
> Best regards,
> Jim
>

Re: Mina server not responsive

Posted by Emmanuel Lécharny <el...@gmail.com>.
Le 22/03/15 23:38, Jianbao (Jim) Tao a écrit :
> Thank you, Jon and Emmanuel. I tried adding a logging filter and all. I
> finally found the root cause by taking a thread dump. It was due to a
> deadlock in our business logic code.
which is probably related to "some changes in the business logic that
hardly seem relevant" :-)

Don't worry, this is often the case.
>
> I tried upgrading Mina version. However, I ran into a roadblock where Mina
> seemed somehow not receiving new data after the first chunk. 

Weird. Do you have some more info related to this behavior ?


Re: Mina server not responsive

Posted by "Jon V." <sy...@gmail.com>.
Glad you figured it out.
On Mar 22, 2015 6:39 PM, "Jianbao (Jim) Tao" <ji...@gmail.com> wrote:

> Thank you, Jon and Emmanuel. I tried adding a logging filter and all. I
> finally found the root cause by taking a thread dump. It was due to a
> deadlock in our business logic code.
>
> I tried upgrading Mina version. However, I ran into a roadblock where Mina
> seemed somehow not receiving new data after the first chunk. It wasn't a
> priority to upgrade Mina at the time so I stopped investigating further.
> Maybe I will bring this here in the future.
>
> Best regards,
> Jim
>
> On Sat, Mar 21, 2015 at 5:10 PM, Emmanuel Lécharny <el...@gmail.com>
> wrote:
>
> > Le 21/03/15 20:01, Jianbao (Jim) Tao a écrit :
> > > Hi,
> > >
> > > I am facing a issue as follows.
> > >
> > > We have a proxy server developed with Mina. Recently after some changes
> > in
> > > the business logic that hardly seem relevant, the server starts to
> show a
> > > random behavior frequently, in which it will simply not respond to any
> > > request. I used curl to manually verify. It appears that the sever is
> > able
> > > to accept connection, but it doesn't seem to accept any data as I
> cannot
> > > see any logs on the server side.
> > >
> > > The version we are using is mina-core 2.0.0-M6.
> > >
> > > Right now I am running out of ideas to debug this issue. So, can anyone
> > > offer some advice about what I can try to investigate this issue? If
> you
> > > need more details to understand the issue, please, please let me know.
> I
> > > will do my best to provide them.
> >
> > I'll suggest you switch first to the latest MINA version (2.0.9).
> >
> > Regarding your issue, we can't tell anything with the provided infos.
> > What I would suggest is that you add a Logger filter to see if the
> > server is actually receiving the messages.
> >
>

Re: Mina server not responsive

Posted by "Jianbao (Jim) Tao" <ji...@gmail.com>.
Thank you, Jon and Emmanuel. I tried adding a logging filter and all. I
finally found the root cause by taking a thread dump. It was due to a
deadlock in our business logic code.

I tried upgrading Mina version. However, I ran into a roadblock where Mina
seemed somehow not receiving new data after the first chunk. It wasn't a
priority to upgrade Mina at the time so I stopped investigating further.
Maybe I will bring this here in the future.

Best regards,
Jim

On Sat, Mar 21, 2015 at 5:10 PM, Emmanuel Lécharny <el...@gmail.com>
wrote:

> Le 21/03/15 20:01, Jianbao (Jim) Tao a écrit :
> > Hi,
> >
> > I am facing a issue as follows.
> >
> > We have a proxy server developed with Mina. Recently after some changes
> in
> > the business logic that hardly seem relevant, the server starts to show a
> > random behavior frequently, in which it will simply not respond to any
> > request. I used curl to manually verify. It appears that the sever is
> able
> > to accept connection, but it doesn't seem to accept any data as I cannot
> > see any logs on the server side.
> >
> > The version we are using is mina-core 2.0.0-M6.
> >
> > Right now I am running out of ideas to debug this issue. So, can anyone
> > offer some advice about what I can try to investigate this issue? If you
> > need more details to understand the issue, please, please let me know. I
> > will do my best to provide them.
>
> I'll suggest you switch first to the latest MINA version (2.0.9).
>
> Regarding your issue, we can't tell anything with the provided infos.
> What I would suggest is that you add a Logger filter to see if the
> server is actually receiving the messages.
>

Re: Mina server not responsive

Posted by Emmanuel Lécharny <el...@gmail.com>.
Le 21/03/15 20:01, Jianbao (Jim) Tao a écrit :
> Hi,
>
> I am facing a issue as follows.
>
> We have a proxy server developed with Mina. Recently after some changes in
> the business logic that hardly seem relevant, the server starts to show a
> random behavior frequently, in which it will simply not respond to any
> request. I used curl to manually verify. It appears that the sever is able
> to accept connection, but it doesn't seem to accept any data as I cannot
> see any logs on the server side.
>
> The version we are using is mina-core 2.0.0-M6.
>
> Right now I am running out of ideas to debug this issue. So, can anyone
> offer some advice about what I can try to investigate this issue? If you
> need more details to understand the issue, please, please let me know. I
> will do my best to provide them.

I'll suggest you switch first to the latest MINA version (2.0.9).

Regarding your issue, we can't tell anything with the provided infos.
What I would suggest is that you add a Logger filter to see if the
server is actually receiving the messages.