Open Ports in Karaf
Hi, I am trying to figure out what ports Karaf opens up. I was able to get most of them (ssh, jmx rmi, etc) except a few. Everytime Karaf starts up (v. 2.1.0) it opens up two randomly assigned ports in the high numbers. For example: 3:tcp4 0 0 127.0.0.1.57165*.*LISTEN 4:tcp46 0 0 *.57164*.*LISTEN If I turn off the DisableAttachMechanism flag so that jconsole cannot connect to karaf, the bottom one is gone, but the top one remains: 3:tcp4 0 0 127.0.0.1.57168*.*LISTEN (Notice, they are different numbers because they are randomly assigned) Does anyone know why this port is opened, and how to close it? Roshan Punnoose rpunno...@proteuseng.com Proteus Technologies
Re: Open Ports in Karaf
Rosh, Could you please let us know how you identified that as an issue? I'd like to see if I can replicate this with Karaf 2.0 and 1.6. v/r, Mike Van - Original Message - From: Roshan A. Punnoose [via Karaf] ml-node+1870475-1529360336-228...@n3.nabble.com To: Mike Van mvangeert...@comcast.net Sent: Tuesday, November 9, 2010 11:56:56 AM Subject: Open Ports in Karaf Hi, I am trying to figure out what ports Karaf opens up. I was able to get most of them (ssh, jmx rmi, etc) except a few. Everytime Karaf starts up (v. 2.1.0) it opens up two randomly assigned ports in the high numbers. For example: 3:tcp4 0 0 127.0.0.1.57165 *.* LISTEN 4:tcp46 0 0 *.57164 *.* LISTEN If I turn off the DisableAttachMechanism flag so that jconsole cannot connect to karaf, the bottom one is gone, but the top one remains: 3:tcp4 0 0 127.0.0.1.57168 *.* LISTEN (Notice, they are different numbers because they are randomly assigned) Does anyone know why this port is opened, and how to close it? Roshan Punnoose [hidden email] Proteus Technologies View message @ http://karaf.922171.n3.nabble.com/Open-Ports-in-Karaf-tp1870475p1870475.html To start a new topic under Karaf - User, email ml-node+930749-917263437-228...@n3.nabble.com To unsubscribe from Karaf - User, click here . -- View this message in context: http://karaf.922171.n3.nabble.com/Open-Ports-in-Karaf-tp1870475p1870612.html Sent from the Karaf - User mailing list archive at Nabble.com.
RE: Open Ports in Karaf
First I ran the command netstat -an | grep LISTEN on my Terminal before starting the container and got the list of open ports. Then after starting the container, I reran the command and did a diff and that's how I found the alx open ports. I could account for all except the two I listed below. Another thing I did was to clear out the whole etc/startup.properties file, so that only the core felix/karaf would run and not load any bundles. I found that those two ports are the only ones open. The DisableAttachMechanism JVM flag disabled one, but I can't figure out what the other local one is for. Roshan From: Mike Van [mvangeert...@comcast.net] Sent: Tuesday, November 09, 2010 12:19 PM To: user@karaf.apache.org Subject: Re: Open Ports in Karaf Rosh, Could you please let us know how you identified that as an issue? I'd like to see if I can replicate this with Karaf 2.0 and 1.6. v/r, Mike Van - Original Message - From: Roshan A. Punnoose [via Karaf] ml-node+1870475-1529360336-228...@n3.nabble.com To: Mike Van mvangeert...@comcast.net Sent: Tuesday, November 9, 2010 11:56:56 AM Subject: Open Ports in Karaf Hi, I am trying to figure out what ports Karaf opens up. I was able to get most of them (ssh, jmx rmi, etc) except a few. Everytime Karaf starts up (v. 2.1.0) it opens up two randomly assigned ports in the high numbers. For example: 3:tcp4 0 0 127.0.0.1.57165*.*LISTEN 4:tcp46 0 0 *.57164*.*LISTEN If I turn off the DisableAttachMechanism flag so that jconsole cannot connect to karaf, the bottom one is gone, but the top one remains: 3:tcp4 0 0 127.0.0.1.57168*.*LISTEN (Notice, they are different numbers because they are randomly assigned) Does anyone know why this port is opened, and how to close it? Roshan Punnoose [hidden email] Proteus Technologies View message @ http://karaf.922171.n3.nabble.com/Open-Ports-in-Karaf-tp1870475p1870475.html To start a new topic under Karaf - User, email ml-node+930749-917263437-228...@n3.nabble.com To unsubscribe from Karaf - User, click here . -- View this message in context: http://karaf.922171.n3.nabble.com/Open-Ports-in-Karaf-tp1870475p1870612.html Sent from the Karaf - User mailing list archive at Nabble.com. -- Follow this link to mark it as spam: http://mailfilter.proteus-technologies.com/cgi-bin/learn-msg.cgi?id=B53FE28591.AC0F2
Re: Open Ports in Karaf
Hello Roshan, looks like an issue we figured out some weeks ago. I discussed this in [1] and opened an issue for it [2]. It's fixed in 2.2.0 and it's easy to fix it in previous versions... Hope this helps. [1] http://servicemix.396122.n5.nabble.com/DISCUSS-changing-the-default-JMX-service-uri-td3229446.html#a3229446 [2] https://issues.apache.org/jira/browse/KARAF-253 Cheers, Christian
Re: Open Ports in Karaf
One of them must be the tcp port opened to stop karaf as in tomcat (i.e. a free random port is opened and bound to the localhost only and written to the data/port file). It can be configured using the karaf.shutdown.port property (the default value of 0 means a random port). Not sure about the other one though. On Tue, Nov 9, 2010 at 17:56, Roshan A. Punnoose rpunno...@proteuseng.com wrote: Hi, I am trying to figure out what ports Karaf opens up. I was able to get most of them (ssh, jmx rmi, etc) except a few. Everytime Karaf starts up (v. 2.1.0) it opens up two randomly assigned ports in the high numbers. For example: 3:tcp4 0 0 127.0.0.1.57165 *.* LISTEN 4:tcp46 0 0 *.57164 *.* LISTEN If I turn off the DisableAttachMechanism flag so that jconsole cannot connect to karaf, the bottom one is gone, but the top one remains: 3:tcp4 0 0 127.0.0.1.57168 *.* LISTEN (Notice, they are different numbers because they are randomly assigned) Does anyone know why this port is opened, and how to close it? Roshan Punnoose rpunno...@proteuseng.com Proteus Technologies -- Cheers, Guillaume Nodet Blog: http://gnodet.blogspot.com/ Open Source SOA http://fusesource.com