You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Mike Tutkowski <mi...@solidfire.com> on 2013/01/30 17:49:50 UTC

Jetty/Management Server Problem

Hi,

I've been having a recurring problem with the Management Server where it
stops responding.

If I Ctrl-C and try to re-run it, it looks like a port is in use still:

mtutkowski-LT:incubator-cloudstack mtutkowski$ mvn -pl :cloud-client-ui
jetty:run
ERROR: transport error 202: bind failed: Address already in use
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized
[../../../src/share/back/debugInit.c:690]
FATAL ERROR in native method: JDWP No transports initialized,
jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
Abort trap: 6

Does anyone know what process I can kill (or whatever) to avoid having to
re-boot my computer to solve this issue.

The problem is that each time this happens, I've needed to re-boot my
computer and that means brining down 4 VMs I'm also running.

I suppose if I ran the Management Server in a VM of its own, then I'd only
need to re-boot that one VM.

Even better would be if anyone knows why it locks up like this.  :)

Thanks!

-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*™*

RE: Jetty/Management Server Problem

Posted by Vijayendra Bhamidipati <vi...@citrix.com>.
Fang and I ran into the PermGen space issue on linux before - it went away when we switched from jdk to openjdk. It's probably the same issue on mac as well.

________________________________________
From: Murali Reddy [Murali.Reddy@citrix.com]
Sent: Wednesday, January 30, 2013 9:24 AM
To: cloudstack-dev@incubator.apache.org
Subject: Re: Jetty/Management Server Problem

On 30/01/13 10:24 PM, "Rohit Yadav" <bh...@apache.org> wrote:


>Are you on Windows? If so cannot help you much, you have an evil
>development environment. Killing the process (task manager or
>otherwise) and starting the mgmt server after few secs may work.

I see it on mac as well :) keep running into 'out of memory PermGen space
error'. Increasing heap size in maven opts delays it bit.


Re: Jetty/Management Server Problem

Posted by Mike Tutkowski <mi...@solidfire.com>.
Hi everyone,

Thanks for the responses.  :)

Yeah, I'm on Mac OS X.  As someone above commented, I believe it runs out
of memory (although this past time, it didn't actually print such a
message).


On Wed, Jan 30, 2013 at 10:58 AM, Rohit Yadav <bh...@apache.org> wrote:

> On Wed, Jan 30, 2013 at 9:24 AM, Murali Reddy <Mu...@citrix.com>
> wrote:
> > On 30/01/13 10:24 PM, "Rohit Yadav" <bh...@apache.org> wrote:
> >
> >
> >>Are you on Windows? If so cannot help you much, you have an evil
> >>development environment. Killing the process (task manager or
> >>otherwise) and starting the mgmt server after few secs may work.
> >
> > I see it on mac as well :) keep running into 'out of memory PermGen space
> > error'. Increasing heap size in maven opts delays it bit.
>
> For your case you can try exporting MAVEN_OPTS;
> export MAVEN_OPTS="-Xmx2048m -XX:MaxPermSize=800m -Xmx2g -Xdebug
> -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"
>
>
> This should increase PermSize to 800m, increase more based on your RAM
> resource.
>
> >
>



-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*™*

Re: Jetty/Management Server Problem

Posted by Rohit Yadav <bh...@apache.org>.
On Wed, Jan 30, 2013 at 9:24 AM, Murali Reddy <Mu...@citrix.com> wrote:
> On 30/01/13 10:24 PM, "Rohit Yadav" <bh...@apache.org> wrote:
>
>
>>Are you on Windows? If so cannot help you much, you have an evil
>>development environment. Killing the process (task manager or
>>otherwise) and starting the mgmt server after few secs may work.
>
> I see it on mac as well :) keep running into 'out of memory PermGen space
> error'. Increasing heap size in maven opts delays it bit.

For your case you can try exporting MAVEN_OPTS;
export MAVEN_OPTS="-Xmx2048m -XX:MaxPermSize=800m -Xmx2g -Xdebug
-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"


This should increase PermSize to 800m, increase more based on your RAM resource.

>

Re: Jetty/Management Server Problem

Posted by Murali Reddy <Mu...@citrix.com>.
On 30/01/13 10:24 PM, "Rohit Yadav" <bh...@apache.org> wrote:


>Are you on Windows? If so cannot help you much, you have an evil
>development environment. Killing the process (task manager or
>otherwise) and starting the mgmt server after few secs may work.

I see it on mac as well :) keep running into 'out of memory PermGen space
error'. Increasing heap size in maven opts delays it bit.


Re: Jetty/Management Server Problem

Posted by Rohit Yadav <bh...@apache.org>.
On Wed, Jan 30, 2013 at 8:49 AM, Mike Tutkowski
<mi...@solidfire.com> wrote:
> Hi,
>
> I've been having a recurring problem with the Management Server where it
> stops responding.
>
> If I Ctrl-C and try to re-run it, it looks like a port is in use still:
>
> mtutkowski-LT:incubator-cloudstack mtutkowski$ mvn -pl :cloud-client-ui
> jetty:run
> ERROR: transport error 202: bind failed: Address already in use
> ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
> JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized
> [../../../src/share/back/debugInit.c:690]
> FATAL ERROR in native method: JDWP No transports initialized,
> jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
> Abort trap: 6
>
> Does anyone know what process I can kill (or whatever) to avoid having to
> re-boot my computer to solve this issue.

Are you on Windows? If so cannot help you much, you have an evil
development environment. Killing the process (task manager or
otherwise) and starting the mgmt server after few secs may work.

>
> The problem is that each time this happens, I've needed to re-boot my
> computer and that means brining down 4 VMs I'm also running.
>
> I suppose if I ran the Management Server in a VM of its own, then I'd only
> need to re-boot that one VM.
>
> Even better would be if anyone knows why it locks up like this.  :)
>
> Thanks!
>
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkowski@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the
> cloud<http://solidfire.com/solution/overview/?video=play>
> *™*

FW: Jetty/Management Server Problem

Posted by Pranav Saxena <pr...@citrix.com>.
Just search for jetty process ID and kill it :

 1) ps -auxx | grep jetty 
2) kill -9 <pid>

Regards,
Pranav