[olug] JBoss port conflicts - how to resolve them?
Kevin
sharpestmarble at gmail.com
Thu Aug 14 15:12:07 UTC 2008
True, but in my experience, the -p option requires root privileges,
which requires either 1) switching to root or 2) sudo, both of which
take extra time.
However, it would indeed be good in Eric's case; he didn't know what
was listening on 8009. From process ID 5231, it's simple to do a `ps |
grep 5231 | grep -v grep` with your favorite options in ps to find out
what the application is.
On Thu, Aug 14, 2008 at 10:05 AM, Chris St. Pierre
<stpierre at nebrwesleyan.edu> wrote:
> For future reference, 'netstat -tnlp' (or -unlp for UDP) rocks for
> this sort of thing.
>
> # netstat -tnlp | grep 8009
> tcp 0 0 :::8009 :::* LISTEN 5231/java
>
> That last field is a pid/process name, which can go a long way to
> finding out what's in the way.
>
> Chris St. Pierre
> Unix Systems Administrator
> Nebraska Wesleyan University
>
> On Wed, 13 Aug 2008, Eric P wrote:
>
>> *slaps forehead* Doh! I had a stand alone instance of Tomcat running that I forgot all about. Of course that is what
>> was taking port 8009 from JBoss' own included Tomcat service. All is working now.
>>
>> Thanks for the info all the same. I'm just getting up to speed on JBoss, so it's good info to know.
>>
>> Eric P
>>
>>
>>
>> Kevin wrote:
>>> Are you trying to run a second instance of JBoss on your machine? If
>>> you are, then you'll run into more than one port conflict. Best way to
>>> resolve that would be to add a second IP to your machine(eth0:1,
>>> eth0:2, eth0:3, etc) and tell JBoss to listen on the second IP.
>>>
>>> If this is the only instance of JBoss on your machine, then you could
>>> change just the one port in the bindings file. `grep "StoreURL"
>>> jboss/server/jboss-service/conf/jboss-service.xml` will show where
>>> that is.
>>>
>>> On Wed, Aug 13, 2008 at 6:22 PM, Eric P <eric.maillist at gmail.com> wrote:
>>>> Hi,
>>>>
>>>> I'm trying to run JBoss on my local machine, but I'm running into a port conflict. In particular, port 8009 is already
>>>> in use which is needed by some JBoss service (AJP to be exact).
>>>>
>>>> So I try (btw. i'm no netstat guru):
>>>> $ netstat -a |grep 8009
>>>> tcp6 0 0 [::]:8009 [::]:* LISTEN
>>>>
>>>>
>>>> Is that something I can mess with?
>>>>
>>>> Thanks for reading,
>>>> Eric P
>>
>> _______________________________________________
>> OLUG mailing list
>> OLUG at olug.org
>> https://lists.olug.org/mailman/listinfo/olug
>>
> _______________________________________________
> OLUG mailing list
> OLUG at olug.org
> https://lists.olug.org/mailman/listinfo/olug
>
More information about the OLUG
mailing list